Search in texteditor

Discuss GUI programming with the MUI Royale plugin here
Post Reply
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

Search in texteditor

Post by ArtBlink »

Hello,

when i write this :

Code: Select all

mui.domethod("editeur".. count,"Search",mui.get("Recherche","contents"))
Hollywood return that : "string expected in argument 4"

But, in the guide i read this:
Normally the search start at the cursor position

I have 3 flag :

Fromtop
casesensitive
backwards

but what i can write at the argument 4?

When i write this:

Code: Select all

mui.domethod("editeur".. count,"Search",mui.get("Recherche","contents"),"Backwards")
It's work

Thanks
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

Re: Search in texteditor

Post by ArtBlink »

I found

You must add "" in argument 4 like this

Code: Select all

mui.domethod("editeur".. count,"Search",mui.get("Recherche","contents"),"")
It's work

sorry ;-)
Post Reply