Article View: adobe.scripting.indesign
Article #16194Re: [VB]Frames strokeweight in mm?
From: Eelko_Heuvelmans
Date: Thu, 09 Oct 2003 08:27
Date: Thu, 09 Oct 2003 08:27
23 lines
1442 bytes
1442 bytes
Ahh oke,.. than this is where solutiuon A raises problems. I make my scripts in VB.Net and .net is not willing to make that cast (string to double and other way around) When i use this code: REM strLineWidth is a normal declared string, declared some lines above REM myFrame is a instance of a frame, wich is accesable strLineWidth = "3 mm" myFrame.StrokeWeight = strLineWidth This gives the following exception: An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll Additional information: Cast from string "3 mm" to type 'Double' is not valid. So,.. i guess Dot Net won't eat this kind of overloads and casts. I'll have to use plan B instead :) Thanx for your help!
Technical Details
Message-ID:
<2ccdc0a6.3@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccdc0a6.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4a8e750ca03bae20 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-09 01:37:57 PST From: Eelko_Heuvelmans@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [VB]Frames strokeweight in mm? Message-ID: <2ccdc0a6.3@webx.la2eafNXanI> Date: Thu, 9 Oct 2003 01:27:35 -0700 References: <2ccdc0a6.-1@webx.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit