Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UDF as controlsource in Column
Message
From
23/06/1998 18:45:33
 
 
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:
00111081
Views:
21
>>>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)"

Hi Bob,
I've found that if no parameters are passed to the function (which means the function has to explicitly reference the data table - yuk) then all is fine.
I'll try using the "=" as well. Thanks for that.
Previous
Reply
Map
View

Click here to load this message in the networking platform