![]() |
GetType VB.net => delphi.net
Hallo,
irgendwie habe ich Probleme den Typ rauszubekommen mit GetType. Ich habe eine Codevorlage aber in Visual Basic .net u nun will ich das in Delphi.net umwandeln.
Code:
Habe rumgetestet u zB. bekomme ich bei
Dim OrderResponse As TxmlOrdRsp
OrderResponse = CType(XMLHelper.GetObjectFromXML(GetType(TxmlOrdRsp), ResponseDoc), TxmlOrdRsp)
Delphi-Quellcode:
als Fehlermeldung
private
{ Private-Deklarationen } TestClass :TecCom.OpenMessaging.Order.TXML.V4_1.Order.TxmlOrdRsp; . . . . . . . GetType(TestClass) Zitat:
Suchfunktion u über google habe ich nichts sinnvolles dazu gefunden. thx im voraus cu |
Re: GetType VB.net => delphi.net
Zitat:
Delphi-Quellcode:
type := TxmlOrdRsp.GetType();
|
Re: GetType VB.net => delphi.net
thx für die rasche Antwort. Problem ist aber immer noch, dass es bei
Delphi-Quellcode:
kein
TxmlOrdRsp.GetType();
Delphi-Quellcode:
gibt. Habe das auch schon mal ausprobiert... =(
.GetType
|
Re: GetType VB.net => delphi.net
Du hättest schon verraten können, dass TxmlOrdRsp eine Klasse und keine Instanz ist :wink: .
Delphi-Quellcode:
[edit]Gut, hier hätte ich es eigentlich sehen müssen:
type := TypeOf(TxmlOrdRsp);
Delphi-Quellcode:
TestClass :TecCom.OpenMessaging.Order.TXML.V4_1.Order.TxmlOrdRsp;
|
Re: GetType VB.net => delphi.net
big thx...klappt =)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:35 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