Page 1 of 1

Help with text editor

Posted: Sun Dec 13, 2009 11:45 am
by theg721
SUB Button1 OnClick()
?Form1.Caption = Edit1.Text
END SUB

I put in the above code for a program in FNXdesigner. I want to have a program in which there is a button, when you click it it would change the first form`s caption to the text in a text box called Edit1. The above code works in VB (I`m used to using VB but for some reason I can no longer use it), but how do I make the code work in FNXdesigner??

EDIT: Oh, and how do you compile?

Help with text editor

Posted: Mon Dec 14, 2009 8:01 pm
by PaPi
The subroutine name is 1 (one) word !
Like:
SUB Button1_OnClick()
 Form1.Caption = Edit1.Text
END SUB

PaPi