Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Was ist eine variable "Variant" (https://www.delphipraxis.net/27196-ist-eine-variable-variant.html)

NikoMitDaMacht 6. Aug 2004 10:36

Re: Was ist eine variable "Variant"
 
Aha! Sowas habe ich mir auch schon in der art gedacht ich hatte nuur zuwenig ahnung von com-objekten (eigentlich garkeine).
Das heisst ich setzte einen excel-server ("ExcelWorksheet") auf die form und gebe bei der funktion als "excel", "ExcelWorksheet1" an?
Delphi-Quellcode:
ads_excel.ExcelCopyToStringGrid(ExcelWorksheet1,1,1,10,5,Stringgrid1,1,1,true,true)
Das geht nicht!:
[Error] Unit1.pas(33): Incompatible types: 'Variant' and 'TExcelWorksheet'

NikoMitDaMacht 6. Aug 2004 11:03

Re: Was ist eine variable "Variant"
 
Aha!

so wurde es wohl eher richtig sein :

Excel : ExcelWorksheet1.?

Kann mir jemand einen tipp für das fragezeichen geben?


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:51 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