P PepSoft Member Licensed User Longtime User Dec 13, 2007 #1 Hello: What are the conditions for control names? In IDE: "TextBox?" or "TextBox#" are not valid names. message: "Invalid Control Name" but in runtime: AddTextBox("Form1","TextBox#",10,10,100,25) runs correct. There are any problem whith Add Controls whith punctuation symbol in the name? PepSoft PD: Sorry for my English
Hello: What are the conditions for control names? In IDE: "TextBox?" or "TextBox#" are not valid names. message: "Invalid Control Name" but in runtime: AddTextBox("Form1","TextBox#",10,10,100,25) runs correct. There are any problem whith Add Controls whith punctuation symbol in the name? PepSoft PD: Sorry for my English
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2007 #2 You should only use letters, numbers and underscore character. Controls names (and variables names) must also begin with a letter. The AddObjects keywords do not test this. It could cause all kinds of strange errors.
You should only use letters, numbers and underscore character. Controls names (and variables names) must also begin with a letter. The AddObjects keywords do not test this. It could cause all kinds of strange errors.
P PepSoft Member Licensed User Longtime User Dec 13, 2007 #3 Control Names Thanks Erel. Sorry, Can you give me an example name with underscore character?
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2007 #4 Sorry. You are right. :signOops: Controls do not support underscores.
W willisgt Active Member Licensed User Dec 17, 2007 #5 I have dynamically created and referenced controls with a space character as part of the name, without any problems. Gary :sign0025:
I have dynamically created and referenced controls with a space character as part of the name, without any problems. Gary :sign0025: