LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2006, 02:36 PM   #1
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Rep: Reputation: 30
Gambas: multi-form text manipulation?


I have two forms, "form1" and "form2". Form1 contains one text box named "TextBox1" and form2 contains three text boxes "TextBox1", "TextBox2", "TextBox3". I want when the content of form1->TextBox1 is modified, the form2->TextBox3 content to be automatically replaced by the new content of form1->TextBox1.

How can I do this in gambas? Thank you
 
Old 06-18-2006, 07:12 PM   #2
demon_vox
Member
 
Registered: May 2006
Location: Argentina
Distribution: SuSE 10
Posts: 173

Rep: Reputation: 30
Hi,
I no longer have Gambas installed, but I believe that if you write the event Text1_Keypressed (or any event that changes the text of the TextBox) you can then make it to set the Text3 in the other form by merely assigning one to the other:

Code:
  Form2.Text3.text = Form1.Text1.text
but with Gambas it can go either way
Cheers!
 
Old 06-19-2006, 07:09 AM   #3
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Original Poster
Rep: Reputation: 30
It doesn't work, I get an error message: Unknown symbol 'TextBox3.Text' in class 'Form2'
 
Old 09-21-2008, 07:04 PM   #4
saudi-Linux
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
you Need to adjust the Project properties:
in project menu select properties > options
adjust (Module symbols are public by default) to yes
and (Form controls are public) to yes


enjoy if you still need this help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
text manipulation in scripts manicman Linux - Newbie 8 02-17-2006 06:04 AM
Manipulation of text files in C++ Hady Programming 5 05-31-2005 09:24 AM
More text manipulation ice_hockey Linux - General 2 05-28-2005 02:43 AM
CLI based Text manipulation selfsck Linux - General 1 07-15-2004 08:11 PM
PHP appending form fields and text. BigFred Programming 6 09-19-2003 11:02 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration