![]() |
Re: String - TString
hm iii ist zu 100% ein String
Delphi-Quellcode:
private
iii: string; public { Public declarations } end; |
Re: String - TString
Zitat:
geht nicht dann schreibt er nähmlich, dass es keine Methode gibt, die dies erlauben würde |
Re: String - TString
Hi!
Also wenn iii ein Integer ist geht das und sonst dürfte er nicht schreiben, dass es inkompatible Typen sind. Kannst ja mal das Projekt anhängen. Ciao fkerber |
Re: String - TString
so habe mal mit absicht gesagt, dass iii integer ist
Meldung ohne Umwandlung: incompatible types: 'integer' and 'string' Meldung mit Umwandlung: incompatible types: 'tstring' and 'string' wenn iii String ist Meldung ohne Umwandlung: incompatible types: 'tstring' and 'string' Meldung mit Umwandlung: there is no overloaded version of 'IntToStr' that can be called with these arguments |
Re: String - TString
Zeig doch nochmal deine komplette Codestelle dort, oder häng die Unit mal an, wie fkerber schon sagte.
|
Re: String - TString
Liste der Anhänge anzeigen (Anzahl: 1)
danke
|
Re: String - TString
Schon ist klar wo der Fehler liegt:
Es darf nicht heißen DBComboBox1.items:= DBComboBox1.items.add(inttostr(iii)); sondern nur DBComboBox1.items.add(inttostr(iii)); Außerdem denke ich, muss der Inhalt deiner While-Schleife noch in ein Begin und End, so z.B.
Delphi-Quellcode:
while i <> ii do
begin iii:= form4.table1['Datum']; DBComboBox1.items:= DBComboBox1.items.add(inttostr(iii)); i:=i+1; end; |
Re: String - TString
HI!
Nur zu Klarheit: Die Schleife muss so aussehen:
Delphi-Quellcode:
while i <> ii do
begin iii:= form4.table1['Datum']; DBComboBox1.items.add(inttostr(iii)); i:=i+1; end; Da war der Fehler ja noch immer drin @Benedikt. Ciao fkerber |
Re: String - TString
danke jetzt klappts. :-D
|
Re: String - TString
Mist,
erst schreib ich wie es richtig sein soll, und dann in der Schleife vergess ich es zu ändern :wall: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:50 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