Computing.Net > Forums > Programming > VB Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB Script

Reply to Message Icon

Name: alpineMc
Date: May 27, 2009 at 14:15:23 Pacific
OS: Windows XP
Product: Dell DESKTOP
Subcategory: General
Comment:

Whats wrong here, Im having a hard time. It works without the "Or"

Function FindLabel ( [Name] )
if ([Name] <>"Lake")
Or ([Name] <>"Pond") then
FindLabel = [Name]
end if
End Function



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: May 28, 2009 at 09:32:45 Pacific
Reply:

Function FindLabel ( [Name] )
  if ([Name] <>"Lake") Or ([Name] <>"Pond") then
    FindLabel = [Name]
  end if
End Function

EoL means end of statement.

0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB Script

.vbs script to rename folders www.computing.net/answers/programming/vbs-script-to-rename-folders/13102.html

vb scripts won't run www.computing.net/answers/programming/vb-scripts-wont-run/2295.html

Interaction between C and VB script www.computing.net/answers/programming/interaction-between-c-and-vb-script/14575.html