I use in the get object, bChange for to know step by step the characters typewrite in a variable.
Fivewin report across nkey the chr number of last character typed.
But if i call the VarGet() method for read the total character typed, he not return me, nothing for the first 2 character. After typede 3 character the method return me the first character typed.
I send the code sample, test it. It's Very strange. This limit the use of get system.
I have fivewin 2.7, xHarbour 99.60.
The code:
#include "FiveWin.ch"
function Main()
local oDlg, oGet1, n1 := " "
DEFINE DIALOG oDlg TITLE "Testing Gets"
@ 1, 1 GET oGet1 VAR n1 SIZE 80, 11
oGet1:bChange={ |nkey , nFlag| test(nkey,nFlag,@oGet1)}
@ 3, 11 BUTTON "Ok" ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
procedure test(nkey,nFlag,oGet1)
Local CharContainer
CharContainer := oGet1:VarGet()
? CharContainer
? chr(nkey)
msgalert("You Write "+CharContainer,"Write?")
return