Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some VB syntax
Message
 
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00415230
Message ID:
00415771
Views:
15
>>How to simulate the following code:
>>I need:
>>frmTransaction.Text1.Enabled = True
>>
>>If I were to store strA = "frmTransaction.Text1.Enabled"
>>how to simulate the above statement?
>>Something like:
>>
>>strA = True
>>???
>
>Your way would probably work fine if you do it like so:
>dim strA as boolean
>
>' earlier in code
>strA = frmTransaction.Text1.Enabled
>
>' later in code
>frmTransaction.Text1.Enabled = strA

If you need it to work as a string like you showed though it won't. Using the contents of variables like they are the variable themselves is more of a PERL thing.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform