ksthakur
24th May 2002, 06:51
Hi All,
I have a text file on Unix which I want to show on BaaN Form, I don't know the methodology as to how to do the same.
Please guide on above.
warm regards,
NPRao
24th May 2002, 09:48
I dont know which BaaN version you are on... in the BaaN-5.2 if you have a text field, on your form, it shows up a scroll down text box area too if there are too many lines.
An alternative way is to create a text field, and use the text functions like -
Syntax
long text.write( string text_field(17), string lang, string kw1(17), string kw2(17), string kw3(17), string kw4(17), string tgroup(8), string edit_opt(15), string tmp_file(256) [, long bidi] )
Description
This adds a new text to the text manager and assigns a new text number to the text.
Arguments
text_field The name of the new text field. See Text fields: overview. This returns the text number for the new field.
lang This specifies the language for the new text.
kw1 to kw4 Use these arguments to specify key words for the text.
tgroup This specifies the name of the text group to which the text must be assigned. If you specify an empty string here, the text is assigned to the user's default group.
edit_opt This specifies the type of window in which the text must be displayed.
tmp_file The name of the file where the text for the new field is stored.
bidi Use this optional argument to indicate the text alignment. Possible values are:true text is right justified
false text is left justified; this is the default option
Return values
>0 success; returns the number of lines written
-1 error
Context
3GL library function.
© 1998 Baan Development B.V. All rights reserved
and let BaaN handle the text management itself.
You can choose it as a display field on your form.
What is your purpose of showing the contents of text file on the form ?
You can use the predefined tools functions to show the contents of your file in a display browser.