The Asc() function will return the ASCII code for the character. It a string is placed in the function it will only return the ASCII code for the first character.
Sub Main Dim myString As String myString = "ABC" MsgBox Asc(myString) 'returns 65 which is "A"End Sub
IDEA is a trademark of CaseWare International Inc., used by permission.
All material provided on the IDEAScripting website is presented as is without any warranty or guarantee. Anybody using any solution provided on this pages is encouraged to validate the effectiveness and reliability on their own.
IDEA Help Videos
IDEA Related Videos
IDEA Success Stories