Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Column ControlSource
Message
 
 
À
11/03/2004 17:14:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00885382
Message ID:
00885411
Vues:
10
Great suggestion. Thank you very much.

>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform