Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a date from .txt file or variable
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01329441
Message ID:
01329540
Views:
12
No, it should be because you didn't have CR+LF at the end of line.
Maybe you have only CHR(13) as a line break.


>I did as below:
>
>myFile = FILETOSTR("RP471982546BR.TXT")
>
>ALINES(myArray,Myfile)
>? myArray[6]
>
>I got the me message "subscript it out of range"
>Should it be because of the blank line in the top of to .txt ?
>
>
>*******************************************************RP471982546BR.TXT**************************************************
>
>RP471982546BR - Histórico do Objeto
>O horário não indica quando a situação ocorreu, mas sim quando os dados foram recebidos pelo sistema, exceto no caso do SEDEX 10 e do SEDEX Hoje, em que ele representa o horário real da entrega.
>DataLocalSituação
>04/07/2008 10:54AC PRESIDENTE EPITACIO - PRESIDENTE EPITACIO/SPConferido
>04/07/2008 10:33AC PRESIDENTE EPITACIO - PRESIDENTE EPITACIO/SPAguardando retirada
>Endereço: RUA FLORIANOPOLIS, 3-10 PRESIDENTE EPITACIO - CENTRO
>04/07/2008 03:48CTCE BAURU - BAURU/SPEncaminhado
>Em trânsito para AC PRESIDENTE EPITACIO - PRESIDENTE EPITACIO/SP
>02/07/2008 15:37CTE CAMPINAS - VALINHOS/SPEncaminhado
>Encaminhado para CTCE BAURU - BAURU/SP
>01/07/2008 16:03AC SAO ROQUE - SAO ROQUE/SPEncaminhado
>Em trânsito para CTE CAMPINAS - VALINHOS/SP
>*****************************************************************************************************************************************
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform