Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Substitution like in VFP
Message
From
23/10/1998 00:33:03
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Macro Substitution like in VFP
Miscellaneous
Thread ID:
00149712
Message ID:
00149712
Views:
56
Hi,
I am a VFP developer and need to do something in VB. In VFP, doing the following is routine business:

for i = 1 to 10
cBox = 'text' + alltrim(str(i))
thisform.&cBox..enabled = .t.
next

The ampersand is Macro Substitution.

How do we do it in VB??
Also i pick up a value (Menu Name) from a table and want to disable it depending on user access. In VFP:

use permission
scan for ID = cUserID
cButton = permission.buttonName
thisform.&cButtonName..enabled = permission.allowed
endscan

How to do it in VB??

TIA,
Abdul Ahad
Abdul Ahad Khan
CSi
www.csi-pk.com
Next
Reply
Map
View

Click here to load this message in the networking platform