Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a SQL Server field content to specify a menuitem
Message
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Using a SQL Server field content to specify a menuitem
Divers
Thread ID:
00486514
Message ID:
00486514
Vues:
46
I have a SQL Server database table that stores in a character field values that relate to object names in a VB menu. I am accessing this SQL database using RDO and returning the field contents to a resultset. I want to scan the resultset and disable the menu items by name but am unabled to use the field content as an object and am unaware of any way to convert it from a character to an object. Basically what I am looking for is someway to macro substitute the value so I can diable the menu items.

Example

lcMenu = msrdc1.resultset(0)
lcmenu.enabled = false *This won't work due to a type mismatch
Répondre
Fil
Voir

Click here to load this message in the networking platform