Hi,
I need to call the GETAcp function in Kernel32.dll from NAV to get the ANSI codepage in the local client machine. I am having problems in scripting this script. My script is as follows:
Private Declare Function test123 Lib "Kernel32.dll" () As Long
Msgbox test123
But I am getting compilation errors:
Windows Script Host
Script: C:\temp.vbs
Line: 1
Char: 17
Error: Expected end of statement
Code: 800A0401
Source: Microsoft VBScript compilation error
OK
is there something wrong with my code? Is there any alternative to get the local ANSI code page?
many thanks.
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03