Search found 191 matches

by KDJ
Fri May 18, 2018 7:54 pm
Forum: Language Related
Topic: How to check user permissions
Replies: 8
Views: 315

Re: How to check user permussions

Chang Without coding in C, you can check if you have permission to write to the directory by trying to create a temporary file in this directory. Example: #include "fileio.ch" #include "hmg.ch" FUNCTION Main() LOCAL cDir := "C:\Program Files" IF HB_DirExists(cDir) MsgBox(cDir + CRLF + CRLF + If(IsD...
by KDJ
Sat May 12, 2018 10:13 pm
Forum: General Discussions
Topic: Program writing
Replies: 17
Views: 686

Re: Program writing

by KDJ
Mon May 07, 2018 6:13 pm
Forum: Language Related
Topic: Trap error with Begin Sequence
Replies: 6
Views: 367

Re: Trap error with Begin Sequence

in my case, should I REQUEST all available functions at the beginning of the program ? Yes, all that will be called by the macro and are not explicitly used in the program code. or can I do the REQUEST at runtime ( when the function name is clicked/List onChange) ? No. REQUEST is an instruction for...
by KDJ
Sun May 06, 2018 12:20 pm
Forum: Language Related
Topic: Trap error with Begin Sequence
Replies: 6
Views: 367

Re: Trap error with Begin Sequence

Why is hb_dskspacd() not recognise as a build in function while hb_eol() works ? Because HB_EOL() function is used in HMG code and HB_DiskSpace() function is nowhere used. You need use REQUEST statement for this function, eg: #include <hmg.ch> #define ZFMAIN Main #define ZMFILE "&File" #define ZMFI...
by KDJ
Sat May 05, 2018 5:10 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 150
Views: 21246

Re: PDF Viewer DLL?

PdfView version 2018-05-05

Fixed bug in "drag and drop" the tab.

PdfView.zip
(1.72 MiB) Downloaded 31 times
by KDJ
Sat May 05, 2018 1:56 pm
Forum: Language Related
Topic: Trap error with Begin Sequence
Replies: 6
Views: 367

Re: Trap error with Begin Sequence

Chang Missing BREAK in SEQUENCE. Try this: FUNCTION Main_List_1_OnChange() LOCAL bErrHandler LOCAL uResult LOCAL cEditValue LOCAL nValue := GetProperty( "Main", "List_1", "Value") LOCAL cDisplayItem := ALLTRIM( GetProperty( "Main", "List_1", "Item", nValue)) // cDisplayItem := "getStartupFolder()" ...
by KDJ
Wed May 02, 2018 2:47 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 150
Views: 21246

Re: PDF Viewer DLL?

PdfView version 2018-05-02 released. Added: - show/hide files panel (Main menu -> View -> Files panel), - opening file(s) via GetFile() function (Main menu -> File -> Open in ...), - terminate all SumatraPDF child processes when an error occurs (PdfView_ErrorSys.prg), - "Options" dialog (Main menu ...
by KDJ
Mon Apr 02, 2018 4:02 pm
Forum: HMG Unicode version
Topic: Function to get the regional format settings
Replies: 9
Views: 714

Re: Function to get the regional format settings

I have compiled it with HMG 3.4.4 32-bit, Win-7 64-bit, and all works properly:

Screen_Window.jpg
Screen_Window.jpg (29.19 KiB) Viewed 497 times
by KDJ
Mon Apr 02, 2018 1:52 pm
Forum: HMG Unicode version
Topic: Function to get the regional format settings
Replies: 9
Views: 714

Re: Function to get the regional format settings

Edward

This is great!

edk wrote:
Mon Apr 02, 2018 9:34 am
I do not know why I get invalid characters for LOCALE_SNATIVEDIGITS other than Arabic numbers?
If you change LOCALE_SNATIVEDIGITS, try to change LOCALE_IDIGITSUBSTITUTION too.
by KDJ
Sun Apr 01, 2018 10:33 am
Forum: HMG Unicode version
Topic: Function to get the regional format settings
Replies: 9
Views: 714

Re: Function to get the regional format settings

hmgchang wrote:
Sat Mar 31, 2018 11:48 pm
Is there any functions to get the regional format settings of the OS ?
Yes, Win API function - GetLocaleInfo (or GetLocaleInfoEx): https://msdn.microsoft.com/en-us/librar ... s.85).aspx