Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Driven Formating using functions
Message
De
11/04/2007 18:44:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Table Driven Formating using functions
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01214762
Message ID:
01214762
Vues:
51
SELECT LXPOS
GOTO TOP
SCAN WHILE ! EOF()
	rpl = ''
	drpl = ''
DO CASE
       CASE LXPOS.XTYPE = 'R' && REPLACE  (This works fine with Characters)
            rpl = ALLTRIM(LXPOS.ACTION)+ALLTRIM(LXPOS.START)+ALLTRIM(LXPOS.XDATA)+ALLTRIM(LXPOS.ENDING)
            drpl = ALLTRIM(LXPOS.XFIELD)
            REPLACE &drpl WITH rpl

**Here is where I am attempting to use my table that contains a character date, and **trying to fill another by using the DTOC Function but I keep erroring out 
        CASE LXPOS.XTYPE = 'D' && DATE  
            rpl = ALLTRIM(LXPOS.ACTION)+ALLTRIM(LXPOS.START)+ALLTRIM(LXPOS.XDATA)+ALLTRIM(LXPOS.ENDING)
            drpl = ALLTRIM(LXPOS.XFIELD)
            REPLACE &drpl WITH DTOC(rpl)
    ENDCASE       
ENDSCAN
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform