On 2001-10-17 07:06, stdragon wrote:
The 'found' variable should be initialized within your procedure, and should not be a global variable.
ok moved the set found to be within the proc
Look at your string match command.. you're comparing to the filename, not the line.
this was all the info i could get about string match. How can i compare the string to all the lines within the filename?
You shouldn't set found = 0 inside the loop.
removed
You should break after you set found = 1 (look at the help page for 'break' to see what it does).
ok
You should not close the file within the loop! hehe (you will only read the first line)
argh yes.. moved the close $fs one line down so it's after the loop
If you are getting *no reply* at all, that means the procedure either has an error (look on the dcc console and watch for an error) or it's not being called (do you have the 'bind' command?)
no errors on the console, i have the bind command and it's working.
Thanks btw for the help so far, i really appreciate it.