🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16423

Re: [VB] Ittarate over pageitems won't work

#16423
From: Jens Schulze
Date: Fri, 12 Sep 2003 10:49
14 lines
1455 bytes
"Eelko Heuvelmans" wrote:

Im not familiar with VB.net, but I think he stumbles on the toString
argument (is it the same as cstr()?)...

So try instead of...
>    MessageBox.Show("Test for label: " + mypageItem.Label.ToString)
'display label
...this...
MessageBox.Show("Test for label: " & mypageItem.Label) 'display label
...because pageitem.label always returns a string and the ampersand
automatically casts the variable to string in case it is not a string.

Jens
Technical Details
Message-ID: <874BFA05EAC0E7715708CC5218B44B6A@in.webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd6887.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,434b6b988840c727
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-12 04:08:04 PST
From: "Jens Schulze" <adobeforums@trickbetrueger.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Ittarate over pageitems won't work
Message-ID: <874BFA05EAC0E7715708CC5218B44B6A@in.webx.la2eafNXanI>
Date: Fri, 12 Sep 2003 03:49:59 -0700
References: <2ccd6887.-1@webx.la2eafNXanI>
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit