Renderer

Autoit Chr, Asc definitions

18 posts in this topic

Hi ! Can you give me a complete definition of the built in functions : Asc() and Chr() , if you don't mind of course.

Thanks in advance!  

Share this post


Link to post
Share on other sites



Best definition already done in helpfile.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

22 hours ago, JohnOne said:

Can you be a little more specific?

What does "complete definition" mean?

Seems pretty straight forward from the help file.

I mean the whole block of code for those functions . That's what i meant through 'definition'.

Edited by Renderer

Share this post


Link to post
Share on other sites
14 minutes ago, Renderer said:

I mean the whole block of code for those functions . That's what i meant through 'definition'.

the examples in helpfile contains the "whole block" of code. More is not needed.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

4 hours ago, Renderer said:

I mean the whole block of code for those functions . That's what i meant through 'definition'.

 

You mean something like

Func Asc($sChar)
    Switch $sChar
        Case "0"
            Return Null
        ...
        Case "32"
            Return " "
        Case "33"
            Return "!"

?

 

DISCLAIMER: The above is psuedo-code used as a clarifying question as might occur in a technical support situation.

Edited by rcmaehl
Add disclaimer

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

@rcmaehl: you are using a reserved word for your func. The func Asc is a native func in AutoIt, so i suggest read helpfile too or test next time your scripts.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

14 minutes ago, AutoBert said:

@rcmaehl: you are using a reserved word for your func. The func Asc is a native func in AutoIt, so i suggest read helpfile too or test next time your scripts.

Non-sense, it's not an actual script, it's an example, posted as a question, used for clarification.

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

On 9/10/2016 at 5:12 AM, AutoBert said:

the examples in helpfile contains the "whole block" of code. More is not needed.

I need the whole blocks of code that define this functions.

Edited by Renderer

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

1 minute ago, Renderer said:

I need the whole blocks of code that define this functions

So the source of the code, How it does what it does?

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites
1 minute ago, Renderer said:

I need the whole blocks of code that define this functions

AutoIt3.exe is closed source, but maybe @Jos is so friendly and give it to you.

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

AutoIt code is closed source, so no hope. Anyway, given the specifications found in the help file, how these functions work is pretty obvious (to me).

What do you find unclear?

Edited by jchd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites
14 minutes ago, AutoBert said:

@rcmaehl: you are using a reserved word for your func. The func Asc is a native func in AutoIt, so i suggest read helpfile too or test next time your scripts.

I have edited the post to resolve your issue with it.


My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites
35 minutes ago, AutoBert said:

AutoIt3.exe is closed source, but maybe @Jos is so friendly and give it to you.

These are mutual exclusive and the first part overrides the second part, so it's a NoGo when it isn't part of the open source version posted  ;)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@Jos is open-minded yet hermetically closed :lol:


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites
On 9/10/2016 at 8:45 AM, rcmaehl said:

So the source of the code, How it does what it does?

Right !

Share this post


Link to post
Share on other sites

What exactly do you want to know that isn't clear?


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
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