Problem with GET and Harbour

Problem with GET and Harbour

Postby Enrico Maria Giordano » Thu Sep 02, 2021 7:35 am

The following sample works fine with xHarbour (insert an A in the GET) while only beeps with Harbour. Any ideas or workaround?

Code: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg, oGet

    LOCAL cVar := SPACE( 30 )

    DEFINE DIALOG oDlg

    @ 1, 1 GET oGet VAR cVar

    oDlg:bStart = { || oGet:PostMsg( WM_CHAR, "A" ) }

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Problem with GET and Harbour

Postby cnavarro » Thu Sep 02, 2021 9:42 am

Dear Enrico, you are right, please try with
Code: Select all  Expand view  RUN

    oDlg:bStart = { || oGet:PostMsg( WM_CHAR, Asc( "A" ) ) }
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Problem with GET and Harbour

Postby Enrico Maria Giordano » Thu Sep 02, 2021 9:52 am

Thank you, it works! Definitely my fault.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests