PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WX2x] Is there a function to know if the current configuration is in Unicode mode?
[WX2x] Is there a function to know if the current configuration is in Unicode mode?
Iniciado por guest, 24,nov. 2016 10:22 - 2 respuestas
Publicado el 24,noviembre 2016 - 10:22
Hi Forum,

I've been looking around a bit to identify if there is a function to know if the current configuration/build is in unicode format or not.
Surely it must be there, but I can't find anything resembling a statement like IF InUnicodeMode() to do this identification.

Although all my projects are unicode only since V18, I know have a little dual mode project and will need to call different API's depending if I am running in unicode mode or ansi mode. Therefore I need to identify the mode the execution is in.

Who can point me in the right direction?

Thanks,

Peter Holemans
Publicado el 24,noviembre 2016 - 15:40
Hi Peter,


I don't think there is. However, it shouldn't be too hard to make one, something along the lines of (not tested):

Procedure IsUnicodeMode()
sString is string //ANSI or UNICODE depending on the configuration
bufBuffer is buffer
sString="Test"
bufBUffer = sString
if Lenght(bufBuffer)>4 then
result true
else
result false
end

Best regards
Publicado el 24,noviembre 2016 - 21:07
Thanks Fab for your reply (and excellent idea of course)!
I was thinking about something like that but would have expected to have it available as an introspection function.
Maybe in V23 ;-)

Cheers,

Peter Holemans