|
-
Aug 18th, 2006, 01:26 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Tagged Functions
Excuse me, i found this function some where and i have never called my functions like this. I would like to know what it means to tag functions and how to call tagged functions like the one below.
VB Code:
Public Function [SelectArea](ByVal X As Integer, ByVal Y As Integer) As System.Drawing.Image
Return Me.SelectShapesByPoint(X, Y)
End Function
-
Aug 18th, 2006, 01:40 AM
#2
Re: Tagged Functions
I have no idea what you're talking about. There is nothing out of the ordinary about that function it's just a function and you call it like you do any other function. I've never heard the term "tagged function" before. If you're talking about the square brackets that's doesn't mean anything. If you want to use a reserved word as an identifier you have to wrap it in square brackets or you'll get a syntax error. For instance, this would throw a compilation error because "Date" is a reserved word:You'd have to use square brackets to use that name as an identifier:Note that the variable is still called "date", not "[date]". The brackets are not part of the identifier, but only there to show that it is an identifier. Given that "SelectArea" is not a reserved word it serves no purpose in that instance.
-
Aug 18th, 2006, 01:55 AM
#3
Thread Starter
Hyperactive Member
Re: Tagged Functions
Thanks JMC. Thats all i wanted to know. I just came up with the word tagged function, its really no there.
-
Aug 18th, 2006, 05:51 AM
#4
Re: Tagged Functions
If you have no more further questions pertaining to this topic then please go to the Thread Tools menu and click Mark Thread Resolved. This will let other forum users know your question has been answered. Thanks!
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
|