Why?
Look at source code:
How to fix it?
Use:
HMG_EditControlGetSel(nHWnd, NIL, @nStart, @nEnd)
or change in the source:
Code: Select all
if (HB_ISBYREF(2))
hb_stornl ((LONG) nStart, 2);
if (HB_ISBYREF(3))
hb_stornl ((LONG) nEnd, 3);