Visual Basic Question

Talk about your favorite PC games, Steam and building awesome custom rigs!

Moderator: Moderators

Post Reply
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Visual Basic Question

Post by ghosstt »

i dloaded visual basic 2005 express from the microsoft site. its completely free forever right? and is VB easy?
Harshboy
Portablizer
Posts: 3610
Joined: Tue Oct 11, 2005 3:44 pm

Post by Harshboy »

Yes, and Yes :wink:
HotDog-Cart
Portablizer
Posts: 3804
Joined: Sat Jul 16, 2005 12:07 pm
PSN Username: Lythinca
Steam ID: scythe_king
Location: Your IP Address, Connecting...
Contact:

Post by HotDog-Cart »

Visual Basic is simple. Think of it as: BASIC but with an interface.
Image
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

HotDog-Cart wrote:Think of it as: BASIC but with an interface.
What? That may be true for the first version of Visual Basic (for DOS), but it hardly holds that way for anything past it. :?
HotDog-Cart
Portablizer
Posts: 3804
Joined: Sat Jul 16, 2005 12:07 pm
PSN Username: Lythinca
Steam ID: scythe_king
Location: Your IP Address, Connecting...
Contact:

Post by HotDog-Cart »

You know what I mean. Like, I'm telling him to not get psyched out about its sexyness.
Image
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

Yes, it's completely free forever.
HotDog-Cart wrote:You know what I mean. Like, I'm telling him to not get psyched out about its sexyness.
Why not? It's a relatively easy to use development environment that can be used to make just about anything. Once it compiles the program it's the same quality as any .NET program.
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

help.. i have this..

Code: Select all

Public Class Form1

    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Product = Val(TextBox1) * Val(TextBox2)
        Label3 = Product
    End Sub

    Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

End Class
its supposed to be a program to calculate the area of a square. when i debug to run, it says that Product isnt declared.. how do i do that
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

It's been a few months, but I think you have to add something like this to the code:

Code: Select all

 dim Product as integer 
Look up "declaring variables" in the help system.
Kurt_
Portablizer
Posts: 5748
Joined: Thu Nov 24, 2005 10:32 am
Steam ID: kurbert
Location: Ontario, Canada
Contact:

Post by Kurt_ »

Type "Dim [any name except reserved names like 'and' or 'dim'] as " and you'll get a list of things to choose from. Single is any number (decimals included) from 1 to a whole lots. Double is a whole lot more, Integer is only whole numbers, String is not a number (text, etc.) and I forget the rest.
Hey, sup?
Post Reply