Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do without going over 128?
Message
De
21/03/2002 14:36:33
 
 
À
21/03/2002 14:11:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00635664
Message ID:
00635680
Vues:
14
Tracy,

What is this function supposed to do?

>Any ideas how to do the following without going over 128 in VFP? What about accessing pre-existing data in tables that is already stored using this method in FPD26a?
>
>valyear=1985
>*PARAMETER valyear
>
>PRIVATE xreturn, stryear
>xreturn = '  '
>
>*---Store with the new method if the century is included
>
>IF TYPE('valyear') = 'N'
>	stryear = TRANS(valyear,'@L 9999')
>
>	IF LEFT(stryear,2) = '00'
>		xreturn = TRANS(valyear,"99")
>	ELSE
>		xreturn = CHR(VAL(LEFT(stryear,2))+58) + CHR(VAL(RIGHT(stryear,2))+33)
>	ENDIF
>ENDIF
>
>RETURN xreturn
>
>TIA,
>Tracy
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform