Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro executable program cannot import larger ASCII fil
Message
From
15/09/1998 10:25:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/09/1998 22:44:39
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00135767
Message ID:
00136717
Views:
51
>SET SAFETY OFF
>I follow your advice, however it doesn't work. SO I attach my program and see what you can give me some idea about that.
>
>******** Source code **********
>
>line = 1
>l_string = space(134)
>
>store fopen(CHK_PATH) to file_handle
>store fseek(file_handle,0,2) to ifp_size
>store fseek(file_handle,0) to ifp_top
>
>set device to print
>set printer to &OUTPUT

Set Print On


> ? substr(l_string,1,134)
>* @ line, 0 say substr(l_string,1,134)
> endif
> endif
>enddo

Set Print Off

>set print to
>set device to screen
>=fclose(file_handle)
>

Set Device is used to redirect the output of @...say commands; Set Printer is for all the other output. So you actually have to tell it when to start output to the printer, and when to stop. Everything else in the code seems fine.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform