lookup problem

afm

New Member
Hi all.
if i write this simple piece of code in the procedure editor

message lookup("a,c,b,d","x,a,c,b,d") it will returns the positon 2.

if if do this :

def var item1 as char init "a,c,b,d".
def var item2 as char init "x,a,c,b,d".

message lookup(item1,item2) it will returns 0

Can anyone explain me why ?

Thanks
 
But one does have to wonder why you would want to be doing this... It looks like begging for trouble to me.
 
my sincere apologies. was my mistake. one of the variables had a dot instead of a comma. sleep has these things
 
Back
Top