thisform.LockScreen = .T. thisform.Refresh() thisform.cmdCode.Enabled = !EMPTY(behindsc.code_to_sh) thisform.LockScreen = .F.