Tuesday, 15 January 2013

How to compare Strings and put it into another program? -


I have a small problem and before I spend even more time trying to solve it, It should be possible to know what I want to do (and perhaps how to do it ^^ ^ input) is possible

My problem:

I want to take some text and then I want to split all the white spaces into different strings (for example "hello, whatever my name is" hello "" my "

Then I want to set every string in my own variable so that I can get somebody like "=" hello "b =" me "and something else. Then I will use the stars with other stars I want to compare (the idea is to get the address from applications without searching from them, so I thought I could copy a telephone book to define names) and the first input variable to set the matching input. Finally, and the road.

Then, and here "I want to know whether this is possible" part I want to put it in our database, that means I have to copy this string To go through the tabs in the text field and then on the next field, I did something like this before with AutoIT, but I do not know how to tell AutoIT whats inside the strings I think this program Should be through the Ud. I have had a little experience with C + +, Python and Batch files, so it would be good if someone can tell me that it can also be done using those languages ​​(and I'm scared that C ++ can do this And I'm just stupid to do this). thank you in advanced.

Splitting a string is very simple, usually there is a built-in method .split () Which will help you, this method varies from language to language.

When you divide one, it will be assigned to an array, then you can use an index for the variable, for example you will have:

 < Code> var str = "hello, my name is bob"; Var split = str.split (""); Print partition [0]; // is "Hello," print partition [1]; // "My" etc.  

You can also use JSON to return data so that you

  print partition ["last name"] Can make an output like that. ; 

/ P>


No comments:

Post a Comment