Zitat:
Zitat von traderdoc
Für 5 Werte:
Code:
string wert[4];
int cnt = 0;
string str;
wert[0] = "";
string variable = 111+","+222+","+333+","+444+","+555;
for (int i = 0; i < StringLen(variable); i++) {
str = StringSubstr(variable, i, 1);
if (str == ",") {
cnt++;
wert[cnt] = "";
continue;
}
wert[cnt] = wert[cnt] + str;
}
Viel Spaß!
traderdoc
|
Guten Tag,
wenn man den string wert[4]; nicht als string sondern als double-array haben möchte (sonst gibts bei mir in weiterer Verwendung "different types in comparison") wie muss man das anstellen? Ändere ich einfach string zu double bekomme ich die Fehlermeldung "incompatible types".
LG