Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
STRTRAN not working
Message
De
12/06/2003 14:29:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00799472
Message ID:
00799501
Vues:
34
As I posted to Gerald, the below does not work either though:
clear
lcline=""
lccode="REM Test.txt"+CHR(13)
lccode=lccode+"COPY %1 <<IMPORTPATH>> <<IMPORTFILE>>"
BG_ACCUWIN="C:\FOXPRO\TMP\"
m.handle=FCREATE("test.txt")
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
	ELSE
		lcline=lcline+SUBSTR(lccode,i,1)
		IF "<<IMPORTPATH>>" $ lcline
			?"Original lines: "+lcline
			STRTRAN(lcline,"<<IMPORTPATH>>",BG_ACCUWIN)
			?"New Lines: "+lcline
			?"******************************"
			WAIT WINDOW "Found <<IMPORTPATH>>"
		ENDIF
		IF "<<IMPORTFILE>>" $ lcline
			?"Original line: "+lcline
			STRTRAN(lcline,"<<IMPORTFILE>>","ACCUWIN.TXT")
			?"New Line: "+lcline
			?"******************************"
			WAIT WINDOW "Found <<IMPORTFILE>>"
		ENDIF
	ENDIF
ENDFOR
=FPUTS(m.handle,lcline)
=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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform