Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number at mytext
Message
De
22/02/2005 03:42:43
 
 
À
22/02/2005 03:31:40
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00966918
Message ID:
00989147
Vues:
69
hi,
i print
? inyearofbill&&i get 2020
********************************
thisform.text3.Value=year(date())
inyearofbill=2000+VAL(LEFT(ALLTRIM(STR(thisform.text3.Value)),2))
? inyearofbill
i get 2020,but thisform.tet3.value=2005

i get another message&&Operator/operand type mismatch
SELECT * from billinfo WHERE billno=thisform.text4.value and YEAR(billinfo.billdate)= inyearofbill INTO CURSOR curbilldata

thanks.

>Is the value of thisform.text3.Value already bound to a numeric field?
>
>inyearofbill=2000+VAL(LEFT(thisform.text3.Value,2))
>
>try this
>
>inyearofbill=2000+VAL(LEFT(ALLTRIM(STR(thisform.text3.Value)),2))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform