Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form help

Status
Not open for further replies.

kristolcrawley

Programmer
Jun 17, 2002
19
US
This is really irking me. I have a form that says:

a = formonly.gv_status TYPE CHAR, UPSHIFT, REVERSE,
COMMENTS = "(A)ctive,(H)ome Office,(N)on Registered,(P)ending,(T)ermed,(AH)Acti
ve/HO";

The comment line is too long for the form so it's being chopped. Can't I wrap the text to a new line? There's too much text to fit on one line, if I try I get a run time error.
 
Kristol:

Informix has a wordwrap keyword. This example should show how to use it. I'm wrapping two lines.

Regards,

Ed
DATABASE testdb

SCREEN
{

[A3 ]
[A3 ]

}

TABLES
med

ATTRIBUTES
A3 = med.help_txt, wordwrap,
comments = "Enter the Help Text, ESC to accept, DEL to interrupt";

INSTRUCTIONS
screen record s_meded2 (med.help_txt)

delimiters " "

 
Hi,

4GL does not let us to split the COMMENTS line. That means maximum 79 characters can be accomodated in forms associated with a window having border attribute.

Your comments contents length works out 72 characters, hence it should fit in one line itself. You may have to draw a bigger window or make sure that your form contents should touch 72-78th character at the extreme right side of the form, to negate the chopping.

Regards,
Shriyan
 
You can make field in the table big, but you have to seperate the form into sections. Here is an example of the form that I use.

comments:
[f017 ]
[f018 ]
[f019 ]

attributes

f017 = act.salescomm[1,78];
f018 = act.salescomm[79,156];
f019 = act.salescomm[157,234];

Dodge20
 
Kristol:

I misread the question. Sorry if I mislead you.

Regards,


Ed
 
Thanks for all your help!!

Olded that did work actually. You can wordwrap but it ignores the next line unless you define the form as comment line -1. When I did that it started showing the 2 lines.

The window size it's at has to stay at that size so I really needed to split the lines up. :)
 
Thanks for the help. That's semilar to what I'm doing, but not quite.
My form has about 5 lines that I declared as WORDWRAP. But the text to be accepted are usually longer than 5 lines. I was just looking for a way to scroll that section to allow the user type in as much text as they want.

thx.
Quinn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top