Another vrn question (a simple one)
Quote from Forum Archives on December 15, 1997, 12:57 amPosted by: wave <wave@...>
I'm using the FILES$ command to find a file and return its vrn, like this:DO
i=i-1
checkName$=FILES$(i,"",path$,vrn)
offset=INSTR(1,checkName$,"Closing Futures Prices for")
UNTIL offset>0 OR LEN(INKEY$) OR LEN(checkName$)=0This appeared to work fine at first, until I checked the vrn like this:
checkName$=FILES$(_fOpen,"",,checkVRN) 'select the same file
PRINT "vrn check: ";vrn,checkVRNThen the checkVRN is different than the original vrn. Trouble is, the
original vrn won't work in the CATMOVE routine later on, although the
checkVRN does. Does anyone know how to get the correct vrn in the first
place? TIA.____________________
Use e-mail with integrity.
Mark Goodes (wave@netcom.ca)
Posted by: wave <wave@...>
DO
i=i-1
checkName$=FILES$(i,"",path$,vrn)
offset=INSTR(1,checkName$,"Closing Futures Prices for")
UNTIL offset>0 OR LEN(INKEY$) OR LEN(checkName$)=0
This appeared to work fine at first, until I checked the vrn like this:
checkName$=FILES$(_fOpen,"",,checkVRN) 'select the same file
PRINT "vrn check: ";vrn,checkVRN
Then the checkVRN is different than the original vrn. Trouble is, the
original vrn won't work in the CATMOVE routine later on, although the
checkVRN does. Does anyone know how to get the correct vrn in the first
place? TIA.
____________________
Use e-mail with integrity.
Mark Goodes (wave@netcom.ca)