Re: To download data in Forms 4.5
Date: 1997/10/07
Message-ID: <61d2uu$4m8_at_news.Informatik.Uni-Oldenburg.DE>#1/1
Yue H K Ken wrote:
> Hello,
>
> I wonder if there is any built-in functions in Forms 4.5 which can
> download the results of a record-group into a flat file on the client
> PC. If not, is there any alternative method that can achieve this ?
>
> Pls advise
> Thanks !
>
> Best Regards,
> Ken
Yes, there is a way to write data in a file. Look in the TEXT_IO-package.
Here comes an example:
PROCEDURE egal IS
out_file TEXT_IO.FILE_TYPE;
BEGIN
out_file := TEXT_IO.FOPEN('C:\egal.txt', 'w'); -- open file for write
TEXT_IO.PUT_LINE('This is a test!'); -- write a line
TEXT_IO.FCLOSE(out_file); -- close the file
END;
Now you only have to modify the TEXT_IO.PUT_LINE-part. Just
build a LOOP or something else to exort the desired data.
Marcel Received on Tue Oct 07 1997 - 00:00:00 CEST