![]() |
AW: Woher weiß ich, von welchem Typ meine XML-Inhalte sind?
Das ist doch in nullkommanix runtergetippt
Delphi-Quellcode:
Kompiliert so vermutlich nicht, aber der Sinn sollte klar sein: Einfach durchprobieren.
If TryCastAsBoolean(myValue) then
Return 'Boolean' else if TryStrToInt(myValue, someInteger) then Return 'Integer' else if TryStrToFloat(myValue, someFloat) then Return 'Double' else if TryStrToDateTime(myValue, someDateTime) then Return 'DateTime' else Return 'String'; |
AW: Woher weiß ich, von welchem Typ meine XML-Inhalte sind?
Zitat:
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:53 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