Forum Navigation
You need to log in to create posts and topics.

Another vrn question (a simple one)

Posted 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$)=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)