-
[RESOLVED] Syntax Error
For an application I was writing I require the ComboBox to display the open COM Ports for the user to select and therefore I wrote...
For Each CommCtrl.Commport ()
cmbPort.Items.Add(CommCtrl.CommID)
Next
However I seem to be getting a syntax error after the CommPort().
Firstly, is this the right sort of code to use? and if it is how can I remove the syntax error from this section?
-
Re: Syntax Error
-
Re: Syntax Error
Thanks for the help... but the website/page doesn't open. 'The Page Cannot Be Displayed'.
Anything else I could do?
-
Re: Syntax Error
You need to paste that link into the online help page within Visual Studio.
Open Visual Studio, Click On Help.
Paste it in the URL line on the help page
-
1 Attachment(s)
Re: Syntax Error
Yea, I did that...I get the error page, lyk the one you get in internet explorer.
(It's attached)
-
Re: Syntax Error
After you paste it in. Remove the http:// and put back in the ":" after
"ms-help" It shouldn't read like this:
http://ms-help//MS.VSCC.v80/MS.MSDN....7da40c75e2.htm
It should read like this:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbalr/html/ebce3120-95c3-42b1-b70b-fa7da40c75e2.htm
-
Re: Syntax Error
Just look up "for each" in the MSDN library. It will show you what the correct syntax is.
-
Re: Syntax Error
Got it, the code was wrong. Thanks anyways