Forum: FXRuby Set value of one text field from another

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
82d763c87695437d192ff203d233fb57?d=identicon&s=25 Peter W. (peterfwhyte)
on 2008-02-12 02:13
I have 2 FXTextFields with data targets for the string values in each. I
would like to set the value of the second field to the value of the
first 10 characters in the first field if it is empty. Can anyone
suggest a way I might achieve this. I would also like to limit the
second field to a max of 10 characters and ensure that they are all in
uppercase. Any help or pointers would be appreciated.

In case it helps, here is a snippet of the code I currently have:

@desc ="")
@sname =""), "&Description", nil,
txtDesc =, 50, @desc, FXDataTarget::ID_VALUE), "&Short Name", nil,
txtSname =, 10, @sname, FXDataTarget::ID_VALUE)
Fffe675d4838eba413b26e6f515d8ad5?d=identicon&s=25 Trueruby T. (trueruby)
on 2009-06-04 08:58
Very interested too, not only two FXTextFields objects, for more.
Fc3a8b22c6362aa4e6a39bb5c7beeadf?d=identicon&s=25 Data R. (recoverydata)
on 2010-09-02 10:59
Thanks for sharing with such great information actually I am little bit
week in programming language that’s why difficult for me to completely
understand your forum but your overall forum is nice.
This topic is locked and can not be replied to.