Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Controls name


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 03:51 PM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 13
Default Controls name

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
Reply With Quote
  #2 (permalink)  
Old 12-13-2007, 06:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

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.
Reply With Quote
  #3 (permalink)  
Old 12-13-2007, 06:43 PM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 13
Default Control Names

Thanks Erel.
Sorry, Can you give me an example name with underscore character?
Reply With Quote
  #4 (permalink)  
Old 12-13-2007, 06:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Sorry. You are right.
Controls do not support underscores.
Reply With Quote
  #5 (permalink)  
Old 12-17-2007, 03:49 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

I have dynamically created and referenced controls with a space character as part of the name, without any problems.

Gary

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag controls (name) to the IDE Mr_Gee Basic4ppc Wishlist 2 07-21-2008 09:35 PM
HOTSPOT controls WZSun Code Samples & Tips 23 05-30-2008 02:42 PM
COM controls lairdre Questions & Help Needed 3 02-28-2008 09:53 AM
Disposing Controls RandomCoder Questions & Help Needed 7 02-19-2008 10:26 AM
Tab Order for Controls BPak Questions & Help Needed 2 05-06-2007 06:58 AM


All times are GMT. The time now is 04:56 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0