xmen Posted May 3, 2005 Share Posted May 3, 2005 I know how to use those function, but those functions are not inside the include folder, so i can't learn those source code. Would someone here explain how the theory work? If have some source code paste here are much better to understand, else just explain it (theory). Millions thanks. Link to comment Share on other sites More sharing options...
sandyd Posted May 3, 2005 Share Posted May 3, 2005 They are in the help file though: $result = StringLeft("I am a string", 3) MsgBox(0, "Leftmost 3 characters are:", $result) ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
xmen Posted May 3, 2005 Author Share Posted May 3, 2005 No no, you get my wrong question. I mean how to write those functions source code, not how to use those functions. Link to comment Share on other sites More sharing options...
Ejoc Posted May 3, 2005 Share Posted May 3, 2005 (edited) The functions were written in C++, do you want "The source code" or AutoIt versions of the functions? Tho you would have to use the function StringMid in order to do it. Edited May 3, 2005 by Ejoc Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
xmen Posted May 3, 2005 Author Share Posted May 3, 2005 , any, just want to know how they work. In c++, i think put the string in array, then stripping off unwanted chars. Link to comment Share on other sites More sharing options...
Insolence Posted May 4, 2005 Share Posted May 4, 2005 Yep, that's probably how, seeing as how 'strings' in C++ are just an array of char's. I think. char hello = "Hello world!"; is h[0] = "H" h[1] = "e" h[2] = "l" ... So it's as simple as returning the last x parts of the array, the first x, or from x to y. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
xmen Posted May 4, 2005 Author Share Posted May 4, 2005 Thanks for all the reply here and, taking the time to explain. Link to comment Share on other sites More sharing options...
jpm Posted May 4, 2005 Share Posted May 4, 2005 Thanks for all the reply here and, taking the time to explain.<{POST_SNAPBACK}>If you are a C Reader you can download the Open Autoit source. I don't know if it will help but you can definitively do it 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