Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
STRTRAN not working
Message
De
12/06/2003 13:43:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
STRTRAN not working
Divers
Thread ID:
00799472
Message ID:
00799472
Vues:
60
Any idea why the substitute is not working?
lcline=""
lccode="COPY %1 <<IMPORTPATH>> <<IMPORTFILE>>"
BG_ACCUWIN="C:\FOXPRO\TMP\"
FOR i = 1 TO LEN(lccode)
    IF ASC(SUBSTR(lccode,i,1))=13 .or. ASC(SUBSTR(lccode,i,1))=13
        lcline=lcline+CHR(13)+CHR(10)
        ? lcline
        IF "<<IMPORTPATH>>" $ lcline
		STRTRAN(lcline,"<<IMPORTPATH>>",BG_ACCUWIN)
        ENDIF
        IF "<<IMPORTFILE>>" $ lcline
		STRTRAN(lcline,"<<IMPORTFILE>>","ACCUWIN.TXT")
        ENDIF
	    i = i+1
    ELSE
        lcline=lcline+SUBSTR(lccode,i,1)
    ENDIF
	=FPUTS(m.handle,lcline)
ENDFOR
=FCLOSE(m.handle)
MODIFY COMMAND test.txt
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform