Autor Beitrag
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 08.02.07 11:01 
Titel: Da fehlt Vista
BTW: Bei der Funktion zur Bestimmung der Betriebssystemversion fehlt Vista...
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
      case Win32MajorVersion of    
        3:  
          if Win32MinorVersion = 51 then    
            Result := 'Windows NT 3.51'; //...   
      
        4:  
          if Win32MinorVersion = 0 then    
            Result := 'Windows NT 4'; //...   
 
        5:  
          case Win32MinorVersion of    
            0:   
              Result := 'Windows 2000'; //...   
 
            1:   
              Result := 'Windows XP'; //...   
              
            2:   
              Result := 'Windows .NET Server'; //...   
          end;
        6: Result := 'Windows Vista';
Roy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: Do 08.02.07 20:13 
Guten Abend,

solange ich einen Runden Wert z. B. 6 oder 13 oder 20 als Ergebnis bekomme funktioniert
Zitat:
If StrToInt(DbEdit1.Text)<10 then
diese Methode. Ist das Ergebnis mit Komma z. B. 6,2 oder 13,2 kommt die Fehlermeldung ( kein Integer-Wert), welche Möglichkeit wäre statt StrToInt dafür angebracht?

Danke
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 08.02.07 20:18 
StrToFloat wandelt deinen String in eine Fließkomma-Zahl um. ;)
FloatToStr verwandelt dagegen eine Kommazahl in einen String.
grüße marc
Roy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: Do 08.02.07 20:35 
Danke FloatToStr funktioniert. Weißt du wie ich eine falsche Eingabe in einem DBEdit verhindern kann? Es soll ein Datum eingegeben werden in folgender schreibweise (08.02.2007)
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 08.02.07 20:47 
Nächste mal einfach die Suchfunktion benutzen!
Dann hättest du auch das hier gefunden! ;)
Roy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: Do 08.02.07 21:13 
:autsch: da war ich doch schon, dass bringt mir garnichts was die da posten! Es werde wohl in einem Label ein Bsp. anzeigen