Lempke Posted November 10, 2006 Share 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 ?? Link to comment Share on other sites More sharing options...
xcal Posted November 10, 2006 Share Posted November 10, 2006 Look up StringSplit() in the help file. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Danny35d Posted November 10, 2006 Share 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 Link to comment Share on other sites More sharing options...
Lempke Posted November 10, 2006 Author Share 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 Link to comment Share on other sites More sharing options...
xcal Posted November 10, 2006 Share 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 Link to comment Share on other sites More sharing options...
Lempke Posted November 10, 2006 Author Share 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... Link to comment Share on other sites More sharing options...
xcal Posted November 10, 2006 Share 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 Link to comment Share on other sites More sharing options...
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