Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 12:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Delphi, StrToInt

Discussion on Delphi, StrToInt within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1


 
Kizuaki's Avatar
 
elite*gold: 0
The Black Market: 173/0/0
Join Date: Jan 2011
Posts: 1,048
Received Thanks: 189
Delphi, StrToInt

Was ist der genaue Nutzen von StrToInt? (Also außer der Umwandlung )


Quote:
Originally Posted by »FlutterShy™ View Post
Mit strings kannst du nicht rechnen und du kannst damit überprüfen ob es sich um eine zahl handelt wenn du zb eine eingabe vom nutzer überprüfen willst


Dankeschön
Kizuaki is offline  
Old 12/06/2015, 21:45   #2
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Mit strings kannst du nicht rechnen und du kannst damit überprüfen ob es sich um eine zahl handelt wenn du zb eine eingabe vom nutzer überprüfen willst

EDIT:
Zu dem unter mir

Also wenn StrToInt einen fehler zurückgibt oder( ich weis nicht wie das bei delphi ist )eine exception triggert dann ist der string keine zahl oder er enthält nicht nur zahlen.

Ich glaube bei delphi war das auch so das wenn man leerzeichen hinter der zahl hat wird es auch nicht funktionieren
YatoDev is offline  
Thanks
1 User
Old 12/06/2015, 22:12   #3
dotCom
 
Devsome's Avatar
 
elite*gold: 12400
The Black Market: 104/0/0
Join Date: Mar 2009
Posts: 15,880
Received Thanks: 4,386
Das was FlutterShy sagte, prüfen ob es sich um eine Zahl handelt. (oder Hexadecimal)

//oder diese Beispiele:
Code:
// Hexadecimal - Ausgabe: 42
StrToInt('$2A');
StrToInt('-0x42');

// Würde dir -42 ausgeben, die Leerzeichen verschwinden.
StrToInt('  -42');
Devsome is offline  
Thanks
1 User
Old 12/06/2015, 23:54   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 572
Quote:
Originally Posted by »FlutterShy™ View Post
Mit strings kannst du nicht rechnen und du kannst damit überprüfen ob es sich um eine zahl handelt wenn du zb eine eingabe vom nutzer überprüfen willst

EDIT:
Zu dem unter mir

Also wenn StrToInt einen fehler zurückgibt oder( ich weis nicht wie das bei delphi ist )eine exception triggert dann ist der string keine zahl oder er enthält nicht nur zahlen.

Ich glaube bei delphi war das auch so das wenn man leerzeichen hinter der zahl hat wird es auch nicht funktionieren
Es gibt noch zum überprüfen
warfley is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Buying] 140+lvl acc on Delphi
02/07/2014 - Atlantica Online Trading - 0 Replies
prefer naked acc...dont rly matter what main u are or what mercs u have if selling pm/post here with ur skype ,ill add u and we can discuss details there :pimp:
DELPHI - Who make Exploits, Hacks and Tools with DELPHI?
05/15/2013 - CO2 Programming - 13 Replies
Hi all. Iwith DELPHI, but a dont now. hello, I use Delphi to program and i like someone put here source code of make Exploits, Hacks and Tools bot here, or part of the code. ty to all
VK ACC auf Delphi
05/06/2013 - Trading - 1 Replies
Hallo, verkaufe einen Maestia Account auf dem Server Delphi. Bei Interesse hier Maestia Account Acc LVL 94 ca. 20 Mio Gold! | eBay bieten oder mich anschreiben.
[DELPHI&METIN]Wie sind die Delphi Befehle für einen Bot?
03/07/2010 - General Coding - 3 Replies
Hallo liebe com, ich habe mal eine Frage: Ich möchte einen Metin Bot in Delphi schreiben aber ich weiß nicht die Befehle für eine bestimmte Taste senden etc. könnt ihr mir die pls sagen oder per pn geben MfGGGGGG



All times are GMT +2. The time now is 12:09.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.