Question:
Visual basic 6.0 pls help me.....?
ash
2007-08-07 11:46:57 UTC
im now learning visual basic 6.0, pls tel d meaning of Dim, Integer, String, boolen and how n when use of these
Three answers:
beauty princess
2007-08-08 00:37:41 UTC
Hey Ash,



The first answerer is correct.

those are the basic steps to learn in VB.



MORE

For any program, you write in VB, you must bear in mind that VB holds data only during runtime. So when you close the program, all the data are lost.

A typical example is the calculator program that u find on your computer.

If u had to solve the ff eqn:

12% of $28000 x 23

You enter the numbers one after the other but each time you press the sign key, the numbers disappear but its stored TEMPORARILY somewhere to be used for the next number.





DIM

This is how DIM (variables ) work.

In VB, variables are used to store values temporarily or throughout the runtime of the program.



Dim myAge as Integer

Dim myName as String



Integer means a whole number value from 1 - 32000

eg: myAge = 22



String could be letters, words or sentence usually enclosed with " " in most earlier versions of VB

eg: myname = "Ash Barbara"



boolean means TRUE or False - usually used to present the result of a conditional statement.

most times, boolean value are used to represent properties of the VB form.

eg; me.enabled = True

chkbox.checked = False

There are couple of books you could use that explains in the most simple way. One of them is VB5.0 by Mac Graw Hill. Or you use the Help menu on the VB program with the MSDN page.



MORE

One thing about these variables is u loose them once u close the program

Take for example, u make a program for a storekeeper.

The strekkeper enters the sold items, the costs and enters the amount paid, so that your programs calculates the balance and adds the items to a stock list.



All the items you enter during runtime is lost once you end the application.



********************Special NOTE*************************

U seems to ave a great desire learning VB.

Anyway VB 6 is one of the best programming langs aroung simply because it has a GUI where u ca see what u are designing and just put some codes to it. But Microsoft has since dropped the idea of VB6 and made new programs such as VB 2005 and next Visual Studio.NET, developed on the .NET Framework 2.0

These are exciting programs langs that u can learn and its full of new ad latest technologies of todays sotware environment.



If u're not yet too deep in VB 6.0, I'll advise u to get up with visual studio.NET.

It comes with powerful tools such as classes, OOP object oriented programming, integrable databases and OLEs to build from simple application to web interfaces and database APIs.



I can help u with some articles and some programs including the MSDN network where you can chat and get info from co-software developers around you while building your own application.



my chat is prenticehalls@yahoo.co.uk

I can chat u up starting from 9.00am
Dave
2007-08-07 19:36:08 UTC
This is a hard question to answer without knowning whether you know any programming langauge or not, but I'll give it a go.



Dim - This is the keyword for a variable declaration if you want to save some value in a variable for use in a later step of your programming then start with Dim. Right after that you need to put the variable name like firstname. What does first name need to be? Well generally you will make a name out of a sequence of charcters also known as a string. Thus you now have a line of code like this:

Dim firstname As String

if you want to assign a value to the string then you say

firstname = "John"

For your other questions an integer is a number type variable. Example:

Dim countofpeople As Integer

countofpeople = 6

Boolean is a true or false variable type

Dim isdone As Boolean

idone = True



I hope this helps
aerokan a
2007-08-07 19:53:52 UTC
Computer Tutorials, Interview Question And Answer

http://freshbloger.com/



Tutorials- http://teamtutorial.com/


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...