i have customers xBrowse with dbfntx on upper( name ).
I would like to search by typing a customer name without using the shift key.
Unfortunatelly it doesn't seek.
here my code:
- Code: Select all Expand view
oBrwLf := XbrowseNew( oDlg, nil, nil, nil, nil,,,,;
{ || oSysTitle:SetText( " POs at " + lf->name1 ) },,,,, 0, CLR_4,, .f., "lf",, .f.,, .t., 80, .t., .f. ,,,,, .f., .f., .f., .t. )
oBrwLf:AddColumn( "LfNr.", { || lf->lfnr },,,, "LEFT", 45, .F., .F.,,,,,, .F., "lfnr",,,, .F.,,, )
oBrwLf:AddColumn( "Name" , { || lf->name1 + CRLF + lf->name2 },,,, "LEFT", 200, .F., .F.,,,,,, .F., "lfname",,,, .F.,,, )
REDEFINE SAY oBrwLf:oSeek PROMPT oBrwLf:cSeek ID 81 OF oDlg
WITH OBJECT oBrwLf
:bSeek := { |c| lf->( DbSeek( upper( c ), .t. ) ), !lf->( eof() ) }
:nDataLines := 2
END
If i type a letter the browse doesn't move and the letter is not diplayed in the seek say.
But when i use the shift key to type capital letters, the browse moves correctly and the letter is displayed in the seek say.
Could anybody give me a tip what' s wrong with that?
Thanks and regards,
Detlef