|
-
Sep 29th, 2000, 10:58 AM
#1
Thread Starter
Frenzied Member
There should be a way if 0 is a and 1 is b etc to use Chr and save yourself a buttload of time. Long case statements are slow as frozen molasses running uphill on Jupiter, if you know what I mean.
-
Sep 29th, 2000, 12:22 PM
#2
New Member
do this....
- put all the names into an array
- get a random number from the array's lower bound to the array's upper bound
unless i'm reading your post wrong, that should work
and it should save you a lot of time (and code)
-
Sep 29th, 2000, 10:36 PM
#3
Thread Starter
Frenzied Member
I don't know how much work that would save, based on what I understand of the post. But I am wrong a lot, I'm just human. Try:
Dim I As integer, Name As String
Input #x, Name
For I = 1 to len(Name)
Mid(Name,I,1) = Chr(Val(Mid(Name, I, 1) + Asc("a"))
Next I
This will convert numbers to names, with a=0,b=1,etc
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|