Last active
March 5, 2025 12:45
-
-
Save R0mb0/8ecceee90db41b3b695b145d2431d292 to your computer and use it in GitHub Desktop.
Function to get a character from a string using a index.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Function get_character(index, text) | |
If IsNumeric(index) and index < Len(text) and Not(index < 0)Then | |
get_character = Left(Right(text,(Len(text) - index)), (1)) | |
End If | |
End Function | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment