🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15201

Simple search problem (VB)

#15201
From: Joeri_Paeleman
Date: Thu, 25 Dec 2003 11:27
14 lines
1537 bytes
Hi,

To my great shame, I don't seem to be able to perform a simple search for text on a text-frame.
All I want to do is find out if a word is used in this frame.
I've tried a number of ways, but the one that seems to be the most logical is:

vSearch = vTextFrame.Search(vText, False, True)

The text-frame exists, and vText is used in it, but vSearch remains "nothing".
And what is this function supposed to return? In the documentation it says "variant", and I've seen some examples where it returns a collection, but all of those examples were for search-and-replace.

Thanks, and a merry Christmas,

Joeri
Technical Details
Message-ID: <2ccf132a.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!newsfeed.bit.nl!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3ae05d8eadbca924,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-25 03:37:26 PST
From: Joeri_Paeleman@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!newsfeed.bit.nl!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Simple search problem (VB)
Message-ID: <2ccf132a.-1@webx.la2eafNXanI>
Date: Thu, 25 Dec 2003 03:27:38 -0800
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit