Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set device to print
Message
From
30/12/2002 08:53:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/12/2002 19:03:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00736461
Message ID:
00736548
Views:
8
>Now I have a choice. I can either learn the Visual FoxPro 7.0 language (I own the programme). This will take quite some time. Or I find somebody who can tell me what to write instead of "set device to print" when I want to write a file to disk. Perhaps it is easy, perhaps it is not and I will have to do it the hard way.

I use:
set alternate to MyFile.txt
set alternate on
set console off
? "Some text"
set console on
set alternate off
set alternate to
Another alternative, which I used in the past - but not recently - involves SET DEVICE and @...SAY.

I think it would be something like this:
set device to file MyText.txt
@ 1,1 say "Hello"
...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform