Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Reference Error
Message
From
01/12/1999 16:53:48
 
 
To
01/12/1999 16:47:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00297549
Message ID:
00297565
Views:
33
>Hi Arne,
>
>>TVar = "thisform.DescLine.ControlSource = S["+alltrim(str(CurrRow))+",18]"
>>&TVar
>>TVar = "thisform.InfoLine.ControlSource = S[" + alltrim(str(CurrRow))+",20]"
>>&TVar
>
>Use this code instead:
>
>Thisform.DescLine.ControlSource = s[CurrRow, 18]
>Thisform.InfoLine.ControlSource = s[CurrRow, 20]

>
>As for the variable reference, what is s[CurrRow, 20] exactly?

I thought than when setting control sources on the fly you had to surround them with quotes unless the array is returning the control source as a string.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform