Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Column ControlSource
Message
From
11/03/2004 17:14:48
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00885382
Message ID:
00885405
Views:
12
This message has been marked as the solution to the initial question of the thread.
I don't think you can do that. How about using the Function in the Select command?

Aloha,

James
>I am trying to use a function in a ControlSource of a grid column. And I thought I have done it before but it does not work now.
>
>SQL Select creates a cursor where one of the columns is DEP_ID (1 character).
>
>I set ControlSource as ServiceDepartment(DEP_ID)
>
>I have function
>
>FUNCTION ServiceDepartment
>LPARAMETER cDepId
>do case
>   case cDepId = "M"
>       RETURN "MAINTENANCE"
>   case cDepId = "G"
>      RETURN "GROUNDS"
>
>
>If I include argument in the ControlSource function name I get error. If I don't include the argument, only 1-character field is returned.
>
>What am I missing? TIA.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform