Find in String

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Taya
Posts: 29
Joined: 2006-11-02 14:07:13
Location: near Cologne, GERMANY

Find in String

Post 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
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

mb

Code: Select all

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


?
Post Reply