Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create scrollable view of ASCII text file with Button Cl
Message
 
To
22/06/2001 15:59:43
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00522567
Message ID:
00522640
Views:
5
MODI COMM will give you scrollbars if Word Wrap is off. I'm not sure why your window comes up with Word Wrap on. Mine's not. Setting _WordWrap to .F. doesn't seem to affect this. Your preference is stored in the resource file, though. If you want to guarantee Word Wrap is off, and you always use the same file names, you can edit the files with Modi Comm, go to Edit|Properties, and make sure you uncheck Word Wrap. Then, you have to distribute that resource file with your app. If you only want it used when editing these files, just SET RESOURCE TO the file before you say MODI COMM, and rest to the old resource file right after.

>When I use the WINDOW command or IN WINDOW, I still don't get the horizontal scroll bars, as a matter of fact, in some cases I don't get any scrollbars. What am I missing?
>
>Just to recap, I need to view the created ascii files (one comma delimited, one basically a report printout from another app) as they are created including the specific linefeeds. Ideally, if I was to open the file in say, notepad, that is how I want it to look in here. This will be used for troubleshooting.
>
>Thanks again
>
>>Go to MODIFY COMMAND Command, click on See Also and you will see MODIFY FILE Command link.
>>
>>You can control the sizy by using IN [WINDOW] WindowName2 clause.
>>
>>
>>>Can you control the width of this file window because it is wrapping the longer text even though there is a scroll bar on the bottom? I can't find any online help for MODIFY FILE.
>>>
>>>
>>>>>I have a form that uses an ASCII text file to create a comma delimited text file after a bunch of processes and database work. 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.
>>>>>
>>>>>Suggestions?
>>>>
>>>>You can use foxpro command MODIFY FILE < file name > NOEDIT
Previous
Reply
Map
View

Click here to load this message in the networking platform