I have a basic script that in theory is supposed to break a large HTM file into individual HTM files.
The scripts asks for the input name which in this case is occfinal.htm
Then it asks what the prefix for the subfiles, in this case it will be OCC
Then it asks where the number starts, I enter 1
Then it asks for how many digits in the number, I answer 4
Then the script asks" How long is the old stuff to keep". I have no idea what to enter in this field. I try to enter a number here just to get to the next question.
The script should then ask where I would like to install the files, bit it errors out with an illegal function call on the step before with the cursor flashing on the following line of code,
If MID$(r$, np-1,1) = "#" Then num = VAL(MID$(r$, np,nl))
The script is supposed to created htm files based on an occupation number (Ex. OCC0001.HTM, OCC0002.HTM, OCC0003.HTM, ...etc up to OCC0404.HTM)
I'm also not sure what type of input the script is looking for in the "How long is the old stuff to keep"
I'll post all of the code in the next screen.
Once again, thanks for your help.