English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know this is very basic, but say I wanted to "Dim" the letter "A" as an integer that is greater than 0 but less than 255, how would I do that? I've been doing more complicated things, and this has completely slipped my mind.

2006-09-19 12:36:06 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Oh gosh, i did this at work just a few weeks ago but dont have either the code or reference handy. Try something like this:

dim A as integer = asc('A')

What I actually did was this:

dim letter as integer = 65

I was doing a web page where you could sort by Letter, so I displayed all the letters using a for:

for i=0 to 25
chr(letter + i)
next

Untested but you get the point, I hope

2006-09-19 17:47:36 · answer #1 · answered by soulblazer28 2 · 0 0

fedest.com, questions and answers