Click here to Skip to main content
15,921,452 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondatabase table problem implementation in vb.net Pin
amaneet4-Jan-07 23:14
amaneet4-Jan-07 23:14 
QuestionWrong Exception which called Microsft Exception Block Pin
vivek_cs4-Jan-07 21:32
vivek_cs4-Jan-07 21:32 
AnswerRe: Wrong Exception which called Microsft Exception Block Pin
Colin Angus Mackay4-Jan-07 22:28
Colin Angus Mackay4-Jan-07 22:28 
QuestionObtaining Random Numbers Pin
WestSideRailways4-Jan-07 20:52
WestSideRailways4-Jan-07 20:52 
AnswerRe: Obtaining Random Numbers Pin
Christian Graus4-Jan-07 21:25
protectorChristian Graus4-Jan-07 21:25 
GeneralRe: Obtaining Random Numbers Pin
CPallini4-Jan-07 21:47
mveCPallini4-Jan-07 21:47 
AnswerRe: Obtaining Random Numbers Pin
CPallini4-Jan-07 21:34
mveCPallini4-Jan-07 21:34 
GeneralRe: Obtaining Random Numbers [modified] Pin
WestSideRailways4-Jan-07 23:14
WestSideRailways4-Jan-07 23:14 
Thank you for your replys.Smile | :) Cool | :cool:

This is what i had and was not doing the job(kept on going out of bounds,which cause an error)

RandomValue = CInt(Int(upper) * Rnd() + lower)

your code fixed that problem in the test app. Will try in in my app.Just to make sure it works;)

oh, BTW i forgot to say which language i was usingD'Oh! | :doh: thought that you would have been a mind readerRoll eyes | :rolleyes: Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:

I am using VB2005.

I am back, thought i used the same post....
I changed your line to the following :-

RandomValue = CInt(Int(upper - lower + 0) * Rnd() + lower)
works perfectly now.Big Grin | :-D Cool | :cool:

Thank again for all your replys.

-- modified at 5:36 Friday 5th January, 2007
GeneralRe: Obtaining Random Numbers Pin
Christian Graus4-Jan-07 23:36
protectorChristian Graus4-Jan-07 23:36 
GeneralRe: Obtaining Random Numbers Pin
WestSideRailways4-Jan-07 23:53
WestSideRailways4-Jan-07 23:53 
GeneralRe: Obtaining Random Numbers Pin
Dave Kreskowiak5-Jan-07 2:53
mveDave Kreskowiak5-Jan-07 2:53 
GeneralRe: Obtaining Random Numbers Pin
WestSideRailways5-Jan-07 9:56
WestSideRailways5-Jan-07 9:56 
GeneralRe: Obtaining Random Numbers Pin
Christian Graus5-Jan-07 10:04
protectorChristian Graus5-Jan-07 10:04 
GeneralRe: Obtaining Random Numbers Pin
WestSideRailways5-Jan-07 16:01
WestSideRailways5-Jan-07 16:01 
GeneralRe: Obtaining Random Numbers Pin
Christian Graus5-Jan-07 19:13
protectorChristian Graus5-Jan-07 19:13 
GeneralRe: Obtaining Random Numbers Pin
Dave Kreskowiak5-Jan-07 10:06
mveDave Kreskowiak5-Jan-07 10:06 
QuestionGet name of SQLserver 2000 with VB.net 2003 Pin
minhnguyen084-Jan-07 20:47
minhnguyen084-Jan-07 20:47 
AnswerRe: Get name of SQLserver 2000 with VB.net 2003 Pin
Hasan Jaffal4-Jan-07 22:05
Hasan Jaffal4-Jan-07 22:05 
GeneralRe: Get name of SQLserver 2000 with VB.net 2003 Pin
Vasudevan Deepak Kumar5-Jan-07 22:26
Vasudevan Deepak Kumar5-Jan-07 22:26 
AnswerRe: Get name of SQLserver 2000 with VB.net 2003 Pin
Vasudevan Deepak Kumar5-Jan-07 22:25
Vasudevan Deepak Kumar5-Jan-07 22:25 
GeneralRe: Get name of SQLserver 2000 with VB.net 2003 Pin
Hasan Jaffal6-Jan-07 6:43
Hasan Jaffal6-Jan-07 6:43 
GeneralRe: Get name of SQLserver 2000 with VB.net 2003 Pin
minhnguyen0815-Jan-07 19:46
minhnguyen0815-Jan-07 19:46 
QuestionDAAB Wrapper Pin
shreekar4-Jan-07 20:39
shreekar4-Jan-07 20:39 
AnswerRe: DAAB Wrapper Pin
Colin Angus Mackay4-Jan-07 22:32
Colin Angus Mackay4-Jan-07 22:32 
GeneralRe: DAAB Wrapper Pin
shreekar4-Jan-07 22:45
shreekar4-Jan-07 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.