Read file and display in frame

andycrack

New Member
Dear Progress Friends

I have a trouble . I need to read a file from unix like ( os-command (cat file.log) ) and display the output inside a frame.

The other possibility is read the file into a stream but i don't know how to display into a frame.

any suggestions please:)


best regards.:cool:
 

rzr

Member
Code:
[FONT=courier new]
DEFINE STREAM Str.
DEFINE VARIABLE cLine AS CHARACTER NO-UNDO.

DEFINE FRAME MyFrame
    cLine AT ROW 1 COL 10
WITH CENTERED TITLE "TEST".

INPUT STREAM Str FROM VALUE('/home/rzr/test.txt').
REPEAT:
    IMPORT STREAM Str UNFORMATTED cLine.
    DISPLAY cLine WITH FRAME MyFrame.
END.
INPUT CLOSE.
[/FONT]
 

andycrack

New Member
Dear Friend

I test it, it works but only into a unix shell, in QAD 2008 SE .net window doesn't. Also to display my file i need a multiline frame and scrollable

i use the 100 down.

I hope you can help me

best regards;)
 

tamhas

ProgressTalk.com Sponsor
You probably need to ask on the QAD forum. As I understand it, the MFG/Pro .NET front end is a screenscraper for the old ChUI interface and so is likely to do things differently.
 
Top