Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / sorry, another print question!

Author
Message
Ant
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 25th Jan 2006 14:20
Hi could anyone please help me with this piece of code, I want it to print out on screen, all the random numbers held in the array, but in columbs, also when using RND to generate random numbers, how do you make it, so they dont repeat.

Thanks !!

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 25th Jan 2006 15:49 Edited at: 25th Jan 2006 15:50
i couldn't get it to work using the "print" command... but here's my version with the "text" command



Quote: "also when using RND to generate random numbers, how do you make it, so they dont repeat."

if you use
at the begining of your code, you'll have different results everytime you run it. or at least so i'm told

"We make the worst games in the universe..."
Ant
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 25th Jan 2006 16:31
Hey Peter

Thanks alot, just what I wanted, I thought RANDOMIZE TIMER() would work, just wondered if there was another way to do it.
Didn't try it with TEXT, but I would still like to know how it could be done with print, so if anyone's got any suggestions I'd be extremely grateful !

Thanks !
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 25th Jan 2006 20:09 Edited at: 25th Jan 2006 20:17
this works:



edit:
as far as your spec'd page dimensions:



i pretty much ignored them 'cause i wasn't sure what you were going for. but, you could tweak the columns/rows/off-sets to get what you want.

Athlon XP1800+, Windows XP+SP2, Soyo K7V Dragon+ MB, 1.5Gb 333 RAM, ATI Radeon 8700LT (128Mb)
Drivers and Updates Kept Current

Login to post a reply

Server time is: 2024-11-27 05:39:15
Your offset time is: 2024-11-27 05:39:15