Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove a button from toolbar
Message
From
13/10/2006 17:43:50
 
 
To
13/10/2006 17:38:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01161929
Message ID:
01161930
Views:
14
>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?
WITH goToolBar
    .LockScreen = .T.
     IF PEMSTATUS(goToolBar,'cmdBoxing',5)
        .RemoveObject('cmdBoxing')
     ENDIF
    .LockScreen = .F.
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform