Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Objects within a form
Message
From
10/11/2003 05:27:25
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
10/11/2003 00:34:41
Rinie Arellano
Chase Tech. Corp.
Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00848161
Message ID:
00848194
Views:
15
Hi Rinie!

>How can I get all the object names included in a form during run time?Coz I for instance I have to change the caption from english characters into chinese characters.Hope you could help me.

Try:
For Each loControl In thisForm.Controls
   * Get name
   lsName = loControl.Name

   * Change caption property
   If Type("loControl.Caption") <> "U"
      loControl.Caption = "New Caption"
   Endif
EndFor
I hope this help you.
Bye!
Erick
Força Sempre!
Strength Always!
Previous
Reply
Map
View

Click here to load this message in the networking platform