🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16476

Re: [VB] Search problem

#16476
From: Alex Bu
Date: Mon, 08 Sep 2003 22:12
21 lines
1468 bytes
Hi Ole!

Thanks. This helps me a lot.

was able to isolate the problem with this crashing code snippet:

Dim MyIndesign
Dim myLibrary
Dim myAsset
Set myIndesign = CreateObject("InDesign.Application.2.0")
Set myTable = myInDesign.Selection.Item(1).Tables.Item(1)
Set myReplace0 = myTable.Search("^s", False, False, "")

The problem is the "^s". It's a nonbreaking space. To reproduce the crash try the following:

1. New document
2. Add a text frame and a 1 row/3col table in it.
3. From left to right add one nonbreaking space to the first cell, one to the second and two to the third.
4. Now select the textframe and run the script above => crash. Well, at least on my pc.

Alex
Technical Details
Message-ID: <2ccd4178.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd4178.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,602b2494ebf84b4a
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-08 15:38:49 PST
From: "Alex Bu" <12three@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Search problem
Message-ID: <2ccd4178.1@webx.la2eafNXanI>
Date: Mon, 8 Sep 2003 15:12:16 -0700
References: <2ccd4178.-1@webx.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit