For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > January 2006 > Syntax Definition (VB 6.0)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Syntax Definition (VB 6.0)
Anthony D. Law

2006-01-09, 10:46 pm

While reviewing someone else's code, I came across this line:

treeSearchStart:

This line obviously refers to a tree view control. But what does the :
represent?

Thanks in advance.
--
Anthony D. Law
Bob Butler

2006-01-09, 10:46 pm

"Anthony D. Law" <AnthonyDLaw@discussions.microsoft.com> wrote in
message news:9AEA53B9-409D-4414-B3EA-88AC159531E1@microsoft.com
> While reviewing someone else's code, I came across this line:
>
> treeSearchStart:
>
> This line obviously refers to a tree view control. But what does the
> : represent?


The line is a label which can be the target of a Goto, On Error Goto,
Resume, On/Goto or On/Gosub statement

the text 'treeSearchStart' doesn't really mean anything, it's just a unique
label within the procedure

If somecondition Then Goto treeSearchStart
msgbox "can't do it"
exit sub

treeSearchStart:
msgbox "starting search"

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com