I get this error:
Operator 'OR' cannot be applied to operands of type 'Text' and 'Text'
When I try to write this if statement in AL:
if ActivityNo = 'DA' OR 'SA' then begin
end;
Is there no way of using logical disjunction between text?
I get this error:
Operator 'OR' cannot be applied to operands of type 'Text' and 'Text'
When I try to write this if statement in AL:
if ActivityNo = 'DA' OR 'SA' then begin
end;
Is there no way of using logical disjunction between text?
Good to know. Any way to use OR in a case statement? (just for future reference)
Try it as
if (ActivityNo = ‘DA’) or (ActivityNo = ‘SA’)
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
233,013
Most Valuable Professional
nmaenpaa
101,158
Moderator