Good afternoon,
First of all, my congratulations to the team that developed Lazurus. It's a great software, easy, intuitive, but very advanced at the same time and very versatile.
My topic has to do with several pre routines I made, and that I'm trying to gather in one simple program. Pascal is not my first Programming language unfortunately.
My first problem is that I have a function that returns an array of values with double precision, which I need to use as REAL numbers. I cannot seem to make the conversion from one to another (at least with a correct syntax, or without having completely wrong results - like an expected result of 0.0022111 giving 16777.99.... for instance).
Another issue is a file that I open, and a function that uses it. I want to open it only once and access when it is needed.
How can I check if the file was allready opened once and share the data in Global terms in the whole program (that is, in a global scope)?
Can someone help me out here? I would apreciate it very much.
Clear skies
Kepler