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:
01329532
Views:
16
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
*****************************************************************************************************************************************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform