LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading hex with inifile.fp

Hello all,
anyone know how to read hexadecimal integer values using the Ini_GetInt()
function from inifile.fp ?

If my ini file contains:
A=0xFF
It won't get read.

--
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 1 of 2
(3,440 Views)
Ini_GetInt uses toolbox function StrToInt to obtain the int value read from file and it's not capable of reading hex values (result is "Invalid integer number" error). You can either add your own Ini_GetHex function to the instrument (which is distributed in source code) or use Ini_GetStringCopy or Ini_GetStringIntoBuffer to obtain the string to scan to obtain the hex value.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,431 Views)