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.