Lookup function !

make

Member
Hi everybody !!!

i want to compare some int values with a field in a table. But i believe my Syntax isnt't correct.
Can you help me ?

if lookup(102,103,122,123,153,142,143,515,520,200,153,154,243 ,
xaufpos.glas) <> 0 then
MinEinFob = MinEinFob + xaufpos.stk.

Make
 

Crittar

Member
MAKE,

The only problem you have with your syntax is that the list and the expression you are trying to find in the list are the wrong way round. Your code should read:

if lookup(xaufpos.glas,102,103,122,123,153,142,143,515,520,200,153,154,243) <> 0 then
...
 
Top