Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

I need a random unique function but im stuck ive tried controls

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2010, 09:43 PM
Newbie
 
Join Date: Jul 2010
Posts: 2
Default I need a random unique function but im stuck ive tried controls

how do i compare multiple variables in control IF statement ?
Reply With Quote
  #2 (permalink)  
Old 07-11-2010, 05:23 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Your problem is not clear.
Check help-basics-conditions for explanation about IF statement. Using AND and OR enables comparison of multiple variables.

This has nothing to do with "random unique function"

If this is not what you need - please state it more clearly.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 07-11-2010, 02:11 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default



Use Else If to test the next statement or have a look at Select & Case.
Reply With Quote
  #4 (permalink)  
Old 07-11-2010, 11:41 PM
Newbie
 
Join Date: Jul 2010
Posts: 2
Default

Can Rnd be used to excluded a variable, if so how?
Reply With Quote
  #5 (permalink)  
Old 07-12-2010, 04:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

My first answer is yes....

i = Rnd (30, 60)
if x=i then
Do nothing
Else
Do something
End if

But it would help to know the context
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #6 (permalink)  
Old 07-12-2010, 07:54 PM
Knows the basics
 
Join Date: Jul 2010
Location: St.Petersburg
Posts: 59
Default

It is hard to help someone if they cant make there problem clear
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in search , Column Constrained to be unique, value 'already exist' aru Questions (Windows Mobile) 4 02-21-2010 05:07 PM
The same random numbers LineCutter Questions (Windows Mobile) 4 10-16-2008 05:05 PM
Function Key eillezcas Questions (Windows Mobile) 0 08-27-2008 08:28 PM
how to random shuffle an array? Stellaferox Questions (Windows Mobile) 9 07-01-2007 10:48 AM
debug mode stuck.. belotrei Bug Reports 2 06-05-2007 04:17 PM


All times are GMT. The time now is 10:54 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0