Conditonnal form format

stlouish

New Member
Hi,
I'd like to change the form format and the form help at runtime.
Example :

Form skip(1)
"Yes/no" User.Answer
FORMAT if language = 1 then "Yes/No" else "Oui/non"
HELP if language = 1 then "Yes/No" else "Oui/non"
with row 5 column 1 no-attr overlay no-label title tit#

The compiler says that it need to be a constant that is define before runtime? Someone can help me with this ?
 
try this.

Form
skip(1)
User.Answer
with frame X row 5 column 1 no-attr overlay no-labels.

if language = 1 then assign User.Answer:FORMAT IN FRAME X = "Yes/No"
User.Answer:HELP IN FRAME X = "Yes/No".
else
assign User.Answer:FORMAT IN FRAME X = "Oui/non"
User.Answer:HELP IN FRAME X = "Oui/non".

UPDATE User.Answer with frame X.
 
Back
Top