Jump to content

StringLeft, StringRight, StringMid


xmen
 Share

Recommended Posts

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

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 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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...