Suggestions for the use of the scripts

Ask questions about how to create a script or swap scripts with other users.
Post Reply
Claudio
Posts: 27
Joined: 19 Oct 2007 09:36
Location: Italy

Suggestions for the use of the scripts

Post by Claudio »

Hi, Rickard

Thank you in order to have carried out the improvement from demanded me.

I wish a information: how I can characterize one variable (es. [ CurrentWord ]) in one Vbasic script?

Reply thank you.

Claudio Barbiero.

P.S.: sorry for my poor english.
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

I'm not sure I understood you correctly but to get the current word, you can do this:

'If the text is selected
dim s
s = Document.SelText

or

'If not selected
dim s
Document.WordLeft
Document.WordRight
s = Document.SelText
s = Trim(s) 'There may be a trailing space character here.
Post Reply