Hi,
Today I came across the following error:
Code:
Structure Value
String.s
Float.f
EndStructure
Global NewMap Values.Value()
Procedure Add1(Id, Value.f)
Ids.s = Str(Id) ;<--- that way it works
With Values(Ids)
\String = StrF(Value)
\Float = Value
EndWith
EndProcedure
Procedure Add2(Id, Value.f)
With Values(Str(Id)) ;<--- due to this line ...
\String = StrF(Value)
\Float = Value ;<--- ... the assignment of float value fails
EndWith
EndProcedure
Add1(0, 1.23)
Add2(1, 2.34)
For i = 0 To 1
Debug Values(Str(i))\String
Debug Values(Str(i))\Float
Next
When you run this code, the assignment of the float value within the Add2() procedure fails. This only happen on on Linux 32-bit (Fedora 16). On Fedora 16 64-bit and Windows 7 32-bit it runs as expected.
Best regards
Uwe