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

Jim Ault JimAultWins at yahoo.com
Sat Jan 21 23:12:14 EST 2006


Try this in your multiline message box
--
answer wordoffset("AB-b3", fld 1)
set the wholematches to true
answer  wordoffset("AB-b3", fld 1)
---
thus 
set the wholematches to true
if wordOffset(myVar,fld 1) < 1 then --it is not found

same works for 
itemOffset
lineOffset

HTH

Jim Ault
Las Vegas


On 1/21/06 4:28 PM, "Mark Smith" <mark at maseurope.net> wrote:

> Also, assuming that there are no spaces in the values in the field:
> 
> if (myVar & space) is not in fld "myField" then put cr & myVar after
> fld "myField"
> 
> Mark
> 
> On 21 Jan 2006, at 20:07, Mark Schonewille wrote:
> 
>> 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
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list