![]() |
Incompatible Typen??? Was mach ich nu wieder falsch?
ich bekomme bei der Zeile:
Delphi-Quellcode:
den Fehler: [Fehler] MainUnit.pas(220): Inkompatible Typen
IF ADODataSet1.RecordsetState = stClosed Then Label1.Caption := 'stClosed';
Weshalb? Zitat:
Zitat:
Ich peil nix mehr... :roll: MFG Keda |
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
versuche mal
Code:
...:cat:...
IF ADODataSet1.RecordsetState = [color=#ff0000][[/color]stClosed[color=#ff0000]][/color] Then Label1.Caption := 'stClosed';
|
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
probier mal
Delphi-Quellcode:
IF ADODataSet1.RecordsetState = [stClosed] Then Label1.Caption := 'stClosed';
|
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Das geht...
Danke für die schnelle Antwort :) MFG Keda |
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Hi,
jetzt suche in der Delphi-Hilfe mal nach ![]()
Delphi-Quellcode:
...:cat:...
IF stClosed in ADODataSet1.RecordsetState Then Label1.Caption := 'stClosed';
|
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Zitat:
wie wen das Recordset zu ist? :gruebel: Das bedarf mehr Input... Wenn ich in der Delphi-Hilfe nach sets suche bekomm ich keine Informationen die in dem Zusamenhang stehen... (oder ich gbin zu plöd zum suchen...) :roll: MFG Keda |
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Zitat:
...:cat:... |
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Zitat:
Auch finde ich unter sets in der Delphi-hilfe ziehmlich viel, aber nix wirklich was in dem Zusammenhang steht. MFG Keda |
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Zitat:
Zitat:
Die englische Delphihilfe schreibt dazu A set is a collection of values of the same ordinal type. The values have no inherent order, nor is it meaningful for a value to be included twice in a set. The range of a set type is the power set of a specific ordinal type, called the base type; that is, the possible values of the set type are all the subsets of the base type, including the empty set. The base type can have no more than 256 possible values, and their ordinalities must fall between 0 and 255. Any construction of the form set of baseType where baseType is an appropriate ordinal type, identifies a set type. Because of the size limitations for base types, set types are usually defined with subranges. For example, the declarations type TSomeInts = 1..250; TIntSet = set of TSomeInts; create a set type called TIntSet whose values are collections of integers in the range from 1 to 250. You could accomplish the same thing with type TIntSet = set of 1..250; Given this declaration, you can create a sets like this: var Set1, Set2: TIntSet; ... Set1 := [1, 3, 5, 7, 9]; Set2 := [2, 4, 6, 8, 10] You can also use the set of ... construction directly in variable declarations: var MySet: set of 'a'..'z'; ... MySet := ['a','b','c']; Other examples of set types include set of Byte set of (Club, Diamond, Heart, Spade) set of Char; The in operator tests set membership: if 'a' in MySet then ... { do something } ; Every set type can hold the empty set, denoted by []. Copyright © Borland. ...:cat:... |
Re: Incompatible Typen??? Was mach ich nu wieder falsch?
Ahh jetzt verstehe ich :stupid:
Dann hab ich gerade wieder was gelernt :thumb: aber unter sets finde ich echt nicht das was du da angegeben hast! Wenn ich aber unter Mengentypen suche, find ich das :wink: MFG Keda |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:11 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 by Thomas Breitkreuz