New topic: 

Randomly position Aa Lable

<http://forums.realsoftware.com/viewtopic.php?t=38195>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        pauls74462          Post subject: Randomly position Aa 
LablePosted: Fri Mar 18, 2011 6:39 pm                         
Joined: Fri Mar 24, 2006 12:10 pm
Posts: 209                How to you randomly place a label in the program when 
U run it?

Found this code:

Code:
  Dim r as New Random

  L=(r.InRange(0,500))
  
  LSName.Text=L



Sadly it do no work!

Didn't find no help for label placement in code!      
_________________
Being a Good 'ol  boy/girl will keep you out of jail 
 
But it takes the blood of Jesus to keep you out of hell!  
                             Top                 jefftullin          Post 
subject: Re: Randomly position Aa LablePosted: Fri Mar 18, 2011 6:52 pm         
                        
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 2204
Location: England                I cant speak for everyone, but that is hard to 
understand ....
What do you want to do??

Do you want a label with a random number between 0 and 500?
or do you want to place the label at some random place on the window?   
                             Top                mjh          Post subject: Re: 
Randomly position Aa LablePosted: Fri Mar 18, 2011 6:53 pm                      
           
Joined: Sun Feb 19, 2006 3:10 pm
Posts: 1148
Location: Hamburg, Germany                pauls74462 wrote:How to you randomly 
place a label in the program when U run it?
“Label” as in Label control? Or as the location you can jump to using Goto? 
     
_________________
Michael J. Hußmann 
http://digicam-experts.de  
                             Top                pauls74462          Post 
subject: Re: Randomly position Aa LablePosted: Fri Mar 18, 2011 6:58 pm         
                
Joined: Fri Mar 24, 2006 12:10 pm
Posts: 209                jefftullin wrote:I cant speak for everyone, but that 
is hard to understand ....
What do you want to do??

Do you want a label with a random number between 0 and 500?
or do you want to place the label at some random place on the window?


Place it randomly on the screen where "left" is between 0 and 500      
_________________
Being a Good 'ol  boy/girl will keep you out of jail 
 
But it takes the blood of Jesus to keep you out of hell!  
                             Top                 mjh          Post subject: Re: 
Randomly position Aa LablePosted: Fri Mar 18, 2011 7:02 pm                      
           
Joined: Sun Feb 19, 2006 3:10 pm
Posts: 1148
Location: Hamburg, Germany                pauls74462 wrote:Place it randomly on 
the screen where "left" is between 0 and 500
Code:LSName.Left = r.InRange(0,500)      
_________________
Michael J. Hußmann 
http://digicam-experts.de  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to