Reply
Old November 7th, 2004 Top | #1
 
GhoulScout's Avatar
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99

Default visual basic.net help

can someone help me with this project. i finished with the design, and now am trying to figure out how to calculate for new releases and the dvd or vhs option. thanks for any help
Attached Files
File Type: doc Chapter 6VB.doc (25.0 KB, 18 views)
GhoulScout is offline   Reply With Quote
Old November 8th, 2004 Top | #2
 
GhoulScout's Avatar
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99

Default

can someone please help?
GhoulScout is offline   Reply With Quote
Old November 8th, 2004 Top | #3
 
GhoulScout's Avatar
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99

Default

someone please help!
GhoulScout is offline   Reply With Quote
Old November 8th, 2004 Top | #4
 
FishBoy's Avatar
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113

Default

well i think it wold be simple to calculate, math is the worst part in programming thati have i hate math, but sometimes it helps if you write them down just as normal english-math on paper then translate them to code
FishBoy is offline   Reply With Quote
Old November 8th, 2004 Top | #5
 
GhoulScout's Avatar
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99

Default

i'm not understanding what it means by using a boolean property for new releases. but thank you for trying to answer
GhoulScout is offline   Reply With Quote
Old November 8th, 2004 Top | #6
 
FishBoy's Avatar
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113

Default

you should have a boolean (true/false) variable to check if it's a new release or not, i dont know how to boolean that good haven't coded in VB for like 2yrs
FishBoy is offline   Reply With Quote
Old November 8th, 2004 Top | #7
 
GhoulScout's Avatar
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99

Default

i cant figure out how the boolean would work. the directions that i attached is what my teacher gave me and i cant figure that part out for the life of me.
GhoulScout is offline   Reply With Quote
Old November 8th, 2004 Top | #8
 
FishBoy's Avatar
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113

Default

try asking X-Istance i think he knows how to program good maybe he might be able to help you, coz i forgot all about theses things learned them once in grade 11 and forgot about them
FishBoy is offline   Reply With Quote
Old November 8th, 2004 Top | #9
 
X-Istence's Avatar
*
Joined: December 2001
Location: USA
Posts: 6,490
Reputation: 2808
Power: 217

Default

Never programmed VB.net i am fraid to say. But i am betting that if you look through your course material, and notes you took during class that you could get what you needed.

boolean variables are either true or false, on the low level, most people have them as int's, so 1 = true, 0 = false.

So if it is a new release, your program would set the boolean to true, then later when you are calculating the cost, you check if this boolean is set, and if it is, then you make the price higher than the normal cost, depending on it being DVD or Vhs.
X-Istence is offline   Reply With Quote
Old November 8th, 2004 Top | #10
 
FishBoy's Avatar
Feeeesh
Joined: August 2004
Location: Khobar, Saudi Arabia (for summer vacay)
Posts: 1,685
Reputation: 530
Power: 113

Default

i think they kinda the samething though vb and vb.net try using msdn library if you have it installed, you can also try www.msdn.com or that link might help you

http://www.microsoft.com/downloads/r...DisplayLang=en

btw how do i make that link smaller just by click on a word it'll link to that site?
FishBoy is offline   Reply With Quote
Old November 9th, 2004 Top | #11
 
ignipotentis's Avatar
OSNN Addict
Joined: March 2004
Posts: 127
Reputation: 10
Power: 98

Default

I don't know VB.net, but the concepts show below (c#) should be similar. The goal you have is to create an object. This object needs certain properties. You need a string to return a class variable of movie_title. You need boolean values [http://en.wikipedia.org/wiki/Boolean] to determine if your object is a VHS, DVD, New Release, or a Member Rental. After that, It should be pretty straight forward. I think if I give you any more info I'd be doing the assignment for you. But, I'm still open to questions. Look below for the C# example...
Code:
...
// GET or SET From
                public String movie_title {
                        get {
                                return _movie_title;
                        }
                        set {
                                _movie_title = value;
                        }
                }
// GET or SET From
                public Bol dvd {
                        get {
                                return _dvd;
                        }
                        set {
                                _dvd = value;
                        }
                }
...

don't waste time, procrastinate now!
ignipotentis is offline   Reply With Quote
Old November 9th, 2004 Top | #12
 
jimi_81's Avatar
OSNN Senior Addict
Joined: May 2002
Location: Stoney Creek, ON, Canada
Posts: 820
Reputation: 500
Power: 132

Default

IRC it man!!
jimi_81 is offline   Reply With Quote
Old November 9th, 2004 Top | #13
 
GhoulScout's Avatar
OSNN Addict
Joined: January 2004
Posts: 51
Reputation: 0
Power: 99

Default

thanks for all your help. we'll see how it turns out
GhoulScout is offline   Reply With Quote
Old December 16th, 2004 Top | #14
 
dave holbon's Avatar
OSNN Veteran Addict
Joined: May 2002
Location: London England
Posts: 1,014
Reputation: 140
Power: 130

Default

A Boolean value (true or false) in VB, Access VB (all versions) prior to .NET is a misnomer as it can be expressed as either the “value” -1, “meaning true”, “true”, or “false”, 0, however in .NET the keywords true or false are expected.

Coercion of data types as you can imagine, between the two now totally different languages is a nightmare as it’s a matter of contention which is applied unless you have used true and false. This logic is the nightmare of programmers attempting to convert their applications from one system to another and it does not end here either. Data types in any .NET language do not readily convert to any known logic model, null data types are the best example of this.

Microsoft should, and could have (easily if they had thought the model through), provided an upgrade path that trapped some of these more serious issues which by the way are extremely difficult to de-bug even if you are aware of them, instead they just proceeded down the .NET path and not until after its release considered any other issues. This does not sound like “Object Orientated” design processes to me, surely one programming team can communicate with another within the same company? Well maybe not as is the case here. A mess it surely is and you will have to pick up the pieces. Or Microsoft will now lose market share in a way they have never experienced before, just like IBM before them and Digital Research.

dave holbon is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with visual basic 6 saithe Web Design & Coding 1 December 28th, 2005 7:20am
Visual Basic 6 adamg Web Design & Coding 3 November 13th, 2003 6:35am
Visual Basic - Question lieb39 Web Design & Coding 4 February 18th, 2003 5:57pm
Visual Basic JJH35 Web Design & Coding 2 January 31st, 2003 3:41pm
Visual Basic 6.0 rickang Web Design & Coding 1 March 21st, 2002 2:22am