Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create scrollable view of ASCII text file with Button Cl
Message
From
23/06/2001 15:30:24
 
 
To
22/06/2001 15:09:02
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00522567
Message ID:
00522811
Views:
8
>On my final page, I want to provide a button that will allow the user to "view" either of these ascii text files. The file might be wider than the screen so therefore I want a horizontal scroll bar as well. Neither file will be edited using this, just viewed.

You can use MODIFY FILE, but like you see, if your FoxUser has wordwrap turned on, you won't get the scroll bars. You can use either ShellExeucte or ! to get the document up:
! /n notepad.exe c:\myfile.txt
or
DECLARE INTEGER ShellExecute ;
	IN SHELL32.DLL ;
	INTEGER nWinHandle,;
	STRING cOperation,;   
	STRING cFileName,;
	STRING cParameters,;
	STRING cDirectory,;
	INTEGER nShowWindow
=ShellExecute(0,"Open", "c:\myfile.txt","","",1)
Previous
Reply
Map
View

Click here to load this message in the networking platform