Default values
Default values
(OP)
Can please somebody help me with the default values problem? If I pass '$*' as default value for a parameter and then compare it with a string, it is working fine. I am having problem comparing with a numeric value. Please help. I am using Dev Studio 5.2.
Thanks,
WFR
Thanks,
WFR
RE: Default values
try this value.
'1 OR (1 EQ 1)'
this can work in your program?
RE: Default values
Thanks Simaccs.
RE: Default values
I ran into the same problem. I'm also using WF5.2. It turns out Simaccs is right.
Try this:
-DEFAULT &SeatsPropmt = 'ALL';
-SET &SeatsWhere = IF &SeatsPropmt EQ 'ALL' THEN '1 OR (1 EQ 1)' ELSE &SeatsPropmt;
TABLE FILE CAR
PRINT
CAR
SEATS
WHERE SEATS EQ &SeatsWhere;
END
Thanks for the solution, Simaccs.
Regards,
Michael
RE: Default values
Thanks for the detailed code.
Thanks Simaccs
Regards
WFR