🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16363

Re: [VB] Search into a Selection

#16363
From: Peter Boctor
Date: Thu, 18 Sep 2003 16:43
14 lines
1383 bytes
At 9:00 AM -0700 9/18/03, Guy Verville wrote:
>      Set MySelection = MyDoc.selection
>MySelection can't have a .Search property

The selection properties returns an "Objects" object in case more 
than one item is selected. This is useful when you are getting the 
page items that are selected. But for a text selection, there will 
never be more than one, so you can say:

    Set MySelection = MyDoc.Selection.Item(1)

Now MySelection will be a Text object which does have a Search method on it.

-peter
Technical Details
Message-ID: <p06002020bb8f907c6fc8@[10.0.1.2]>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeeds.sol.net!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd782d.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,679c718bcdc39c50
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-18 10:08:15 PST
From: Peter Boctor <pboctor@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeeds.sol.net!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Search into a Selection
Message-ID: <p06002020bb8f907c6fc8@[10.0.1.2]>
Date: Thu, 18 Sep 2003 09:43:44 -0700
References: <2ccd782d.-1@webx.la2eafNXanI>
Lines: 15
X-Sender: pboctor@mailsj-v1.corp.adobe.com
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit