LB Booster
Programming >> Compatibility with LB4 >> Regional settings http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1398242347 Regional settings
Post by Richard Russell on Apr 23rd, 2014, 08:39am
LBB automatically adapts its behavior according to the regional settings of your PC. For example if your language setting requires the use of a special version of a font, LBB will do that automatically. Similarly, the DATE$() function will automatically return the date in your configured language.
That is what you would expect in any 'compliant' Windows application, but unfortunately Liberty BASIC 4 does not consistently respect the regional settings and therefore an incompatibility can arise.
For example if your program explicitly selects a language variant of a font (e.g. courier_new_tur which is the Turkish version of Courier New) this will not work in LBB - the font name will not be recognised and Windows will fall back to using an alternative, and probably unsuitable, font.
If you encounter issues of this sort, and need your program to work in both LB and LBB, you will need to use a conditional test to ensure correct operation. For example:
Code:
if instr(Platform$, "LBB") then
#s.fs, "font courier_new 10"
else
#s.fs, "font courier_new_tur 10"
end if