Let>FieldValue=

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
michursky
Newbie
Posts: 2
Joined: Mon Sep 15, 2008 2:54 pm

Let>FieldValue=

Post by michursky » Mon Sep 15, 2008 2:59 pm

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 15, 2008 3:29 pm

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?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts