Page 1 of 1

Accessing a list of infomation

Posted: 14 Aug 2012, 12:29
by Chris
Hi All,

I need a little advice on the best way to go about creating the following functionality:

Using an on screen keyboard, i want to search for a name in a list of different names.
Once the name has been found i want to render it the screen as text and then be able to click the name and have it trigger an event.

Do i need to use a script to do this? or is a database the best way to achieve it? Is there any way of doing this with an excel file set up? (although i can't see any way of searching an excel file)

A few points in the right direction would be great :) So I know i'm not doing this the long way round.
I've tried a few things, mainly with strings and string searches but I get the feeling I'm making this harder than it needs to be.

Thanks in advance

Chris

Re: Accessing a list of infomation

Posted: 15 Aug 2012, 09:01
by Christian Krix Schmidt
Well I'm not a programmer, but here is what I would do. I would use a XML file and a script to parse the list of names from the XML file into an array. That is very fast. When you search for a name you search the array. Since you have the user input and all the data inside the script you can use a lot of search mechanisms. The good thing is that you have an unique index in the array and XML file as well so you can pass that index out again and use it together with the button to trigger name specific content - which is also stored in the XML file.

Chris

Re: Accessing a list of infomation

Posted: 15 Aug 2012, 16:43
by Oliver
This is roughly what i would do if I had to make a quick shot.

Its not 100% your solution but it will provide you with the knowledge you need.
A combination with Christians solution will probably work best.

Cheers!

Re: Accessing a list of infomation

Posted: 15 Aug 2012, 17:15
by Chris
Excellent. Thanks for the replies. I'll have a play with those ideas and come back to you with how it worked out.

speak soon

Chris

Re: Accessing a list of infomation

Posted: 18 Oct 2012, 09:05
by Chris
Just thought i'd drop back here to say thanks for the input from you both :)

A little reshuffle of the file you made oliver and its working exactly as i want it to ;) many thanks for that!

I have to say Chris you have opened up a can of worms with the array parsing! :lol: i'm now neck deep in C#!! enjoying the possibilities though!!

I'm sure you'll be hearing from me again regarding code difficulties :D

Thanks again!

Chris

Re: Accessing a list of infomation

Posted: 18 Oct 2012, 10:03
by Oliver
Glad to hear :)

Code on! Cheers!

Re: Accessing a list of infomation

Posted: 18 Oct 2012, 10:16
by Christian Krix Schmidt
Good on you mate!
Glad we could help!