Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextMerge
Message
De
07/02/2006 16:17:52
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
TextMerge
Divers
Thread ID:
01094444
Message ID:
01094444
Vues:
63
I'm expecting the CHR(13) to cause a line break, but the results from the following are all on one line. Regardless of the name of the variable "cHtmlOutput" this is just to create a TXT file.
	CASE m.FileType = 'TXT'
		Response.AddHeader("Content-Type", "application/notepad")
		Response.AddHeader("Content-Disposition", "attachment; filename=notepad.txt")
		SET TEXTMERGE ON
		cHtmlOutput=""
		TEXT TO cHtmlOutput NOSHOW ADDITIVE
			<<m.ColumnNames>>
		ENDTEXT
		SELECT crsTestDownloads
		SCAN
				TEXT TO cHtmlOutput NOSHOW ADDITIVE
					<<CHR(13)>>
				ENDTEXT
				FOR i = 1 TO FCOUNT()
					IF &FieldList
						m.FieldValue = TRANSFORM(EVAL(FIELD(i)))
						TEXT TO cHtmlOutput NOSHOW ADDITIVE
						<<m.FieldValue>>
						ENDTEXT
					ENDIF
				ENDFOR
				TEXT TO cHtmlOutput NOSHOW ADDITIVE
					<<CHR(13)>>
				ENDTEXT
		ENDSCAN
		SET TEXTMERGE OFF
		Response.Write(cHtmlOutput)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform