Difference between revisions of "Passing UDTs to Classes"

From HashVB
Jump to: navigation, search
m
m (Reverted edit of Jh2Woo, changed back to last version by Dee)
 
Line 1: Line 1:
[[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30248 cheap ativan]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=92 hydrocodone online]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=228 ultram online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=767 xanax]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=840 free sony ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=92 verizon ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/sonyericsson_2004.htm free sony ericsson ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=119 free punk ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=214 zanaflex online]] [[http://library.cshl.edu/wp/vb/member.php?u=1379 music ringtones]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=108 music ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a09 cheap viagra]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=67 order hydrocodone]] [[http://wc1.worldcrossing.com/WebX/.1de60a30 xenical online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=836 sharp ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=76 hgh online]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=115 cheap phentermine]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=84 cheap celexa]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=98 free free ringtones]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=93 cheap hgh]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=75 celexa online]] [[http://wc1.worldcrossing.com/WebX/.1de609f8 nokia ringtones]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=105 free motorola ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=240 buy soma]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=88 free motorola ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3692 cheap tramadol]] [[http://library.cshl.edu/wp/vb/member.php?u=1363 cyclobenzaprine online]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=61 norco online]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=67 celexa online]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=81 buy cyclobenzaprine]] [[http://library.cshl.edu/wp/vb/member.php?u=1345 ultram online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=790 propecia online]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30309 celexa online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=825 free verizon ringtones]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=70 xenical online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=783 but ambien]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=80 cheap albuterol]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30243 ultram online]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=136 ultram online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=762 tramadol online]] [[http://library.cshl.edu/wp/vb/member.php?u=1359 order ambien]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=24 carisoprodol online]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2901 free mp3 ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=203 norco]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2862 vicodin online]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=123 sony ringtones]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=67 buy hoodia]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=239 cheap sildenafil]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3743 vicodin online]] [[http://wc1.worldcrossing.com/WebX/.1de60a18 free motorola ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2926 jazz ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2903 free qwest ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a0f cialis online]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2868 ambien online]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=64 cheap lisinopril]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2909 verizon ringtones]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30237 valium online]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=37 cheap ultram]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=774 buy meridia]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30263 levitra online]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/xenical_6681.htm cheap xenical]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2918 free cool ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3755 cheap ortho]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/xanax_4637.htm xanax online]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3696 fioricet]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=36 but fioricet]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3719 nokia ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3712 lipitor]] [[http://library.cshl.edu/wp/vb/member.php?u=1386 free mono ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a11 diethylpropion online]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=92 free sharp ringtones]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=99 jazz ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=84 diethylpropion online]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=23 cheap phentermine]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=185 hydrocodone online]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=238 sharp ringtones]] [[http://library.cshl.edu/wp/vb/member.php?u=1385 sony ericsson ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=173 free cool ringtones]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=810 flexeril online]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=176 cheap didrex]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30335 free nextel ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2896 zyban online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=841 ericsson ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=91 cheap hoodia]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3720 tracfone ringtones]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=91 cool ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=199 free music ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=172 but clonazepam]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3750 didrex online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=789 online ultracet]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=57 cheap celexa]] [[http://wc1.worldcrossing.com/WebX/.1de60a1e flexeril online]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/sagemringtones_756.htm sagem ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2899 tracfone ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=148 zyban online]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2888 lortab online]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3749 cheap ultracet]] [[http://wc1.worldcrossing.com/WebX/.1de609f0 lorazepam online]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3753 zoloft]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=788 nexium online]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=145 cheap xenical]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2897 free nokia ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/monoringtones_7654.htm mono ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/nextelringtones_3485.htm free nextel ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3723 motorola ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=192 lortab online]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/diazepam_558.htm diazepam online]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=218 free qwest ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/tramadol_3245.htm buy tramadol]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=49 cheap levitra]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=52 cheap clomid]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=39 levitra online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=823 sprint ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de609fd punk ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3709 prozac online]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3707 order nexium]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=61 cheap lortab]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=87 online flexeril]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=72 ambien online]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3762 free funny ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2893 cheap hgh]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=110 polyphonic ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2891 buy diethylpropion]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=775 adipex online]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=128 sony ericsson ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=40 buy ativan]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2912 sagem ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/meridia_7674.htm cheap meridia]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=77 flexeril online]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=79 cheap clonazepam]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2894 buy flexeril]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/ultracet_2738.htm cheap ultracet]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=74 diethylpropion online]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=125 free mtv ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=220 free real ringtones]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30297 albuterol online]] [[http://wc1.worldcrossing.com/WebX/.1de60a2e xanax online]] [[http://wc1.worldcrossing.com/WebX/.1de60a1f cheap lisinopril]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=27 ultram online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=778 alprazolam online]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=126 free jazz ringtones]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=80 free sprint ringtones]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30242 cheap fioricet]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=116 free alltel ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3763 nextel ringtones]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30294 prozac online]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=812 zyban]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=782 cheap hydrocodone]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3747 xenical]] [[http://library.cshl.edu/wp/vb/member.php?u=1353 vicodin]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/soma_9880.htm cheap soma]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=58 tenuate online]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/motorolaringtones_6710.htm free motorola ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=116 free polyphonic ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=112 ortho]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3752 buy albuterol]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=59 cheap prozac]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=64 cheap clonazepam]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=73 funny ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=85 nextel ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/samsungringtones_6859.htm samsung ringtones]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=815 free tracfone ringtones]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=183 hgh online]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=43 cheap xenical]] [[http://library.cshl.edu/wp/vb/member.php?u=1388 cheap fioricet]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=223 cheap wellbutrin]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2883 cheap lipitor]] [[http://library.cshl.edu/wp/vb/member.php?u=1349 cheap viagra]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/valium_6454.htm valium online]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3757 zanaflex online]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=90 sprint ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/nokiaringtones_9955.htm free nokia ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=93 free polyphonic ringtones]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30330 free nokia ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2922 free kyocera ringtones]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=49 online didrex]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=5&tid=3727 cingular ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a2d cheap valium]] [[http://www.e.kth.se/cgi-bin/esekt/discussion?command=read&discussionid=4&id=30336 free qwest ringtones]] [[http://library.cshl.edu/wp/vb/member.php?u=1343 carisoprodol online]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=107 free sprint ringtones]] [[http://www.ees.ufl.edu/alumni/forums.asp?ForumId=5&TopicId=125 free sharp ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=55 cheap cyclobenzaprine]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2885 tenuate online]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=64 cheap diethylpropion]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=92 cheap rivotril]] [[http://itcweb.ecsu.edu/portal/forums.asp?ForumId=13&TopicId=224 free sagem ringtones]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/ultram_4782.htm buy ultram]] [[http://www.aswsu-ddp.wsu.edu/toast/forums.asp?sub=show&action=posts&fid=3&tid=832 free mono ringtones]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=68 tenuate online]] [[http://www4.nau.edu/fera/index.asp?sub=show&action=posts&fid=4&tid=89 free samsung ringtones]] [[http://www.ovu.edu/community/toast.asp?sub=show&action=posts&fid=15&tid=3758 buy rivotril]] [[http://library.cshl.edu/wp/vb/member.php?u=1373 nextel ringtones]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2879 cheap clomid]] [[http://kc.vanderbilt.edu/forums/toast.asp?sub=show&action=posts&fid=5&tid=57 ativan online]] [[http://students.hsc.unt.edu/housing/item.cfm?type=2847 tramadol online]] [[http://www.colorado.edu/studentgroups/backcountryclub/blahdocs/uploads/didrex_2512.htm didrex online]] [[http://wc1.worldcrossing.com/WebX/.1de60a05 sprint ringtones]] [[http://wc1.worldcrossing.com/WebX/.1de60a2b cheap ultracet]] [[http://ae.siam.edu/forums/toast.asp?sub=show&action=posts&fid=2&tid=20 cheap tramadol]] {{VB6}}
+
{{VB6}}
 
This is actually extremely simple to do - all you need to do is declare the method (be it a property, function or sub) to which you are passing the UDT as Friend - like this:
 
This is actually extremely simple to do - all you need to do is declare the method (be it a property, function or sub) to which you are passing the UDT as Friend - like this:
  

Latest revision as of 08:12, 23 July 2007

float
 This article is based on Visual Basic 6. Find other Visual Basic 6 articles.

This is actually extremely simple to do - all you need to do is declare the method (be it a property, function or sub) to which you are passing the UDT as Friend - like this:

'-- In some module
Public Type myType
    x As Integer
    y As Integer
End Type

'-- In the class
Friend Function myFunction(foo As myType) As Integer
    myFunction = foo.x * foo.y
End Function

'-- Passing to the function
Dim foo As myType
foo.x = 10: foo.y = 100
Debug.Print myClassInstance.myFunction(foo) '-- Prints 1000 to Immediate window

Simple :-)

NOTE: This will only work when using the class from within the same project in VB. If compiled and used as a COM component, then any methods declared as 'Friend' will not appear. See MSDN on the topic of the Friend keyword:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vakeyFriend.asp