Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strip control characters from string
Message
 
À
11/07/2007 09:32:38
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01239214
Message ID:
01239258
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
Jay

Don't know if this help you at all, but I create a temporary cursor, and then use FGETS to read the file. It breaks on a carriage return so I get each segment of the message into a separate row in the cursor.
CREATE CURSOR cursor1 (resultrow M)

****************************************************************************
* Open HL7 Message (File) and do low level reads for each line of data
* insert each row into a new row in the temp database
****************************************************************************
lnHan=FOPEN(lcFile,0)
DO WHILE !FEOF(lnHan)
	lcString=FGETS(lnHan,2000)
	APPEND BLANK
	replace resultrow WITH lcString
ENDDO
FCLOSE(lnHan)
Kirk
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform