Page 1 of 1

Find in String

Posted: 2007-09-26 11:14:52
by Taya
Hallo,

I wish to find a special word in a string.

for example the word "glas" in the name of an object:

Code: Select all

sub testen()
    var name
    UO.FindType("0x0E24", "-1", 'ZapfBeutel')
    name = uo.getname('finditem')
    ??? if FINDSTR("glas", name) then ???
        ...
    endif
end sub


is there a special command to find such a substring? maybe equal to inJournal.

thanks
Taya

Posted: 2007-09-26 17:32:30
by Scripts Writer
mb

Code: Select all

if uo.GetName('finditem')=='glas' then


?