Problem with csv.ahk code
Posted: 20 Jul 2018, 20:40
I'm using the code from here:
https://github.com/hi5/CSV/blob/master/csv.ahk
It works really well.
I have a small problem though with searching for matches.
I have a file of IP numbers - each IP being one a new line
I read the CSV and need to find out if the current IP is in the list.
All is well and it works 99.5% of the time.
PROBLEM:
123.12.108.12
is considered to be the same as: 123.12.108.120
I search using this function call: CSV_Search("myIPCSV", myIP)
(so, i've already read in the CSV file and stored the current IP in the variable above - these parts are definitely working)
Can anyone suggest what I might be doing wrong?
Could it be the periods in the IP number are causing problems?
If so, how do I overcome?
EDIT: I've tried using this function: CSV_MatchCell("myIPCSV", myIP)
this doesn't work. i'm guessing the period are causing problems?
it DOES work - for other searches that aren't IP numbers.
Thanks.
https://github.com/hi5/CSV/blob/master/csv.ahk
It works really well.
I have a small problem though with searching for matches.
I have a file of IP numbers - each IP being one a new line
I read the CSV and need to find out if the current IP is in the list.
All is well and it works 99.5% of the time.
PROBLEM:
123.12.108.12
is considered to be the same as: 123.12.108.120
I search using this function call: CSV_Search("myIPCSV", myIP)
(so, i've already read in the CSV file and stored the current IP in the variable above - these parts are definitely working)
Can anyone suggest what I might be doing wrong?
Could it be the periods in the IP number are causing problems?
If so, how do I overcome?
EDIT: I've tried using this function: CSV_MatchCell("myIPCSV", myIP)
this doesn't work. i'm guessing the period are causing problems?
it DOES work - for other searches that aren't IP numbers.
Thanks.