| View previous topic :: View next topic |
| Author |
Message |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jun 26, 2003 6:33 am Post subject: Dynamic Run time Labels |
|
|
Is it possible to add variables to labels eg:
:%%23Menu
I tried this but at run time %%23 is not replaced by the value of the variable but read as %%23Menu and i get the error label not found.
Is there a alternative becuse one cannot assign a name different from that is visible in a menu in vds unlike VB. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Jun 26, 2003 6:44 am Post subject: Runtime |
|
|
Hi,
I think you have the same problem like me - multilingual software and MENU Events will have the translated name.
I got it running with Parsing the events.
If the Event ends with MENU, I parse the name of it outside
and compare it with my language-file. Then I get the "real" name
of the MENU and can goto the event.
Bye, Fabian |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Jun 27, 2003 11:32 am Post subject: |
|
|
Parsing I never (tried to) understand.
I instead added a errortrap and at the label i used @substr to get constant initial letter and redirected it to corresponding label. I dont know if this is a bad way of doing it.
Thanx for U help. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|