HMG_EditControlGetSel

Moderator: Rathinagiri

Post Reply
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

HMG_EditControlGetSel

Post by KDJ »

HMG_EditControlGetSel(nHWnd, @nStart, @nEnd) - does not work properly.
Why?
Look at source code:
 
HMG_EditControlGetSel.png
HMG_EditControlGetSel.png (21 KiB) Viewed 1963 times
 
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);
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMG_EditControlGetSel

Post by bpd2000 »

Thank you dear
BPD
Convert Dream into Reality through HMG
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG_EditControlGetSel

Post by srvet_claudio »

Thanks for the info
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply