Help with text editor

In this category you can exchange your programming questions and solutions.
Post Reply
theg721
Posts: 1
Joined: Tue Nov 08, 2005 3:00 pm

Help with text editor

Post: # 522Post theg721
Sun Dec 13, 2009 11:45 am

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?

PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

Help with text editor

Post: # 523Post PaPi
Mon Dec 14, 2009 8:01 pm

The subroutine name is 1 (one) word !
Like:
SUB Button1_OnClick()
 Form1.Caption = Edit1.Text
END SUB

PaPi

Post Reply