
11-12-2003, 02:41 PM
|
 |
Senior Contributor
|
|
Join Date: Aug 2003
Location: Tomarria
Posts: 905
|
|
Quote: Originally Posted by slash85 just tried that little bit of code you sent wen i click it says compile error: expected end sub???????
Put an End Sub on the end of that and it will work.
For reading in the names, do something like this:
Code:
dim Fornames$(), Surnames$()
dim fullName$
dim i%, j%
redim fornames(0)
redim surnames(0)
Open "C:\forname.txt" for input as #1
do until eof(1)
redim preserve Fornames(ubound(Fornames)+1)
input #1, Fornames(ubound(Fornames))
loop
close #1
'now do the same for surnames
i=int(rnd * (ubound(fornames)-1))
j=int(rnd * (ubound(surnames)-1))
fullName = fornames(i) & " " & surnames(j)
msgbox fullName
Something like that should get you started, didn't test but should work.
|
__________________
...leben ohne sinn...
|