Reply To: Possible to use data from external text file as parameters?

Home Forums Problems and solutions in GDL GDL add-ons Possible to use data from external text file as parameters? Reply To: Possible to use data from external text file as parameters?

#3992
James Goode
Participant
DIM sarray[]
var = ""
filename = "ProjectNotes.txt"
ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY")
i = 1
j = 1
y = 1
sarray[j]=""
repeat
	n = INPUT (ch1, y, 1, var)
	pos = STRSTR (var, "EF-25")
	L1 = STRSUB (var, 1, pos)
	
	sarray[j] = var
	j=j +1
	i=i+1
	y=y+1
until var = prefix
CLOSE ch1
VALUES "refnote" sarray

This repeats over and over thus causing a crash but I think it’s something along the lines that I am going for. I want it to repeat until one of my lines contains “EF-25” then not include that line. If anyone can help me solve it then I would really appreciate it!