vbscript


Set not working in Conditonal [on hold]


In the code below, I am getting an error about "Expected end of statement" in the "Set section" line. But that line works fine when not in an If. And plenty of other lines work in an If. Is there something about a Set that it can't be in a conditional?
If showStatus = True Then
Set section = xml.selectSingleNode("//Section")).Text
TempResultsFile.WriteLine "Showing status updates"
Else
TempResultsFile.WriteLine "Not showing status updates"
End If

Related Links

Classic asp do while loop with time
Error: Name redefined
Run convert from VBScript on all files in a folder
convert a zip file to base64 using vbs in UFT
Not getting data from dropdown object in a childband
moving a script from 2003 to 2008 or 2012
QTP - ADO Recordset - SQL query trimming decimal value of the column
How to open and uncheck “use page cache” option in adobe reader using vb script
subscript out of range <4,1>
InstallShield - Using vbscript to write to registry
formula using string does not work in crystal reports
Create log files with CRT vbs script
IF loop to check if file exists in VBS
vbscript - Bring Internet Explorer Appliation window to front
Make a script that pulls information from the current webpage
Script closing when a button is pushed

Categories

HOME
cloud
vbscript
homebrew
google-oauth
jpeg
installshield
offline
export-to-csv
spring-tool-suite
static-libraries
windows-server-2012
caml
graphlab
transformation
serilog
code-review
jtextfield
paging
scriptcs
mmap
autosys
status
pingfederate
phpfox
replaceall
srcset
instant-messaging
react-chartjs
preg-match-all
functor
force-layout
ios5
dartium
swift3.0.2
abstract-class
occlusion
reportbuilder
impersonation
particles.js
mapzen
avro4s
pdf-reactor
core-plot
janrain
fakeiteasy
mime
reactive-cocoa-5
slick-3.0
sencha-touch-2.3
angular2-meteor
scorm
qsslsocket
rails-routing
celery-task
git-diff
kbuild
nodebb
qtwebview
eventkit
url-pattern
google-web-starter-kit
nsviewcontroller
php-parse-error
netmq
jms2
citrus-pay
libressl
tarjans-algorithm
ibaction
ios9.1
createprocessasuser
pretty-print
android-nested-fragment
html-helper
navigationservice
multiprocessor
qt-faststart
padarn
seed
sabredav
delphi-6
sublist
quickdialog
bigcouch
routedevent
mirah
firefox-5
exchange-server-2003
ti-dsp
defensive-programming
post-build
wsdl.exe
.net-1.0
signal-handling

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App