Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Colum controlsource
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00432723
Message ID:
00432732
Vues:
21
>>vvgrid.COLUMNS[14].CONTROLSOURCE= "IIF(Month(lv_compete.competedate=1.and.Day(lv_compete.competedate)=1,AllTrim(Str(Year(lv_compete.competedate))),AllTrim(Str(Month(lv_compete.competedate))) + ' - ' + Right((AllTrim(Str(Year(lv_compete.competedate)))),2))"

>Try putting an "=" in front of the IIF.


As it turns out the syntax was wrong...should of been this:

IIF((Month(lv_compete.competedate) = 1 and Day(lv_compete.competedate)=1), (AllTrim(Str(Year(lv_compete.competedate)))), (AllTrim(Str(Month(lv_compete.competedate))) + ' - ' + Right((AllTrim(Str(Year(lv_compete.competedate)))),2)))

I had a little problem with the ()'s.
The = sign wasn't necessary, but I understand why you suggested it.
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform