Lempke Posted November 10, 2006 Posted November 10, 2006 I want to breakup a string into different variables Say a strings contains 4 words "This is a text" Then count the words and than assign the words to a variable. $result1=This $result2=is $result3=a $result4=text Is this possible??? And how ??
xcal Posted November 10, 2006 Posted November 10, 2006 Look up StringSplit() in the help file. How To Ask Questions The Smart Way
Danny35d Posted November 10, 2006 Posted November 10, 2006 Yes, it is possible. #include <Array.au3> $String = StringSplit('This is a text', ' ') _ArrayDisplay($String, 'Example') AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Lempke Posted November 10, 2006 Author Posted November 10, 2006 Yes, it is possible. #include <Array.au3> $String = StringSplit('This is a text', ' ') _ArrayDisplay($String, 'Example') THX, that will get me started
xcal Posted November 10, 2006 Posted November 10, 2006 Ahhh even better. The answer on a silver platter. Who needs the help file... How To Ask Questions The Smart Way
Lempke Posted November 10, 2006 Author Posted November 10, 2006 Ahhh even better. The answer on a silver platter. Who needs the help file...If this is ment sarcastic, then for your information I use the helpfile all the time. Somehow I must have missed this command. I only post something when I can't find a solution myself. For a not native English speaking person I sometimes find it difficult to find a solution, or understand the helpfile.But thx for your help...
xcal Posted November 10, 2006 Posted November 10, 2006 For your information... it absolutely was sarcastic. But, it wasn't directed at you. As for your abilities with the English language, you seem to understand and write it just fine. Better than some who were born speaking it. How To Ask Questions The Smart Way
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