Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get lines from text file
Message
De
30/08/2006 12:56:55
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
30/08/2006 12:49:04
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
01149836
Message ID:
01149872
Vues:
11
>>>>Hi Reza,
>>>>
>>>>Place its contents in a memo field and then use MLINE()
>>>>
>>>>HTH
>>>>
>>>>Henry
>>>Thanks, But i don't want to use from array.
>>
>>Reza,
>>
>>Not sure why you're talking about an array, but anyway, try something like this.
>>
>>cText = FILETOSTR("YourFile.Txt")
>>_MLINE = 0
>>FOR i = 1 TO MEMLINES()
>>  ? MLINE(cText,1,_MLINE)
>>NEXT
>>
>>Regards,
>
>But when i run this code, an error was occured on MEMLINES()
>What is this?

Sorry Reza. That line should read:

FOR i = 1 TO MEMLINES("cText")

That may work a little better.
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform