Sure thing. Let us know if you have any more questions.

Aaron

On 11/2/2011 2:20 PM, Scott, Ken wrote:

Hi Aaron,

Your answer was enough. I missed the importance of the end if lines in the various scripts that I have been reviewing for ideas. Thanks for your reply to my question.

Regards,

Ken Scott

*From:*Aaron Smith [mailto:[email protected]]
*Sent:* Wednesday, November 02, 2011 10:49 AM
*To:* [email protected]
*Subject:* Re: If Then Statements

On 11/2/2011 1:33 PM, Scott, Ken wrote:

What happens if there is no text after the then portion of an if then statement in vb script. Does the script continue within the sub routine or function or does it return to the main section of the script?


If you have an If ... Then with no End If, you'll get an error ("Error: Expended 'End').

If you have an If ... Then followed by an End If, but nothing after Then, that will just do nothing.

Can you provide a sample?

Aaron

--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to