General information
Category:
Forms & Form designer
Title:
Remove a button from toolbar
I have this simplified code:
WITH goToolBar
.LockScreen = .T.
IF TYPE('.cmdBoxing') = 'O'
.RemoveObject('cmdBoxing')
.LockScreen = .F.
ENDIF
ENDWITH
That code is executed twice. First time it works fine, second it tries to remove the button again because TYPE('.cmdBoxing') = 'O' is still true. Reffering goToolBar.cmdBoxing.Name gives an error.
What am I missing?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only