garym@camgar.ca
New Member
I have a CHUI V9 program that asks for a field for report selection.
I want to have the possible values be different based on the user's language code (a shared varaiable)
- If English, possible values are D,R,F,B
- If French, possible values ate "S,F,C,R"
I am not very familiar with attributes but did try the following that gave me Progress error 4052
Here is part of the code:
form sel-area
with frame gg.
DO WITH FRAME gg:
if w-user-language = "E" then
assign
sel-area:HELP = "D = DRY, R = REFREGIRATED F = FROZEN B = ROBOT"
sel-area:VALIDATE-EXPRESSION = "sel-area = '' or
can-do('D,R,F,B', sel-area)"
sel-area:VALIDATE-MESSAGE = 'Must be ...'
.
else
blah blah
end.
Thanks in advance.
I want to have the possible values be different based on the user's language code (a shared varaiable)
- If English, possible values are D,R,F,B
- If French, possible values ate "S,F,C,R"
I am not very familiar with attributes but did try the following that gave me Progress error 4052
Here is part of the code:
form sel-area
with frame gg.
DO WITH FRAME gg:
if w-user-language = "E" then
assign
sel-area:HELP = "D = DRY, R = REFREGIRATED F = FROZEN B = ROBOT"
sel-area:VALIDATE-EXPRESSION = "sel-area = '' or
can-do('D,R,F,B', sel-area)"
sel-area:VALIDATE-MESSAGE = 'Must be ...'
.
else
blah blah
end.
Thanks in advance.