Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a SQL Server field content to specify a menuitem
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Using a SQL Server field content to specify a menuitem
Miscellaneous
Thread ID:
00486514
Message ID:
00486514
Views:
49
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
Reply
Map
View

Click here to load this message in the networking platform