Jump to content

Recommended Posts

Posted

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.

Posted

They are in the help file though:

$result = StringLeft("I am a string", 3)
MsgBox(0, "Leftmost 3 characters are:", $result)
----[ SandyD ]---
Posted

No no, you get my wrong question. I mean how to write those functions source code, not how to use those functions.

Posted (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 by Ejoc
Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
Posted
:(, any, just want to know how they work. In c++, i think put the string in array, then stripping off unwanted chars.
Posted

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

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

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
  • Recently Browsing   0 members

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