Click here to Skip to main content
16,013,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionreading xmlvalue Pin
balakpn28-May-07 2:03
balakpn28-May-07 2:03 
Answerxml file is here for the above question Pin
balakpn28-May-07 2:10
balakpn28-May-07 2:10 
QuestionImage to and from database Pin
Dileep_Vickey28-May-07 1:15
Dileep_Vickey28-May-07 1:15 
QuestionDatagrid problem Pin
Yogesh Kumar Chauhan28-May-07 1:00
Yogesh Kumar Chauhan28-May-07 1:00 
AnswerRe: Datagrid problem Pin
Christian Graus28-May-07 1:04
protectorChristian Graus28-May-07 1:04 
QuestionRandom display of items Pin
samerh28-May-07 0:36
samerh28-May-07 0:36 
AnswerRe: Random display of items Pin
Christian Graus28-May-07 0:45
protectorChristian Graus28-May-07 0:45 
GeneralRe: Random display of items Pin
samerh28-May-07 1:44
samerh28-May-07 1:44 
Christian Iam still confused about setting up items. The case is that i dont have a fixed number of items to set up percentages, the items may vary from one time to another. If this is the case how it is this doable?

Lets suppose i fixed my winning item number to 4 items with percentages (40,30,20,10)and i used the random function
Dim RandomNumber1 As Integer
RandomNumber1 = RandomClass.Next(0, 40)
Dim RandomNumber2 As Integer
RandomNumber2 = RandomClass.Next(41, 70)
Dim RandomNumber3 As Integer
RandomNumber3 = RandomClass.Next(71, 90)
Dim RandomNumber4 As Integer
RandomNumber4 = RandomClass.Next(91, 100)

Then what?
Then only if i chosed a number between 91 & 100 i win an item4 and so on, which is not my case. I want a ratio of (40,30,20,10) of the four existing items and a ratio of (35,25,15,15,10) of my five items and so on.
Any ideas and thanks
GeneralRe: Random display of items Pin
Christian Graus28-May-07 11:07
protectorChristian Graus28-May-07 11:07 
AnswerRe: Random display of items Pin
CPallini28-May-07 1:47
mveCPallini28-May-07 1:47 
GeneralRe: Random display of items Pin
Christian Graus28-May-07 11:07
protectorChristian Graus28-May-07 11:07 
Questionprogress bar Pin
charchabil0328-May-07 0:05
charchabil0328-May-07 0:05 
AnswerRe: progress bar Pin
Christian Graus28-May-07 0:10
protectorChristian Graus28-May-07 0:10 
AnswerRe: progress bar Pin
Xandip28-May-07 0:23
Xandip28-May-07 0:23 
GeneralRe: progress bar Pin
charchabil0328-May-07 0:59
charchabil0328-May-07 0:59 
GeneralRe: progress bar Pin
Christian Graus28-May-07 1:03
protectorChristian Graus28-May-07 1:03 
GeneralRe: progress bar Pin
charchabil0328-May-07 1:11
charchabil0328-May-07 1:11 
GeneralRe: progress bar Pin
Christian Graus28-May-07 1:24
protectorChristian Graus28-May-07 1:24 
GeneralRe: progress bar Pin
charchabil0328-May-07 1:35
charchabil0328-May-07 1:35 
GeneralRe: progress bar Pin
Xandip28-May-07 2:45
Xandip28-May-07 2:45 
GeneralRe: progress bar Pin
Dave Kreskowiak28-May-07 6:16
mveDave Kreskowiak28-May-07 6:16 
GeneralRe: progress bar Pin
Christian Graus28-May-07 11:00
protectorChristian Graus28-May-07 11:00 
GeneralRe: progress bar Pin
Xandip28-May-07 17:56
Xandip28-May-07 17:56 
GeneralRe: progress bar Pin
Xandip28-May-07 1:31
Xandip28-May-07 1:31 
GeneralRe: progress bar Pin
charchabil0328-May-07 1:34
charchabil0328-May-07 1:34 

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.