|
-
May 1st, 2008, 03:22 PM
#1
Thread Starter
Banned
help radom
how can i make random with word..
like
but i need somethings in end
@angel
i wana @angel in end text box
so how can i do like tht
here for explln
random 6 word
ahshsd@angel
paushf@angel
siuesoj@angel
ahosps@angel
-
May 1st, 2008, 03:30 PM
#2
Addicted Member
Re: help radom
text1.text = text1.text & "@angel"
-
May 1st, 2008, 07:16 PM
#3
Re: help radom
Code:
Dim sEmail(1 to 10) as String
Dim i as Integer, n as Integer, k as Integer
Randomize
For i = 1 to 10
For k = 1 to 6
n = Int(Rnd * 26) + 97 '-- 26 letters from "a" with asc=97 to "z" with asc=122
sEmail(i) = sEmail(i) & Chr$(n)
Next
sEmail(i) = sEmail(i) & "@angel"
Debug.Print sEmail(i)
'-- No checking duplicate here. A collection can be used to store emails addresses
Next
Last edited by anhn; May 1st, 2008 at 07:21 PM.
-
May 2nd, 2008, 07:19 AM
#4
Thread Starter
Banned
Re: help radom
 Originally Posted by anhn
Code:
Dim sEmail(1 to 10) as String
Dim i as Integer, n as Integer, k as Integer
Randomize
For i = 1 to 10
For k = 1 to 6
n = Int(Rnd * 26) + 97 '-- 26 letters from "a" with asc=97 to "z" with asc=122
sEmail(i) = sEmail(i) & Chr$(n)
Next
sEmail(i) = sEmail(i) & "@angel"
Debug.Print sEmail(i)
'-- No checking duplicate here. A collection can be used to store emails addresses
Next
its working thanks
can u tell me how can i send it in text1.text
i mean its showin in text1.text box?
-
May 2nd, 2008, 07:21 AM
#5
Re: help radom
 Originally Posted by angel.girl
can u tell me how can i send it in text1.text
i mean its showin in text1.text box?
I don't understand what you are asking here.
If it is showing in Text1, then it is already there so there wouldn't be any need to send it.
-
May 2nd, 2008, 07:30 AM
#6
Thread Starter
Banned
Re: help radom
look he post random code its working
when i click on button
but i wana its show in text box
when i click on the button its send show in text1.text
i got no idea how can i..
-
May 2nd, 2008, 07:55 AM
#7
Re: help radom
If you want to get help, please post here. Do not send PM.
Code:
Private Sub Form_Load()
Randomize
End Sub
Private Sub Command1_Click()
Dim sEmail as String
Dim n as Integer, k as Integer
For k = 1 to 6
n = Int(Rnd * 26) + 97 '-- 26 letters from "a" with asc=97 to "z" with asc=122
sEmail = sEmail & Chr$(n)
Next
sEmail = sEmail & "@noangel"
Text1.Text = sEmail
End Sub
Last edited by anhn; May 2nd, 2008 at 08:10 AM.
-
May 2nd, 2008, 08:07 AM
#8
Thread Starter
Banned
Re: help radom
its send to text1.text but when i click on the button show like tht
if u click on time its showin more random caz i wana jus one
qkzctw@angel, nbnsmq@angel, oqbgev@angel, pmatvb@angel, qydrpg@angel, dgldmp@angel, kizdxt@angel, ytsqsi@angel, wzlzkb@angel, jbxkwb@angel
see here i click 1 time and its showin 10
how can do it like click on time button
and
one
hahiss@angel
click agian
hahies@angel
here is randsom projct but wid out angel:8
http://www.2shared.com/file/3233162/...12/random.html
-
May 2nd, 2008, 08:08 AM
#9
Thread Starter
Banned
Re: help radom
thanks i got its working
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
|