Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: simulate a read
Posted: Fri Nov 14, 2014 09:25 AM
I tried with
aGet[11]:Show()
aGet[11]:SetFocus()
aGet[11]:bvalid :={|| ValEmpty( CodBarreArt, aGet[11] ) }
If the final user press the other get the func ValEmpty run ok
if the final user resize the dialog or use ( press) the oBrw the func valid not run
FUNCTION ValEmpty( cDato, oGet )
IF empty( cDato )
MsgStop( i18n( "E' obbligatorio riempire questo campo." ) )
oGet:setFocus()
RETURN .F.
END IF
RETURN .T.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com