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
 

Cecil

19+ years progress programming and still learning.
I've tested it under OE10.2A and it return "2".
 

TomBascom

Curmudgeon
But one does have to wonder why you would want to be doing this... It looks like begging for trouble to me.
 

afm

New Member
my sincere apologies. was my mistake. one of the variables had a dot instead of a comma. sleep has these things
 
Top