generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » ROBLOX Talk
Home Search
 

Re: (Visual Basic) Not working the way I wanted it to :-/

Previous Thread :: Next Thread 
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
24 Dec 2011 08:47 AM
I'm making a decision maker with VB, and now I'm trying to get it to detect if a choice slot if empty or not. If it is, then don't add it in the table. If it isn't, put it in the table. When I try it out with one slot blank and one slot filled, and it chooses the blank one, the text becomes blank also. How would I make it so it only displays if the slot is filled?

Here is my code.


----------

    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim Choices(0 To 1) As String
            If TextBox1.Text <> "" Then
                Choices(0) = TextBox1.Text
            ElseIf TextBox2.Text <> "" Then
                Choices(1) = TextBox2.Text
            End If
            Dim randomArraySlot As New Random
            Label1.Text = Choices(randomArraySlot.Next(0, Choices.Length))
        End Sub
    End Class

bon
Report Abuse
rhinoBrass2 is not online. rhinoBrass2
Joined: 07 Dec 2011
Total Posts: 275
24 Dec 2011 08:48 AM
This is entirely ROBLOX related in every aspect, obviously.
Report Abuse
hammytimmy is not online. hammytimmy
Joined: 29 Feb 2008
Total Posts: 6438
24 Dec 2011 08:50 AM
This is entirely ROBLOX related in every aspect, obviously.
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
24 Dec 2011 08:51 AM
Oops, I thought I was in SH. lolsorry



bon
Report Abuse
OverallLegendary is not online. OverallLegendary
Joined: 27 Feb 2010
Total Posts: 6067
24 Dec 2011 08:52 AM
Thanks for making my head hurt with your weird scripting language.
Report Abuse
Bobberkins is not online. Bobberkins
Joined: 13 Jun 2008
Total Posts: 10179
24 Dec 2011 08:53 AM
noob.vbs
Report Abuse
McDoodleman is not online. McDoodleman
Joined: 04 Mar 2009
Total Posts: 6048
24 Dec 2011 08:53 AM
It actually is related, idiots. Why are you checking a blank form then outputting the results to an array? Or did I read too fast..
Report Abuse
hammytimmy is not online. hammytimmy
Joined: 29 Feb 2008
Total Posts: 6438
24 Dec 2011 08:57 AM
umad mcdoodblepantys!?!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image