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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing ) in formula,but why ? 1

Status
Not open for further replies.

petrovlis

Programmer
Jan 15, 2002
114
NL
I have formula in CR 8.5:

WhilePrintingRecords;
NumberVar Array array1;
Redim array1 [10];

Local NumberVar i;
For i := 1 to 10
Step 1
Do (array1 := 1+Truncate RND() * Count({MyField}));

Upon running is says "missing ) "...on the place just before RND. So it should be ")RND()" but that does not work..
Where is the error??

Thanks
William
 
Not sure what syntax you are using but Truncate is a function so you will need to wrap in ()

Truncate (RND() * Count({MyField})))

Ian
 
Thanks Ian Waterman,

It is now working !!

Thanks a lot

William
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top