Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create scrollable view of ASCII text file with Button Cl
Message
De
23/06/2001 15:30:24
 
 
À
22/06/2001 15:09:02
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00522567
Message ID:
00522811
Vues:
9
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform