![]() |
Autocad NULL übergeben
Hallo,
ich möchte in Autocad die Prozedur GetXData aufrufen und muss dazu dieser Prozedur einen "Nullsting" übergeben. Der VB Syntax lautet:
Code:
In Delphi funktioniert:
myobject.GetXData "", xtypeOut, xdataOut
Delphi-Quellcode:
jedoch nicht:
myobject.GetXData('myapp',xtypeOut,xdataOut);
Delphi-Quellcode:
Der erste Parameter wird von Delphi als Widestring und von Autocad als String erwartet. Dabei bewirkt ein "NULL String" (O-Ton Autocadonlinehilfe) genau die Funktionalität, die ich haben möchte.
myobject.GetXData('',xtypeOut,xdataOut);
myobject.GetXData(NULL,xtypeOut,xdataOut); myobject.GetXData(nil,xtypeOut,xdataOut); const myapp=''; // myobject.GetXData(myapp,xtypeOut,xdataOut); Thomasch |
Re: Autocad NULL übergeben
Schau mal in der Delphi-Hilfe nach EmptyParam
|
Re: Autocad NULL übergeben
Zitat:
Thomasch |
Re: Autocad NULL übergeben
Ich hab es endlich alleine gefunden. Mit:
Delphi-Quellcode:
geht es :-D
myentity.GetXData(#0,xtypeOut,xdataOut);
Thomasch |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:17 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz