How to avoid that "3" be in "34" ?

Mark Schonewille europe at ehug.info
Sat Jan 21 15:07:03 EST 2006


Hi André,

If all entries are in separate lines, you could do

if myVar is not among the lines of fld "myField" then

but if you have a list of items, using the comma as item 
delimiter, for instance, you might use

if myVar is not among the items of fld "myField" then

Best,

Mark



André.Bisseret wrote:
> Hello,
> 
> If I have “AB-b3” in myVar and “AB-b34” in a fld “myField”
> when I script :
> If myVar is not in fld “myField” then put cr & myVar after fld “myField”
> AB-b3 is not added to myField !! It is “considered” as being already in 
> fld “myField” ; well, I understand why ((AB-b3)4)
> But how could I avoid that ?
> 
> Thanks in advance for help !
> André

-- 

eHUG coordinator
mailto:europe at ehug.info
http://www.ehug.info
http://home.wanadoo.nl/mark.sch
http://www.economy-x-talk.com




More information about the use-livecode mailing list