Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Problem mit overload (https://www.delphipraxis.net/54210-problem-mit-overload.html)

ste_ett 30. Sep 2005 07:07

Re: Problem mit overload
 
Du übergibst ja auch immer einen String. :)

Delphi-Quellcode:
var
   v : variant;
begin
   v := '123';
   if VarIsStr(v) then
      ShowMessage('String')
   else if VarIsNumeric(v) then
      ShowMessage('Numeric');

   v := 123;
   if VarIsStr(v) then
      ShowMessage('String')
   else if VarIsNumeric(v) then
      ShowMessage('Numeric');


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:52 Uhr.
Seite 2 von 2     12   

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