Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simiple I think CR & LF
Message
 
À
28/11/2007 17:00:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01271857
Message ID:
01271871
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Yes, check the last two characters, but the code should be
>
>IF RIGHT(lcData, 2) = CHR(13) + CHR(10)
>
>
>>I am listening on a tcp/ip port for this other system(vendor) to send a file. I don't know how long the file is, only that
>>"at the end of the file will be a carriage return AND a line feed. "
>>
>>
>>Would I just check the last two chars = chr(13) and chr(10)
>>
>>if right(lcData)=chr(13)+chr(10)
>>   * End of file
>>else
>>   * not end of file
>>endif
>>
>>
>>
>>Thanks for any help

You might want to trim lcData in case it has spaces..

IF RIGHT(trim(lcData), 2) = CHR(13) + CHR(10)
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform