[not a bug] cfgfile
Posted: Fri Jan 23, 2009 2:43 am
I have found a very little bug reading cfg files (also on pol097)
If I read a cfg value with syntax
var elem := Cstr(elem_cfg.value);
if value contains a number with + sign before like
value +10
when I read
print(value[1]);
the output is
1
instead of
+
The only solution I have found (not a real problem anymore) is use "" syntax like this:
value "+10"
and after
var elem := Cstr(elem_cfg.value);
elem["\""] := " ";
elem["\""] := " ";
If I read a cfg value with syntax
var elem := Cstr(elem_cfg.value);
if value contains a number with + sign before like
value +10
when I read
print(value[1]);
the output is
1
instead of
+
The only solution I have found (not a real problem anymore) is use "" syntax like this:
value "+10"
and after
var elem := Cstr(elem_cfg.value);
elem["\""] := " ";
elem["\""] := " ";