• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

Cool code (mcrider)

>at this time there my points so bite me
What does this mean? Byte you?
0
ameba
Asked:
ameba
  • 2
1 Solution
 
mcriderCommented:
ameba,

I didn't realize it was worth points... <VBG> ;-)

I'll repost the answer again...



Bite is not a native VB command... You have to declare a function or subroutine to use it.  Add a command button to a form and then add this code to the GENERAL DECLARATION SECTION of the form:

    Private Sub Command1_Click()
        Bite Me
    End Sub
    Sub Bite(FormName As Object)
        FormName.Print "Munch!"
    End Sub

We now return you to the regularly scheduled program... Already in progress...


Cheers!

0
 
amebaAuthor Commented:
Original will be deleted (it violates Customer Agreement, http://www.experts-exchange.com/info/usrcntr.htm)
and I wanted this in my snippet collection ... or perhaps full applications collection. :)
Thanks
0
 
mcriderCommented:
I grant you full rights to use this code anywhere you see fit! ;-)

Thanks for the points!


Cheers!
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now