HELP!
THANKS
Thanks James.
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
WORKS!
Hi DUTCH, it WORKS,
(1) i added in exactly what u told and compile, sorry for not notice the complilation error...
REDEFINE GET oGetCode VAR cCode ID 110 OF oDlg Picture "@!" ;
VALID (if(empty(cCode),.F.,(SelectCode( oGetCode,
cCode ),.T.))
missing one ")" at the end.
Thanks.
(1) i added in exactly what u told and compile, sorry for not notice the complilation error...
REDEFINE GET oGetCode VAR cCode ID 110 OF oDlg Picture "@!" ;
VALID (if(empty(cCode),.F.,(SelectCode( oGetCode,
cCode ),.T.))
missing one ")" at the end.
Thanks.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
David,
Try this:
Now when you press enter, the DbChoice() dialog should close automatically
Try this:
Code: Select all
function DbChoice( cTitle, cSelect )
local oDlg, oBrw
DEFINE DIALOG oDlg RESOURCE "DbChoice" TITLE cTitle
REDEFINE LISTBOX oBrw ;
FIELDS ArCust->Code, ArCust->Name ;
HEADERS "Code", "Name" ;
ID 100 OF oDlg
oBrw:bKeyDown = { | nKey | If( nKey == VK_RETURN, oDlg:End(),) }
ACTIVATE DIALOG oDlg CENTERED
return nil
OK
"Now when you press enter, the DbChoice() dialog should close automatically" ... Antonio
Ok, Thanks.
Ok, Thanks.