Erik. Posted November 20, 2007 Posted November 20, 2007 Hi, I i need to make a search function. I have many names in an ini file. section members i also have a section howmany so you can see how mandy members i have. Now i want to search for a person like "kelly" Now do we have 3 Kellys how to fix it that when the program found one kelly that the other names also so you get a list of msgbox whit alle kellys in it. Is it posible and how can i make it? I don't have any idea how to make it Greatz Erik I little problem, hard to find and fix
PsaltyDS Posted November 20, 2007 Posted November 20, 2007 Hi, I i need to make a search function. I have many names in an ini file. section members i also have a section howmany so you can see how mandy members i have. Now i want to search for a person like "kelly" Now do we have 3 Kellys how to fix it that when the program found one kelly that the other names also so you get a list of msgbox whit alle kellys in it. Is it posible and how can i make it? I don't have any idea how to make it Greatz Erik You didn't give the format of the [members] section. Is it "n = User Name", or "User Name = Something Else"? Anyway, the function is easy to do, just read the whole section into an array with IniReadSection, and then search it with a For/Next loop. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Erik. Posted November 21, 2007 Author Posted November 21, 2007 It is numberd, on the top of the file you have a number like 85 that will say we have 85 members. you got the name for example 84 Then cardnumber-firstname-lastname Someone got an example? I little problem, hard to find and fix
PsaltyDS Posted November 21, 2007 Posted November 21, 2007 It is numberd, on the top of the file you have a number like 85 that will say we have 85 members.you got the name for example 84 Then cardnumber-firstname-lastnameSomeone got an example?Post what you tried that didn't work. I'm sure you'll get plenty of help.If you need it written for you, check out the Rent-A-Coder link in my sig.P.S. With 253 posts, I suspect you knew that was coming... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now