Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Thread 1

Status
Not open for further replies.

scott1971

Technical User
Apr 20, 2005
125
EU
thread767-1493843

I tried this and I'm getting a message at the RND statement that the ) is missing. Probably something very, very simple but it's been so long since I even opened crystal that I've forgotten more than I ever knew I think!!!

WhilePrintingRecords;
Numbervar Array array1;
Redim array1 [100];

Local NumberVar i;
For i := 1 to 100
Step 1
Do(array1 := 1+Truncate RND()*Count({Claims_View.Form_Number})))
 
You're missing a ( between truncate and RND. Should be:

WhilePrintingRecords;
Numbervar Array array1;
Redim array1 [100];

Local NumberVar i;
For i := 1 to 100
Step 1
Do(array1 := 1+Truncate(RND()*Count({Claims_View.Form_Number})))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top