Problem with GET and Harbour

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Problem with GET and Harbour

Post by Enrico Maria Giordano »

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

#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
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Problem with GET and Harbour

Post by cnavarro »

Dear Enrico, you are right, please try with

Code: Select all | Expand


    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
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Problem with GET and Harbour

Post by Enrico Maria Giordano »

Thank you, it works! Definitely my fault.

EMG
Post Reply