This code is working for strings:
_str Linjer:[];
_str sTemp;
if (Linjer:["OK"]._isempty()) { Linjer:["OK"]="1"; } else { Linjer:["OK"]=Linjer:["OK"] "1"; }
if (Linjer:["OK"]._isempty()) { Linjer:["OK"]="2"; } else { Linjer:["OK"]=Linjer:["OK"] "2"; }
for (sTemp._makeempty();;)
{
Linjer._nextel(sTemp);
if (sTemp._isempty()) break;
insert_line(sTemp " = " Linjer:[sTemp]);
}
What I really want is for the hash to be of type integer so I can add each value.
But for the first one I can not check if the hash exist.
So if I have
int Linjer:[];
How can I check if Linjer:["OK"] exists?
Thanks,
Morten