He tratado desde ayer hacer que AutoFill (TextBox) se llene automáticamente y no lo he logrado... no se puede llenar de inicio?
*---------------------------------------------
Hi all ...
I've been trying since yesterday to make AutoFill (TextBox) automatically fills and I have not been ... not be filled home?
Code: Select all
/*
AutoFill in Text Box try
Started by Esgici
Enhanced by Roberto Lopez and Rathinagiri
2009.05.10
*/ #include "hmg.ch"
#include "hfcl.ch"
PROC Main()
aCountries := HB_ATOKENS( MEMOREAD( "Countries.lst" ), CRLF )
ASORT( aCountries ) // This Array MUST be sorted
DEFINE WINDOW frmAFTest ;
AT 0,0 ;
WIDTH 550 ;
HEIGHT 300 ;
TITLE 'AutoFill in Text Box try (BE2)' ;
ON INIT Llena();
MAIN
ON KEY ESCAPE ACTION frmAFTest.Release
DEFINE LABEL lblCountry
ROW 50
COL 50
VALUE "Country :"
RIGHTALIGN .T.
AUTOSIZE .T.
END LABEL // lblCountry
DEFINE TEXTBOX txbCountry
ROW 48
COL 110
ONCHANGE AutoFill( aCountries )
ONGOTFOCUS AFKeySet( aCountries )
ONLOSTFOCUS AFKeyRls( )
END TEXTBOX // txbCountry
END WINDOW // frmAFTest
frmAFTest.Center
frmAFTest.Activate
RETU // Main()
PROCEDURE Llena()
* frmAFTest.txbCountry.VALUE := aCountries[1]
* frmAFTest.txbCountry.VALUE := 'hOLA'
SetProperty ( 'frmAFTest','txbCountry','VALUE', aCountries[1] )
RETURN NIL
Alguna idea?
Saludos
Polo
*---------------------------------------------------------------------------------------------------------------------------------------
Here I want to assign value to TextBox but I can not do it, because I tested with normal textbox does.
Any idea?
regards
Polo