Session Start: Mon May 18 17:44:02 1998 *** Now talking in #campus #campus topic is 'Beginning Programming with VBasic 4.0' #campus topic set by Zonie on Mon May 18 17:27:27 So how is everyone doing with the VB info? Good Here! Head swimming with coding, but it is getting better. present and accounted for and you : ) Head swimming with code too!! LOL!!! Spent all weekend writing a program .... have been colaborating with John ...... Didn't realize how rusty I am!! LOL!!! What kind of program? One that a company near John needs for their orders .... If it works well for them, we may be able to market it to others! That would be Great! Sure would!!! How is everyone doing with their projects? Hey Teach. Do you think it would be a good idea to include the Dim and code on the TOE chart? No Derek. It would be a good idea to come up with variable names in your pseudocode tho .... and your pseudocode is similar to the code you will write. too much on one thing? Yep. The TOE chart is mainly for designing your form. Not for coding. It does give you a good idea of where the code is to go, tho. Would you have a look and see if it looks right to you? Sure! Sorry I had to upload it. * Happypup is getting into vb5, visual interdev and visualj++, can I get help on coding if I get stuck? http://www.connect.ab.ca/~trihulld/TOEDC.htm Derek, I hope you aren't dimensioning your objects? Sorry Hap, don't know a thing about visual interdex or visual j++ ..... no just trying to get some of the code words etc. seams easier if I have the names Ok. That's fine! If you want to include variables and how you will dimension them in your toe chart, I see nothing wrong with it. Whatever makes it easiest for you. OK VBTeach, to what degree do we need to do error checking for our program? But then, we'd have to call it a TODE chart .... hmmmmm I called it TOEDC lol QSilver, I am not requiring any error checking at all. If you would like to include it, you can! k That's right! TOEDC! kinda hard to pronounce .... But it looks great! hahaha code makes me crazy, so maybe the diversion will help. QSilver, error checking will come into it next term .... okie dokie * Happypup loves these classes, get's me on track for the basics, sometimes overlooked when you you do other things By the way, the new lesson is posted .... sorry it's late! on the way. lol any word on the execises for the book? Nothing yet! We will probably hear something by the time the term ends .... it's looking that way! better late than never. I'm going to email Mr. Weston from MCP and find out what's going on! VU has sent 2 faxes already! Is everyone finding the book we are useing to be clear? using ... sorry .... yes, clear, but outdated a little Well there is a few typo's in the E version, but not to bad. I agree it's a bit outdated with VB5 out ..... But, as I keep saying, the coding principles are the same ..... yes, that's true and the coding id the important part id=is The only difference I've seen different between 4 and 5 is the use of the common dialog box ..... at least for objects we will be covering both terms ... When I write lessons for next term, if coding is going to be different for 5 than it is for 4, I will make a note of it in the lessons. well, the main diffence I have seen is the wizard that creates most of the project for you, but you strill have to write the code I haven't used the wizard.... But the project I was working on this weekend was in VB5. It's really the first major project I've written in 5 ..... In the VB4 Book they don't prefix with the data type like thay do in the VB5 Book I never learned to prefix, so I still don't. I think it's a matter of preference. It doesn't make a difference to the code. If you dim a variable for a certain data type, it's fine. I think the only reason variables are prefixed with data types is so you will know their data types when using them. Just like when you prefix an object. Right. OK, but when as slow at this as me, I need all the help I can get. and for less memory usage When you dim a variable, that specifies the memory usage. It works the same way when prefixing one. I'm not sure, but I don't think prefixing variables was recognized in VB3 - the version I learned with. But it was available for use in 4. Any other VB questions? wouldn't DIM be more reliable, rather than taking a chance on "Not Enough Memeory" error half way through the program : ) was the memory usage implemented with the native compiler in %? 5 I prefer using the dim statement. I also prefer setting my options to force dimensioning variables. Not sure Hap! Oh! I see what you are asking. Actually, even in 3, memory usage was taken into consideration. Each data type has it's own amount of memory it will use. Variant is the worse .... not sure if it was available in 3 tho .... Memory usage was always a concern back then when the most ppl had was around 4mb .... * Happypup notices that progammers are getting sloppy, assuming more memory instead of writing fast code Remember, when you dimension a variable, you are setting aside a piece of memory for that variable to access. If you don't dimension a variable, it is automatically given the Variant data type, which uses the most memory. Yep! I agree Hap! I only have 16mb ..... my daughter is sitting over here with 64mb! that makes sense I would prefer using a program that takes my RAM into consideration! If you want to force yourselves to be "good programmers" go into your options, and put a check in the box for "Require Variable Declaration" it's easy to forget that not everyone has 128mb ram : ) LOL!!!! Yep!! Not everyone has even 32 mb!!! and it runs a LOT faster on ram than a swap file That is true, Hap! I work for Intel and none of my machines has more than 32 Meg or is faster than a 166. :( I'm a puter science teacher at a college, and my puter is a pentium 120 with 32mb ..... It was a fight just to get them to upgrade me to Office 97! and Intel has good machines compared to a lot of companies The next fight will be for them to update the lab to Office 97! a lot of people are still on dx66's so people with computers are more foolish than conpanies. :) Yeah, we just upgrade to Outlook. I would think at Intel, everyone would have the new 400! yes, we spend more on updates without a doubt Yeah, that's what I thought too...they kinda tight with stuff like that though. They had a shock .... they went to upgrade the puters in the labs to Netscape 4.04, but the machines didn't have enuf HD space, nor memory! I'm on a dx120 at home ...... I even had to bring my Visual C++ 5. So I didn't have to use 4. I have a 200mmx, but will be a while till I update thios one I had to do that with Visual Basic. They wouldn't install it on my puter, even tho I was teaching the class! It's interesting that they want quality software but won't give you the best tools. and a 200mmx is outdated now! seems like they come out with a faster chip every month now Yeah, There coming out with a new family that will go over 500 Mhz. There = they're well, until it feeds me and does my laundry, I'm here with m200 Can I ask a more advanced question? Yes QSilver? Does Visual Basic do shifts. Like C's << or >>? I don't know Qsilver. My knowledge of C is very basic, so I'm not even sure what you mean? anna? Are you in the VU visual basic class? hang inthere anna1 nope Zonie, justy meet hi in a motel and cut off his pe... (see above) but my class is supposed to meet here at this time Ok. That's what this is ..... unless all my clocks are wrong ah ok, but that not worth edit : ) web graphics Ok, Can Visual Basic do logical functions like AND, OR or XOR? advanced Sure can QSilver! What's the syntax? XOR ... I don't think so, but VB does do And, Or, Not It should be in this next lesson .... If number <> 5 and number > 10 then I think that is on Tuesday anna1 OMG I don't believe this.....man my weeks are all confused now It's lesson 6 stuff .... Hi Ron! sorry, I'll just quietly bow out now Hi Teach That was a good question that QSilver posted. If anyone would like, I will put together a table that shows the difference. It's all a true/false thing. And related to decision making. Yes, please. Can VB do bitwise operations...AND, OR ? Yes! If you are asking about making decisions using And, Or, Not ..... No, I'm taking about like ANDing one value with another. They are also used in Looping .... next weeks lesson .... logical operators and or yes Do you mean: I could give you a C example if that would help. If Number >= Number2 and Number3 = Number4 then do this? It would .... It might? No, if you AND 5 with 3 you get 2. ... or if you OR 5 with 3 you get 7. hmmmmmmmmm ...or if you AND x with y you get z. I ask cause these operation can speed up code alot. No. Nothing that I know of with VB does that .... That is supposed to be the beauty of C ..... Speeding up code .... Quick and Dirty, as my instructor called it .... Yeah, that's sums it up alright. :) What could take say - 7 lines of code in VB, would take say - 3 lines of code in C hmmm, I thought it was the other way around. I only took the one class in C - very basic - but it seemed a lot was accomplished in fewer lines of code .... C eliminates a lot of the typing .... Yeah, but you can't open a window or form with one line of code in C. That's true! Now, I'm talking about C! Not C++ or Visual C++! There's a lot more overhead in C or C++ to do windows programming. VB automatically allocates a lot of memory for variables...like for a check box or text. But it's advantage is supposed to be its portability. Yeah, it's more portable but most software is written for the PC nowadays. That is true! Any VB questions? I think I am cool for now. Next week will include the last of the coding for your projects. The concepts for this week and next week are very important as they apply to other languages .... So, please, pay special attention to them. Session Close: Mon May 18 19:47:50 1998