Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UDF as controlsource in Column
Message
From
23/06/1998 19:03:50
 
 
To
23/06/1998 15:17:11
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00108111
Message ID:
00111088
Views:
28
>>>Hi Dave,
>>>
>>>>The function call works just fine in the load event.
>>>Finally Dave, you found the answer. It is so funny that we were looking into grids and columns and the solution came from something totally in a different direction.
>>
>>Oh no - I haven't found the answer at all. I just found that the S2ms() function works fine in the Load event. That is, the function is visible to the form at all times.
>>
>>Now if I set the controlsource of column3 at design time to be simply...
>>
smdrday.duration
>>
>>The grid fires up just fine.
>>If I have a button on the form which does
>>
THISFORM.grd1.column3.controlsource= "s2ms(smdrday.duration)"
>>
>>I get error ... "variable is not found" !!!
>>What variable could it be talking about??
>>Even though a call to s2ms(smdrday.duration) works fine!
>>
>>Still no closer :-((
>
>Have you tried setting the controlsource to:
>
>THISFORM.grd1.column3.controlsource= "= s2ms(smdrday.duration)"

I've now tried that using "=" and the error message now is...
"data source for this object must be a variable reference"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform