FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with GET and Harbour
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Problem with GET and Harbour
Posted: Thu Sep 02, 2021 07: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 (fw): Select all Collapse
#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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem with GET and Harbour
Posted: Thu Sep 02, 2021 09:42 AM
Dear Enrico, you are right, please try with
Code (fw): Select all Collapse
    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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problem with GET and Harbour
Posted: Thu Sep 02, 2021 09:52 AM

Thank you, it works! Definitely my fault.

EMG

Continue the discussion