|
-
Jun 20th, 2005, 03:40 AM
#1
Re: Toggle Button Code
Private Sub CommandButton1_Click()
Static onoff As Boolean
onoff = Not onoff
CommandButton1.Caption = -CInt(onoff)
End Sub
pete
-
Jun 20th, 2005, 03:51 AM
#2
Re: Toggle Button Code
Code:
Private Sub tglButton_Click()
tblButton.Caption = iif(tglButton,"1","0")
End Sub
Or some thing like that. The true/flase part of the iif may need reversing...
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Jun 20th, 2005, 04:38 AM
#3
Thread Starter
New Member
Re: Toggle Button Code
Thks Ecniv...
that routine only works once, not repeatedly...Rgds, Andreas
-
Jun 21st, 2005, 02:40 AM
#4
Re: Toggle Button Code
Uh? only once?
Should fire each time the toggle button is pressed.
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|