Take a look at the SetLocaleInfo WinAPI call.
Public Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String) As Long
To get the info use GetLocaleInfo like:
lBuffLen = 128
sBuffer =...
Scoty, thanks for the reply. Unfortunately, Cbool can not take a string like "6 > 5". It takes "6" > "5", i.e. the comparison operator (>) can not be part of the string.
Strongm, thanks for the reply. The problem is that I need to send this as a string. So I am...
I am looking for a class/API call that can take:
6 > 5 OR 7 > 5 AND (A = B)
and return either True or False.
I have found plenty of math expression evaluators and tried the EbExecuteLine (but it requires vba6.dll which is not always registered on a system) but have yet to find what I need...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.