Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21251

Using an integer as a variable for a directory

$
0
0
I have file stored on a network drive in a patient folder labeled with their ID number. The ID number is stored as an integer. How would i have VB6 use the integer data from the patient records to access the folder?

example

Code:

Open "v:\(patient id number)\pageone.txt" For Input As #1
Do While Not EOF(1)
    Line Input #1, LineOfText
    If Mid(LineOfText, 1, 1) = "A" Then
    Print #2, Mid(LineOfText, 3)
    End If
Loop
Close #1

how do i replace the (patient id number) with the actual one pulled from another file as an integer.

Viewing all articles
Browse latest Browse all 21251

Trending Articles