Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (JeyKey II, Grant), 5,607 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
String Vergleich funktioniert nicht/ String comparison dont work #293818
10/14/09 02:58
10/14/09 02:58
Joined: Oct 2009
Posts: 14
U
uniquy Offline OP
Newbie
uniquy  Offline OP
Newbie
U

Joined: Oct 2009
Posts: 14
Hello!

i have an little problem with some string comparsions.
just want to compare 2 strings.

Quote:
STRING* var_name = "posx";
if(var_name == _str("posx")){
testbox.x = 2500;
}


with _str() i tryd to convert the char "posx" into an string, to compare. but he never goes inside the if!

i come from purly c++ laugh dont understand, and in the manual are only var-compares.



Hello!

Ich habe da ein kleines Problem mit einem String vergleich.

Quote:
STRING* var_name = "posx";
if(var_name == _str("posx")){
testbox.x = 2500;
}


Mit _str() versuche ich "posx" in einen String zu konvertieren, aber er läuft einfach nicht in die if rein.

Habe besher nur rohes C++ Programmiert. Deshalb bin ich ein wenig unbeholfen grin

Last edited by uniquy; 10/14/09 02:59.
Re: String Vergleich funktioniert nicht/ String comparison dont work [Re: uniquy] #293819
10/14/09 03:10
10/14/09 03:10
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen

Re: String Vergleich funktioniert nicht/ String comparison dont work [Re: GorNaKosh] #293821
10/14/09 03:20
10/14/09 03:20
Joined: Oct 2009
Posts: 14
U
uniquy Offline OP
Newbie
uniquy  Offline OP
Newbie
U

Joined: Oct 2009
Posts: 14
danke!!
*ich hab gelacht* grin
oh man, ne extra Funktion zum vergleichen, da vermisst man wirklich C++...
hab die schon im Manual gesehen und gedacht das wäre eine erweiterte Vergleichsfunktion, um die Genauigkeit der Übereinstimmung herauszufinden.. naja zu weit gedacht.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1