Hi
Im beginner is cripting and..
Let>FrameName={""}
Let>FormName={"inscription"}
Let>FieldName={"email"}
Let>FieldValue={""}
in the FieldValue i need the script to but a random text like:
Let>FieldValue={"[email protected]"}
Let>FieldValue={"[email protected]"}
etc etc
as i want the script to loop and in each loop i want it to write random text before @domain.com.
thanks
Let>FieldValue=
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You can use the Random function. Here's a subroutine which will give you a random string 10 characters long:
Code: Select all
VBSTART
VBEND
GoSub>RandomText
MessageModal>rndText
SRT>RandomText
Let>rndText=
Let>k=0
Repeat>k
Let>k=k+1
Random>57,nRnd
VBEval>Chr(%nRnd%+65),char
Let>rndText=%rndText%%char%
Until>k=10
END>RandomText
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?