Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro Substitution like in VFP
Message
De
23/10/1998 00:33:03
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Macro Substitution like in VFP
Divers
Thread ID:
00149712
Message ID:
00149712
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform