Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Driven Formating using functions
Message
From
11/04/2007 18:44:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Table Driven Formating using functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01214762
Message ID:
01214762
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform