Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Driven Field Replace
Message
 
 
À
11/04/2007 17:34:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01214702
Message ID:
01214765
Vues:
9
>Will that also help with the errors I am getting with the CTOD() Function. I keep getting a data mismatch using:
>
>SCAN WHILE ! EOF()
>rpl = ''
>drpl = ''
>rpl = LXPOS.ACTION+ALLTRIM(LXPOS.START)+ALLTRIM(LXPOS.XDATA)+ALLTRIM(LXPOS.ENDING)
>drpl = ALLTRIM(LXPOS.XFIELD)
>REPLACE &drpl WITH rpl
>ENDSCAN
>
>The Start and Ending are just "(" and ")" in my dbf with the action being CTOD.

You can not sum variables or fields of a different type. Perhaps you're thinking of DTOC function, e.g. convert date to character.
rpl = LXPOS.ACTION+ALLTRIM(LXPOS.START)+ALLTRIM(LXPOS.XDATA)+ALLTRIM(LXPOS.ENDING)
Action here must be a character field or DTOC of the date field.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform