Article View: adobe.scripting.indesign
Article #14875[vb] Testing for item existence
From: Jonathan Fisher
Date: Thu, 15 Jan 2004 12:21
Date: Thu, 15 Jan 2004 12:21
15 lines
990 bytes
990 bytes
its a while since i scripted vb...
want to check and see if any pars exist within a textframe
so i sort of want:
If myTextFrame.Paragraphs.Item(1)is nothing then
Msgbox ("add some text")
end if
however i can't find the syntax for this...
how can i test for the existence of paragraphs?
Technical Details
Message-ID:
<2ccf61cf.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,90b1863c93a58166,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-15 04:37:40 PST From: "Jonathan Fisher" <jon@jonathanfisher.co.uk> Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [vb] Testing for item existence Message-ID: <2ccf61cf.-1@webx.la2eafNXanI> Date: Thu, 15 Jan 2004 04:21:08 -0800 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit