Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-18-2006, 01:36 PM   #1
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, 06:12 PM   #2
Registered: May 2006
Location: Argentina
Distribution: SuSE 10
Posts: 173

Rep: Reputation: 30
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:

  Form2.Text3.text = Form1.Text1.text
but with Gambas it can go either way
Old 06-19-2006, 06:09 AM   #3
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, 06:04 PM   #4
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


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 05:04 AM
Manipulation of text files in C++ Hady Programming 5 05-31-2005 08:24 AM
More text manipulation ice_hockey Linux - General 2 05-28-2005 01:43 AM
CLI based Text manipulation selfsck Linux - General 1 07-15-2004 07:11 PM
PHP appending form fields and text. BigFred Programming 6 09-19-2003 10:02 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:00 PM.

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