Let me start by defining the purpose of my script.
I am writing a VB script that will read in a text file and update a database with the information. If the first word of the line is ADD, I want to insert a row. If the first work is DELETE, I want to remove it from the database.
My question is: is it possible to read through a text file with an IF statement.
IF
ADD .....
THEN
UPDATE
ELSE IF
DELETE
THEN
REMOVE FROM DB
ELSE
ERROR MESSAGE
END IF
Thanks
I am writing a VB script that will read in a text file and update a database with the information. If the first word of the line is ADD, I want to insert a row. If the first work is DELETE, I want to remove it from the database.
My question is: is it possible to read through a text file with an IF statement.
IF
ADD .....
THEN
UPDATE
ELSE IF
DELETE
THEN
REMOVE FROM DB
ELSE
ERROR MESSAGE
END IF
Thanks