Code: Select all
function test(n as integer) as string
dim s(26) as string
s(0)=" "
s(1)="A"
s(2)="B"
' etc.
s(25)="C"
s(26)="Z"
test = s(n)
end function
I am missing something (beginner).
BTW is any calc-function usable in Basic?
Code: Select all
function test(n as integer) as string
dim s(26) as string
s(0)=" "
s(1)="A"
s(2)="B"
' etc.
s(25)="C"
s(26)="Z"
test = s(n)
end function
Code: Select all
chr(n+64)
Code: Select all
function test(optional n as integer) as string