Quantcast
Channel: Easy if problem in vbscript - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Oded for Easy if problem in vbscript

You are comparing a string to a number - the content of row will be a string, so there is a type mismatch when comparing it to a number.Try this to find out if the line contains the number 0:If row =...

View Article



Answer by Philipp for Easy if problem in vbscript

row is a string because the ReadLine method returns a string. Probably you want to say If row = "" or If Len(row) = 0 instead.Here is an improved version of your scripts:Script for writing:Set FSO =...

View Article

Easy if problem in vbscript

i try to copy the second line from a txt, that works great problem is now i try to make an if-statement that check the txt, is there something in line 2. Set fso =...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images