ويب صور الأخبار مجموعات ترجمة إجابات Gmail المزيد »
المجموعات التي قمت بزيارتها مؤخرا | مساعدة | تسجيل الدخول
الصفحة الرئيسية لمجموعات Google
رسالة من مناقشة Fwd: VB2

تم تحليل العرض - إظهار نص الرسالة فقط

Received: by 10.11.53.59 with SMTP id b59mr1794646cwa;
        Wed, 22 Feb 2006 05:14:22 -0800 (PST)
Return-Path: <vittal...@gmail.com>
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193])
        by mx.googlegroups.com with ESMTP id v11si1840119cwb.2006.02.22.05.13.03;
        Wed, 22 Feb 2006 05:13:05 -0800 (PST)
Received-SPF: pass (googlegroups.com: domain of vittal...@gmail.com designates 64.233.184.193 as permitted sender)
DomainKey-Status: good (test mode)
Received: by wproxy.gmail.com with SMTP id i28so1084273wra
        for <rnsitvb@googlegroups.com>; Wed, 22 Feb 2006 05:13:03 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=CtvEN34AMOEoSDIijoz6xeu5uB6h5WV2mo/d6XvscylglO7LaCEdJWoxjUIdXo/Pi3kLaz//cLnOwMwh8tqfP8/HuBbFR8sWvMwGAOdClQkK+hl31VJx9EKXoF1EZhX0aK4qDgHxrM+pgZ3qOYTbYP+NCDgY+N2OZfBrgaP1U5Q=
Received: by 10.54.153.18 with SMTP id a18mr959247wre;
        Wed, 22 Feb 2006 05:13:02 -0800 (PST)
Received: by 10.54.70.14 with HTTP; Wed, 22 Feb 2006 05:13:01 -0800 (PST)
Message-ID: <d8910e430602220513u74461cb4sdb0b2d62b144d8d1@mail.gmail.com>
Date: Wed, 22 Feb 2006 18:43:01 +0530
From: Vittal <vittal...@gmail.com>
To: "RNS VB GROUP" <rnsitvb@googlegroups.com>
Subject: Fwd: VB2
In-Reply-To: <20060222062346.70858.qmail@web8504.mail.in.yahoo.com>
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_Part_10096_26656594.1140613981860"
References: <20060222062346.70858.qmail@web8504.mail.in.yahoo.com>

------=_Part_10096_26656594.1140613981860
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

---------- Forwarded message ----------
From: vittal <vittal...@yahoo.co.in>
Date: Feb 22, 2006 11:53 AM
Subject: VB2
To: Vittal P <vittal...@gmail.com>

  Profsr.com <http://profsr.com/>



[image: Previous page] Previous
<http://www.profsr.com/vb/vbless01.htm>     [image:
TOC] Contents <http://www.profsr.com/vb/vbintro.htm#content>     [image:
Next page]Next <http://www.profsr.com/vb/vbless03.htm>

 ------------------------------
 LESSON 2 -- Writing code



 The Code Editor
As we saw in the previous lesson, getting to the Code Editor is as simple a=
s
hitting the proper button. You may have discovered that you can also call-u=
p
the Editor by double-clicking on an object. It is also possible to select
"View code" with the right mouse button. You will note that the Editor has
all the functions of a text editor and then some. The most commonly used
functions will be *Cut ... Copy ... Paste* which you can call from the Menu=
,
from the Toolbar or from the right mouse button. You also have access to th=
e
usual *Find* and *Replace* functions.

Getting helpThere is *a lot* of documentation available on VB. There is so
much, in fact, that it's easy to get lost in it. However, the on-line Help
available from the Menu should be used regularly. Very often just doing a
search on a word in particular will be sufficient to get you out of a jam.
If you want to go into more detail check out the Contents part of MSDN
(Microsoft Developers' Network) and surf through it.

Writing codeVB is not very particular about presentation - spaces, indents,
lower case or upper case, it doesn't make too much difference to the
compiler. But it may make a whole lot of difference to the programmer who
has to maintain your code in 2 years, after you've moved up to President.












   * Apply "Best Programming Practices"
*When you work with RAD (Rapid Application Development) tools like VB in a
graphical interface environment, you become more than just a programmer, a
writer of code. You are a developer. We will cover that in the next lesson.

But at the moment, you are still a Programmer. And unless you are developin=
g
an application for your own personal use, that nobody else will see, you
have to think of the environment, of the team you are working with.

* "No man (or woman) is an island!"
*Especially when it comes to programming. The code you write may have to be
checked by an Analyst. It will have to go through testing. It may have to b=
e
modified by other team members and it almost certainly will go through
modifications, maybe several times, in the months and years ahead when you
probably won't be around to defend yourself. "The evil that men do lives
after them...". You do not write code for the VB compiler. You write it for
other developers and programmers. What you want others to say behind your
back is: "That Jane was blindingly efficient, brilliant, a genius with
comments ...". You do not want to be remembered as "...the Picasso of code,
master of the abstract".



If you are just starting out with the language, why not pick up a few good
habits right now and it may make your life a lot easier down the road.

   1. Use comments when appropriate but not so many as to overwhelm the
   code; the apostrophe ' is the comment identifier; it can be at the begin=
ning
   of a line or after the code.

   *' This is a comment
   'on 2 lines
   DIM intNumber AS Integer       'This is a comment *


   2. Use indents - code must be indented under control structures such
   as If ... Then or Sub - it makes it so much easier to follow the logic.

   *FOR i =3D 1 TO 5
         value(i) =3D 0      ' Indent used in control structures
   NEXT i *


   3. Use standard capitalization - keywords like If, Dim, Option,
   Private start with a capital letter with the rest in lower case; variabl=
e
   names, control names, etc. are usually mixed case: ClientName, StudentId=
,
   etc.

   4. Write extra-long statements on 2 lines using the continuation
   character _ (space underscore); in VB each line is assumed to be an
   individual statement unless there is a continuation at the end of the fi=
rst
   line.


   *Data1.RecordSource =3D  _
       "Select * From Titles"       ' One statement on 2 lines is OK*



Naming conventionsThese are the rules to follow when naming elements in VB =
-
variables, constants, controls, procedures, and so on:

   - A name must begin with a letter.

   - May be as much as 255 characters long (but don't forget that somedy
   has to type the stuff!).

   - Must not contain a space or an embedded period or type-declaration
   characters used to specify a data type ; these are ! # % $ & @

   - Must not be a reserved word (that is part of the code, like Option,
   for example).

   - The dash, although legal, should be avoided because it may be
   confused with the minus sign. Instead of Family-name use Family_name or
   FamilyName.


Data types  *Data type* *Storage size* *Range* Byte 1 byte 0 to 255 Boolean=
 2
bytes True or False Integer 2 bytes -32,768 to 32,767 Long (long integer) 4
bytes -2,147,483,648 to 2,147,483,647 Single (single-precision
floating-point) 4 bytes -3.402823E38 to -1.401298E-45 for negative values;
1.401298E-45 to 3.402823E38 for positive values Double (double-precision
floating-point) 8 bytes -1.79769313486232E308 to -4.94065645841247E-324 for
negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive
values Currency (scaled integer) 8 bytes -922,337,203,685,477.5808 to
922,337,203,685,477.5807 Decimal 14 bytes
+/-79,228,162,514,264,337,593,543,950,335
with no decimal point; +/-7.9228162514264337593543950335 with 28 places to
the right of the decimal; smallest non-zero number is +/-
0.0000000000000000000000000001 Date 8 bytes January 1, 100 to December 31,
9999 Object 4 bytes Any Object reference String (variable-length) 10 bytes =
+
string length 0 to approximately 2 billion  String (fixed-length) Length of
string 1 to approximately 65,400 Variant (with numbers) 16 bytes Any numeri=
c
value up to the range of a Double Variant (with characters) 22 bytes +
string length Same range as for variable-length String User-defined (using
Type) Number required by elements The range of each element is the same as
the range of its data type.

In all probability, in 90% of your applications you will use at most six
types: String, Integer, Long, Single, Boolean and Date. The Variant type is
often used automatically when type is not important. A Variant-type field
can contain text or numbers, depending on the data that is actually entered=
.
It is flexible but it is not very efficient in terms of storage.

Top <http://www.profsr.com/vb/vbless02.htm#Start>
Declaring variablesDeclaring a variable means giving it a name, a data type
and sometimes an initial value. The declaration can be *explicit* or *
implicit*.

An *explicit declaration:* variable is declared in the Declarations Section
or at the beginning of a Procedure. An explicit declaration looks like:
*Dim MyNumber As Integer*

Now the variable *MyNumber* exists and a 2-byte space has been reserved for
it.

An *implicit declaration:* the variable is declared "on the fly", its data
type is deduced from other variables. For example:
*Dim Total1 As Integer*      'Explicit declaration
*Dim Total2 As Integer*      'Explicit declaration
*Total3 =3D Total1 + Total2      'Implicit declaration
*

Total3 is not formally declared but is implied, it is "arrived at" from the
other declarations.

It is never a good idea to have implicit declarations. It goes against the
rules for clarity, readability and ease of use of the code.
To make sure that this rule is followed, start the Declarations with
the *Option
Explicit* clause. This tells the compiler to consider implicit declarations
as errors and forces the programmer to declare everything explicitly.

Other examples of declarations:
*Dim MyName As String
Dim StudentDOB As Date
Dim Amount5, Amount6, Amount7*

In the last example the type assigned to each variable will be: Variant. It
is the default type when none is specified.

There can be multiple explicit declarations in a statement:
*Dim EmpName As String, SalaryMonth As Currency, SalaryYear As Currency*

In this final example, what are the types assigned to the three variables:
*Dim Amount1, Amount2, Amount3 As Single*

All Single-precision floating point, you say. *Wrong!* Only Amount3 is
Single. Amount1 and Amount2 are considered Variant because VB specifies tha=
t
each variable in a statement must be explicitly declared. Thus Amount1 and
Amount2 take the default data type. This is different from what most other
languages do.



ConstantsA constant is a value that does not change during the execution of
a procedure. The constant is defined with:
*Const ValuePi =3D 3.1416*


The Scope of variablesThe term *Scope* refers to whether the variable is
available outside the procedure in which it appears. The scope is *
procedure-level* or *module-level*.

A variable declared with Dim at the beginning of a procedure is only
available in that procedure. When the procedure ends, the variable
disappears. Consider the following example:
          Option Explicit
                    Dim Total2 As Integer

          Private Sub Command1_Click ()
                    Dim Total1 As Integer
                    Static Total3 As Integer
                    Total1 =3D Total1 + 1
                    Total2 =3D Total2 + 1
                    Total3 =3D Total3 + 1
          End Sub

          Private Sub Command2_Click ()
                    Dim Total1 As Integer
                    Total1 =3D Total1 + 1
                    Total2 =3D Total2 + 1
                    Total3 =3D Total3 + 1
          End Sub

Every time Button1 is clicked, Total1 is declared as a new variable during
the execution of that clicked event. It is a *procedure-level* variable. It
will always stay at 1. The same for the Button2 event: Total1 is a new
variable in that procedure. When the procedure ends, Total1 disappears.
Total2 is declared in the Declarations section. It is a
*module-level*variable, meaning it is available to every control in
this Form. When
Button1 is clicked, it increments by 1 and it retains that value. When
Button2 is clicked, Total2 is incremented from its previous value, even if
it came from the Button1 event.
Total3 shows another way of retaining the value of a local variable. By
declaring it with *Static* instead of Dim, the variable acts like a
module-level variable, although it is declared in a procedure.

Another scope indicator that you will see when you study examples of code i=
s
*Private* and *Public*. This determines whether a procedure is available
only in this Form (module) or if it is available to any module in the
application. For now, we will work only with Private procedures.

Top <http://www.profsr.com/vb/vbless02.htm#Start>
Operators Mathematical and Text operators   *Operator* *Definition * *
Example * *Result * ^  Exponent (power of)  4 ^ 2  16  *  Multiply  5 * 4
20  /  Divide  20 / 4  5  +  Add  3 + 4  7  -  Subtract  7 - 3  4  Mod
 Remainder
of division  20 Mod 6  2  \  Integer division  20 \ 6  3  &  String
concatenation  "Joan" & " " & "Smith"  "Joan Smith"

Note that the order of operators is determined by the usual rules in
programming. When a statement includes multiple operations the order of
operations is:
*Parentheses ( ), ^, *, /, \, Mod, +, -*

Logical operators   *Operator * *Definition * *Example * *Result * =3D  Equ=
al
to  9 =3D 11  False  >  Greater than  11 > 9  True  <  Less than  11 < 9
False  >=3D  Greater or equal  15 >=3D 15  True  <=3D  Less or equal  9 <=
=3D 15
True  <>  Not equal  9 <> 9  False  AND  Logical AND  (9 =3D 9) AND (7 =3D =
6)
False  OR  Logical OR  (9 =3D 9) OR (7 =3D 6)  True

Top <http://www.profsr.com/vb/vbless02.htm#Start>






Control Structures If...Then...Else

*If* condition1 *Then*
     statements1
*Else*
     statements2
*End If*

If condition1 is True, then statements1 block is executed; Else, condition1
is not True, therefore statements2 block gets executed. The structure must
be terminated with the End If statement.

The Else clause is optional. In a simple comparison, statements1 get
executed or not.

*If* condition1 *Then*
     statements1
*End If*



 Select Case

Can be used as an alternative to the *If...Then...Else* structure,
especially when many comparisons are involved.

*Select Case *ShirtSize
     *Case* 1
          SizeName.Caption =3D "Small"
     *Case* 2
          SizeName.Caption =3D "Medium"
     *Case* 3
          SizeName.Caption =3D "Large"
     *Case* 4
          SizeName.Caption =3D "Extra Large"
     *Case Else*
          SizeName.Caption =3D "Unknown size"
*End Select*



Do...Loop Used to execute a block of statements an unspecified number of
times.

*Do While* condition
     statements
*Loop*

First, the condition is tested; if condition is True, then the statements
are executed. When it gets to the Loop it goes back to the Do and tests
condition again. If condition is False on the first pass, the statements ar=
e
never executed.




For...Next When the number of iterations of the loop is known, it is better
to use the For...Next rather than the Do...Loop.

*For* counter =3D start *To* end
     statements
*Next*

1) The counter is set to the value of start.
2) Counter is checked to see if it is greater than end; if yes, control
passes to the statement after the Next; if not the statements are executed.
3)At Next, counter is incremented and goes back to step 2).


More will be covered on Control strucures as it becomes necessary in
upcoming lessons. Meanwhile,if you want to know more, consult the VB
Language Reference.



 Assignment 2
To practise your coding and editing skills, continue the development of
Assignment1 by adding buttons with appropriate code to record the other
scores possible in a football game for each team. In case football is not
your thing, here is what they are:
   Touchdown  6 points  Field goal  3 points  Convert   1 point  2-point
Convert  2 points  Safety  2 points

Also, add a button to Exit the Form when you're finished with it.





 ------------------------------


Top <http://www.profsr.com/vb/vbless02.htm#Start>



Home <http://www.profsr.com/>               =20
Tutorials<http://www.profsr.com/home3.html>




 ------------------------------
Jiyo cricket on Yahoo! India
cricket<http://us.rd.yahoo.com/mail/in/mailcricket/*http://in.sports.yahoo.=
com/cricket/>
Yahoo! Messenger
Mobile<http://us.rd.yahoo.com/mail/in/mailmobilemessenger/*http://in.mobile=
.yahoo.com/new/messenger/>Stay
in touch with your buddies all the time.

------=_Part_10096_26656594.1140613981860
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br>---------- Forwarded message ----------<br><span class=3D"gmail_quo=
te">From: <b class=3D"gmail_sendername">vittal</b> &lt;<a href=3D"mailto:vi=
ttal...@yahoo.co.in">vittal...@yahoo.co.in</a>&gt;<br>Date: Feb 22, 2006 11=
:53 AM
<br>Subject: VB2<br>To: Vittal P &lt;<a href=3D"mailto:vittal...@gmail.com"=
>vittal...@gmail.com</a>&gt;<br><br></span>
<table width=3D"100%" border=3D"0">
<tbody>
<tr>
<td valign=3D"top"><a name=3D"109906d8ece93db1_Start"></a>
<div><a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"ht=
tp://profsr.com/" target=3D"_blank">Profsr.com</a> </div>
<div align=3D"center"><font color=3D"#400080"><img src=3D"http://www.profsr=
.com/images/vbpic4.gif" border=3D"0"><br><br></font></div></td></tr>
<tr>
<td align=3D"right"><br>
<div><a title=3D"Free Visual Basic 6 lesson" onclick=3D"return top.js.OpenE=
xtLink(window,event,this)" href=3D"http://www.profsr.com/vb/vbless01.htm" t=
arget=3D"_blank"><img height=3D"31" alt=3D"Previous page" src=3D"http://www=
.profsr.com/images/cy_l_arr.gif" width=3D"31" border=3D"0">
 Previous</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a title=3D"Visual Basic 6.0 tra=
ining" onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"htt=
p://www.profsr.com/vb/vbintro.htm#content" target=3D"_blank"><img height=3D=
"31" alt=3D"TOC" src=3D"http://www.profsr.com/images/cy_u_arr.gif" width=3D=
"31" border=3D"0">
 Contents</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onclick=3D"return top.js.Open=
ExtLink(window,event,this)" href=3D"http://www.profsr.com/vb/vbless03.htm" =
target=3D"_blank"><img height=3D"31" alt=3D"Next page" src=3D"http://www.pr=
ofsr.com/images/cy_r_arr.gif" width=3D"31" border=3D"0">
Next</a></div><br></td></tr>
<tr>
<td>
<hr width=3D"95%">

<div align=3D"center">
<h2>LESSON 2 -- Writing code</h2></div><br>
<div align=3D"center"><img height=3D"1" src=3D"http://pagead2.googlesyndica=
tion.com/pagead/imp.gif?event=3Dnoiframe&amp;client=3Dca-pub-90232639759559=
96&amp;dt=3D1140589290937&amp;lmt=3D1129335722&amp;format=3D336x280_as&amp;=
output=3Dhtml&amp;url=3Dhttp%3A%2F%2Fwww.profsr.com%2Fvb%2Fvbless02.htm&amp=
;color_bg=3DFFFFFF&amp;color_text=3D000003&amp;color_link=3D003399&amp;colo=
r_url=3D000003&amp;color_border=3DFFFFFF&amp;ad_type=3Dtext_image&amp;ref=
=3Dhttp%3A%2F%2Fwww.profsr.com%2Fvb%2Fvbintro.htm&amp;cc=3D2050&amp;u_h=3D7=
68&amp;u_w=3D1024&amp;u_ah=3D740&amp;u_aw=3D1024&amp;u_cd=3D32&amp;u_tz=3D3=
30&amp;u_his=3D1&amp;u_java=3Dtrue" width=3D"1" border=3D"0">
</div><br><br>
<div>
<h3>The Code Editor</h3></div>
<div>As we saw in the previous lesson, getting to the Code Editor is as sim=
ple as hitting the proper button. You may have discovered that you can also=
 call-up the Editor by double-clicking on an object. It is also possible to=
 select &quot;View code&quot; with the right mouse button. You will note th=
at the Editor has all the functions of a text editor and then some. The mos=
t commonly used functions will be=20
<b>Cut ... Copy ... Paste</b> which you can call from the Menu, from the To=
olbar or from the right mouse button. You also have access to the usual <b>=
Find</b> and <b>Replace</b> functions.<br><br>
<h3>Getting help</h3>There is <b>a lot</b> of documentation available on VB=
. There is so much, in fact, that it's easy to get lost in it. However, the=
 on-line Help available from the Menu should be used regularly. Very often =
just doing a search on a word in particular will be sufficient to get you o=
ut of a jam. If you want to go into more detail check out the Contents part=
 of MSDN (Microsoft Developers' Network) and surf through it.
<br><br>
<h3>Writing code</h3>VB is not very particular about presentation - spaces,=
 indents, lower case or upper case, it doesn't make too much difference to =
the compiler. But it may make a whole lot of difference to the programmer w=
ho has to maintain your code in 2 years, after you've moved up to President=
.=20
<br><br>&nbsp;</div><br><br><br><br>
<div align=3D"center"><img height=3D"1" src=3D"http://pagead2.googlesyndica=
tion.com/pagead/imp.gif?event=3Dnoiframe&amp;client=3Dca-pub-90232639759559=
96&amp;dt=3D1140589292109&amp;lmt=3D1129335722&amp;prev_fmts=3D336x280_as&a=
mp;format=3D728x15_0ads_al&amp;output=3Dhtml&amp;url=3Dhttp%3A%2F%2Fwww.pro=
fsr.com%2Fvb%2Fvbless02.htm&amp;color_bg=3DFFFFFF&amp;color_text=3D000003&a=
mp;color_link=3D003399&amp;color_url=3D000003&amp;color_border=3DFFFFFF&amp=
;ref=3Dhttp%3A%2F%2Fwww.profsr.com%2Fvb%2Fvbintro.htm&amp;cc=3D2050&amp;u_h=
=3D768&amp;u_w=3D1024&amp;u_ah=3D740&amp;u_aw=3D1024&amp;u_cd=3D32&amp;u_tz=
=3D330&amp;u_his=3D1&amp;u_java=3Dtrue" width=3D"1" border=3D"0">
</div><br><br><br><br><br><br>
<div align=3D"center">
<table width=3D"80%" bgcolor=3D"#99ccff">
<colgroup>
<col>
<tbody>
<tr>
<td><b>
<div align=3D"center">Apply &quot;Best Programming Practices&quot;</div></b=
><font style=3D"BACKGROUND-COLOR: #99ccff">When you work with RAD (Rapid Ap=
plication Development) tools like VB in a graphical interface environment, =
you become more than just a programmer, a writer of code. You are a develop=
er. We will cover that in the next lesson.=20
<br><br>But at the moment, you are still a Programmer. And unless you are d=
eveloping an application for your own personal use, that nobody else will s=
ee, you have to think of the environment, of the team you are working with.=
=20
<br><br></font><b>
<div align=3D"center">&quot;No man (or woman) is an island!&quot;</div></b>=
<font style=3D"BACKGROUND-COLOR: #99ccff">Especially when it comes to progr=
amming. The code you write may have to be checked by an Analyst. It will ha=
ve to go through testing. It may have to be modified by other team members =
and it almost certainly will go through modifications, maybe several times,=
 in the months and years ahead when you probably won't be around to defend =
yourself. &quot;The evil that men do lives after them...&quot;. You do not =
write code for the VB compiler. You write it for other developers and progr=
ammers. What you want others to say behind your back is: &quot;That Jane wa=
s blindingly efficient, brilliant, a genius with comments ...&quot;. You do=
 not want to be remembered as &quot;...the Picasso of code, master of the a=
bstract&quot;.=20
<br><br></font></td></tr></tbody></colgroup></table><br><br>
<div>If you are just starting out with the language, why not pick up a few =
good habits right now and it may make your life a lot easier down the road.=
<br>
<ol>
<li>Use comments when appropriate but not so many as to overwhelm the code;=
 the apostrophe ' is the comment identifier; it can be at the beginning of =
a line or after the code.<br><br>
<div><b>' This is a comment<br>'on 2 lines<br>DIM intNumber AS Integer &nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'This is a comment </b></div><br><br>
<li>Use indents - code must be indented under control structures such as If=
 ... Then or Sub - it makes it so much easier to follow the logic.<br><br>
<div><b>FOR i =3D 1 TO 5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value(i) =
=3D 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' Indent used in control structure=
s<br>NEXT i </b></div><br><br>
<li>Use standard capitalization - keywords like If, Dim, Option, Private st=
art with a capital letter with the rest in lower case; variable names, cont=
rol names, etc. are usually mixed case: ClientName, StudentId, etc.<br>
<br>
<li>Write extra-long statements on 2 lines using the continuation character=
 _ (space underscore); in VB each line is assumed to be an individual state=
ment unless there is a continuation at the end of the first line.<br><br>

<div><br><b>Data1.RecordSource =3D &nbsp;_<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot=
;Select * From Titles&quot; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' One state=
ment on 2 lines is OK</b> </div><br><br></li></li></li></li></ol>
<h3>Naming conventions</h3>These are the rules to follow when naming elemen=
ts in VB - variables, constants, controls, procedures, and so on:<br>
<ul type=3D"DISC">
<li>A name must begin with a letter.<br><br>
<li>May be as much as 255 characters long (but don't forget that somedy has=
 to type the stuff!).<br><br>
<li>Must not contain a space or an embedded period or type-declaration char=
acters used to specify a data type ; these are ! # % $ &amp; @ <br><br>
<li>Must not be a reserved word (that is part of the code, like Option, for=
 example).<br><br>
<li>The dash, although legal, should be avoided because it may be confused =
with the minus sign. Instead of Family-name use Family_name or FamilyName.<=
br><br></li></li></li></li></li></ul>
<h3>Data types</h3>
<table border=3D"1">
<tbody>
<tr>
<td valign=3D"top"><b>Data type</b></td>
<td><b>Storage size</b></td>
<td><b>Range</b></td></tr>
<tr>
<td valign=3D"top">Byte</td>
<td>1 byte</td>
<td>0 to 255</td></tr>
<tr>
<td valign=3D"top">Boolean </td>
<td>2 bytes</td>
<td>True or False</td></tr>
<tr>
<td valign=3D"top">Integer </td>
<td>2 bytes</td>
<td>-32,768 to 32,767</td></tr>
<tr>
<td valign=3D"top">Long (long integer)</td>
<td>4 bytes</td>
<td>-2,147,483,648 to 2,147,483,647</td></tr>
<tr>
<td valign=3D"top">Single (single-precision floating-point)</td>
<td valign=3D"top">4 bytes</td>
<td>-3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.40=
2823E38 for positive values</td></tr>
<tr>
<td valign=3D"top">Double (double-precision floating-point)</td>
<td valign=3D"top">8 bytes</td>
<td>-1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.=
94065645841247E-324 to 1.79769313486232E308 for positive values</td></tr>
<tr>
<td valign=3D"top">Currency (scaled integer)</td>
<td>8 bytes</td>
<td>-922,337,203,685,477.5808 to 922,337,203,685,477.5807</td></tr>
<tr>
<td valign=3D"top">Decimal</td>
<td valign=3D"top">14 bytes</td>
<td>+/-79,228,162,514,264,337,593,543,950,335 with no decimal point; +/-7.9=
228162514264337593543950335 with 28 places to the right of the decimal; sma=
llest non-zero number is +/-0.0000000000000000000000000001</td></tr>
<tr>
<td valign=3D"top">Date</td>
<td>8 bytes</td>
<td>January 1, 100 to December 31, 9999</td></tr>
<tr>
<td valign=3D"top">Object</td>
<td>4 bytes</td>
<td>Any Object reference</td></tr>
<tr>
<td valign=3D"top">String (variable-length)</td>
<td>10 bytes + string length</td>
<td>0 to approximately 2 billion </td></tr>
<tr>
<td valign=3D"top">String (fixed-length)</td>
<td>Length of string</td>
<td>1 to approximately 65,400</td></tr>
<tr>
<td valign=3D"top">Variant (with numbers)</td>
<td>16 bytes</td>
<td>Any numeric value up to the range of a Double</td></tr>
<tr>
<td valign=3D"top">Variant (with characters)</td>
<td>22 bytes + string length</td>
<td>Same range as for variable-length String</td></tr>
<tr>
<td valign=3D"top">User-defined (using Type)</td>
<td>Number required by elements</td>
<td>The range of each element is the same as the range of its data type.</t=
d></tr></tbody></table><br><br>In all probability, in 90% of your applicati=
ons you will use at most six types: String, Integer, Long, Single, Boolean =
and Date. The Variant type is often used automatically when type is not imp=
ortant. A Variant-type field can contain text or numbers, depending on the =
data that is actually entered. It is flexible but it is not very efficient =
in terms of storage.
<br><br>
<div align=3D"center"><a onclick=3D"return top.js.OpenExtLink(window,event,=
this)" href=3D"http://www.profsr.com/vb/vbless02.htm#Start" target=3D"_blan=
k">Top</a></div>
<h3>Declaring variables</h3>Declaring a variable means giving it a name, a =
data type and sometimes an initial value. The declaration can be <b>explici=
t</b> or <b>implicit</b>.<br><br>An <b>explicit declaration:</b> variable i=
s declared in the Declarations Section or at the beginning of a Procedure. =
An explicit declaration looks like:
<br>
<div align=3D"center"><b>Dim MyNumber As Integer</b></div><br>Now the varia=
ble <b>MyNumber</b> exists and a 2-byte space has been reserved for it.<br>=
<br>An <b>implicit declaration:</b> the variable is declared &quot;on the f=
ly&quot;, its data type is deduced from other variables. For example:
<br>
<div align=3D"center"><b>Dim Total1 As Integer</b> &nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;'Explicit declaration<br><b>Dim Total2 As Integer</b> &nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;'Explicit declaration<br><b>Total3 =3D Total1 + Total2 &nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;'Implicit declaration<br></b><br>&nbsp;</div>Total=
3 is not formally declared but is implied, it is &quot;arrived at&quot; fro=
m the other declarations.=20
<br><br>It is never a good idea to have implicit declarations. It goes agai=
nst the rules for clarity, readability and ease of use of the code.<br>To m=
ake sure that this rule is followed, start the Declarations with the <b>
Option Explicit</b> clause. This tells the compiler to consider implicit de=
clarations as errors and forces the programmer to declare everything explic=
itly.<br><br>Other examples of declarations:<br>
<div align=3D"center"><b>Dim MyName As String<br>Dim StudentDOB As Date<br>=
Dim Amount5, Amount6, Amount7</b></div><br>In the last example the type ass=
igned to each variable will be: Variant. It is the default type when none i=
s specified.
<br><br>There can be multiple explicit declarations in a statement:<br>
<div align=3D"center"><b>Dim EmpName As String, SalaryMonth As Currency, Sa=
laryYear As Currency</b></div><br>In this final example, what are the types=
 assigned to the three variables:<br>
<div align=3D"center"><b>Dim Amount1, Amount2, Amount3 As Single</b></div><=
br>All Single-precision floating point, you say. <b>Wrong!</b> Only Amount3=
 is Single. Amount1 and Amount2 are considered Variant because VB specifies=
 that each variable in a statement must be explicitly declared. Thus Amount=
1 and Amount2 take the default data type. This is different from what most =
other languages do.
<br><br>
<div align=3D"center"><img height=3D"1" src=3D"http://pagead2.googlesyndica=
tion.com/pagead/imp.gif?event=3Dnoiframe&amp;client=3Dca-pub-90232639759559=
96&amp;dt=3D1140589293312&amp;lmt=3D1129335722&amp;prev_fmts=3D336x280_as%2=
C728x15_0ads_al&amp;format=3D336x280_as&amp;output=3Dhtml&amp;url=3Dhttp%3A=
%2F%2Fwww.profsr.com%2Fvb%2Fvbless02.htm&amp;color_bg=3DFFFFFF&amp;color_te=
xt=3D000003&amp;color_link=3D003399&amp;color_url=3D000003&amp;color_border=
=3DFFFFFF&amp;ad_type=3Dtext_image&amp;ref=3Dhttp%3A%2F%2Fwww.profsr.com%2F=
vb%2Fvbintro.htm&amp;cc=3D2050&amp;u_h=3D768&amp;u_w=3D1024&amp;u_ah=3D740&=
amp;u_aw=3D1024&amp;u_cd=3D32&amp;u_tz=3D330&amp;u_his=3D1&amp;u_java=3Dtru=
e" width=3D"1" border=3D"0">
</div><br><br>
<h3>Constants</h3>A constant is a value that does not change during the exe=
cution of a procedure. The constant is defined with:<br>
<div align=3D"center"><b>Const ValuePi =3D 3.1416</b></div><br><br>
<h3>The Scope of variables</h3>The term <b>Scope</b> refers to whether the =
variable is available outside the procedure in which it appears. The scope =
is <b>procedure-level</b> or <b>module-level</b>.<br><br>A variable declare=
d with Dim at the beginning of a procedure is only available in that proced=
ure. When the procedure ends, the variable disappears. Consider the followi=
ng example:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option Expl=
icit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim Total2 As Integer<=
br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private =
Sub Command1_Click ()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim T=
otal1 As Integer<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Static Tot=
al3 As Integer<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total1 =3D T=
otal1 + 1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total2 =3D Total2 + 1<br>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total3 =3D Total3 + 1<br>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Sub<br><br>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private Sub Command2_=
Click ()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim Total1 As Inte=
ger<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total1 =3D Total1 + 1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total2 =3D Total2 + 1<br>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total3 =3D Total3 + 1<br>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Sub<br><br>Every =
time Button1 is clicked, Total1 is declared as a new variable during the ex=
ecution of that clicked event. It is a=20
<b>procedure-level</b> variable. It will always stay at 1. The same for the=
 Button2 event: Total1 is a new variable in that procedure. When the proced=
ure ends, Total1 disappears.<br>Total2 is declared in the Declarations sect=
ion. It is a=20
<b>module-level</b> variable, meaning it is available to every control in t=
his Form. When Button1 is clicked, it increments by 1 and it retains that v=
alue. When Button2 is clicked, Total2 is incremented from its previous valu=
e, even if it came from the Button1 event.=20
<br>Total3 shows another way of retaining the value of a local variable. By=
 declaring it with <b>Static</b> instead of Dim, the variable acts like a m=
odule-level variable, although it is declared in a procedure.<br><br>Anothe=
r scope indicator that you will see when you study examples of code is=20
<b>Private</b> and <b>Public</b>. This determines whether a procedure is av=
ailable only in this Form (module) or if it is available to any module in t=
he application. For now, we will work only with Private procedures.<br>
<br>
<div align=3D"center"><a onclick=3D"return top.js.OpenExtLink(window,event,=
this)" href=3D"http://www.profsr.com/vb/vbless02.htm#Start" target=3D"_blan=
k">Top</a></div>
<h3>Operators</h3>
<h4>Mathematical and Text operators</h4>
<table border=3D"1">
<colgroup>
<col span=3D"4">
<tbody>
<tr>
<td><b>Operator</b></td>
<td><b>Definition&nbsp;</b></td>
<td><b>Example&nbsp;</b></td>
<td><b>Result&nbsp;</b></td></tr>
<tr>
<td>^&nbsp;</td>
<td>Exponent (power of)&nbsp;</td>
<td>4 ^ 2&nbsp;</td>
<td>16&nbsp;</td></tr>
<tr>
<td>*&nbsp;</td>
<td>Multiply&nbsp;</td>
<td>5 * 4&nbsp;</td>
<td>20&nbsp;</td></tr>
<tr>
<td>/&nbsp;</td>
<td>Divide&nbsp;</td>
<td>20 / 4&nbsp;</td>
<td>5&nbsp;</td></tr>
<tr>
<td>+&nbsp;</td>
<td>Add&nbsp;</td>
<td>3 + 4&nbsp;</td>
<td>7&nbsp;</td></tr>
<tr>
<td>-&nbsp;</td>
<td>Subtract&nbsp;</td>
<td>7 - 3&nbsp;</td>
<td>4&nbsp;</td></tr>
<tr>
<td>Mod&nbsp;</td>
<td>Remainder of division&nbsp;</td>
<td>20 Mod 6&nbsp;</td>
<td>2&nbsp;</td></tr>
<tr>
<td>\&nbsp;</td>
<td>Integer division&nbsp;</td>
<td>20 \ 6&nbsp;</td>
<td>3&nbsp;</td></tr>
<tr>
<td>&amp;&nbsp;</td>
<td>String concatenation&nbsp;</td>
<td>&quot;Joan&quot; &amp; &quot; &quot; &amp; &quot;Smith&quot;&nbsp;</td>
<td>&quot;Joan Smith&quot;&nbsp;</td></tr></tbody></colgroup></table><br><b=
r>Note that the order of operators is determined by the usual rules in prog=
ramming. When a statement includes multiple operations the order of operati=
ons is:
<br><b>Parentheses ( ), ^, *, /, \, Mod, +, -</b><br><br>
<h4>Logical operators</h4>
<table border=3D"1">
<colgroup>
<col span=3D"4">
<tbody>
<tr>
<td><b>Operator&nbsp;</b></td>
<td><b>Definition&nbsp;</b></td>
<td><b>Example&nbsp;</b></td>
<td><b>Result&nbsp;</b></td></tr>
<tr>
<td>=3D&nbsp;</td>
<td>Equal to&nbsp;</td>
<td>9 =3D 11&nbsp;</td>
<td>False&nbsp;</td></tr>
<tr>
<td>&gt;&nbsp;</td>
<td>Greater than&nbsp;</td>
<td>11 &gt; 9&nbsp;</td>
<td>True&nbsp;</td></tr>
<tr>
<td>&lt;&nbsp;</td>
<td>Less than&nbsp;</td>
<td>11 &lt; 9&nbsp;</td>
<td>False&nbsp;</td></tr>
<tr>
<td>&gt;=3D&nbsp;</td>
<td>Greater or equal&nbsp;</td>
<td>15 &gt;=3D 15&nbsp;</td>
<td>True&nbsp;</td></tr>
<tr>
<td>&lt;=3D&nbsp;</td>
<td>Less or equal&nbsp;</td>
<td>9 &lt;=3D 15&nbsp;</td>
<td>True&nbsp;</td></tr>
<tr>
<td>&lt;&gt;&nbsp;</td>
<td>Not equal&nbsp;</td>
<td>9 &lt;&gt; 9&nbsp;</td>
<td>False&nbsp;</td></tr>
<tr>
<td>AND&nbsp;</td>
<td>Logical AND&nbsp;</td>
<td>(9 =3D 9) AND (7 =3D 6)&nbsp;</td>
<td>False&nbsp;</td></tr>
<tr>
<td>OR&nbsp;</td>
<td>Logical OR&nbsp;</td>
<td>(9 =3D 9) OR (7 =3D 6)&nbsp;</td>
<td>True&nbsp;</td></tr></tbody></colgroup></table><br><br>
<div align=3D"center"><a onclick=3D"return top.js.OpenExtLink(window,event,=
this)" href=3D"http://www.profsr.com/vb/vbless02.htm#Start" target=3D"_blan=
k">Top</a></div><br><br><br><br><br><br>
<h3>Control Structures</h3>
<h4>If...Then...Else</h4>
<blockquote><b>If</b> condition1 <b>Then</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;statements1<br><b>Else</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;statements2<=
br><b>End If</b><br><br>If condition1 is True, then statements1 block is ex=
ecuted; Else, condition1 is not True, therefore statements2 block gets exec=
uted. The structure must be terminated with the End If statement.
<br><br>The Else clause is optional. In a simple comparison, statements1 ge=
t executed or not.<br><br><b>If</b> condition1 <b>Then</b><br>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;statements1<br><b>End If</b><br><br></blockquote></div><br=
><br>
<div>
<h4>Select Case</h4>
<blockquote>Can be used as an alternative to the <b>If...Then...Else</b> st=
ructure, especially when many comparisons are involved.<br><br><b>Select Ca=
se </b>ShirtSize<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Case</b> 1<br>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SizeName.Caption =3D &q=
uot;Small&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Case</b> 2<br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SizeName.Caption =3D &quot;Medium&quot;=
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Case</b> 3<br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SizeName.Caption =3D &quot;Large&quot;<=
br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Case</b> 4<br>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SizeName.Caption =3D &quot;Extra Large&q=
uot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Case Else</b><br>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SizeName.Caption =3D &quot;Unknown s=
ize&quot;<br><b>End Select</b><br><br></blockquote>
<div></div><br><br>
<h4>Do...Loop</h4>
<div>Used to execute a block of statements an unspecified number of times.<=
br><br><b>Do While</b> condition<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;statement=
s<br><b>Loop</b><br><br>First, the condition is tested; if condition is Tru=
e, then the statements are executed. When it gets to the Loop it goes back =
to the Do and tests condition again. If condition is False on the first pas=
s, the statements are never executed.
</div><br><br><br><br>
<h4>For...Next</h4>
<div>When the number of iterations of the loop is known, it is better to us=
e the For...Next rather than the Do...Loop.<br><br><b>For</b> counter =3D s=
tart <b>To</b> end<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;statements<br><b>Next</=
b><br><br>1) The counter is set to the value of start.
<br>2) Counter is checked to see if it is greater than end; if yes, control=
 passes to the statement after the Next; if not the statements are executed=
.<br>3)At Next, counter is incremented and goes back to step 2). </div>
<br><br>More will be covered on Control strucures as it becomes necessary i=
n upcoming lessons. Meanwhile,if you want to know more, consult the VB Lang=
uage Reference.<br><br><br><br>
<div align=3D"center">
<h3>Assignment 2</h3></div>To practise your coding and editing skills, cont=
inue the development of Assignment1 by adding buttons with appropriate code=
 to record the other scores possible in a football game for each team. In c=
ase football is not your thing, here is what they are:
<br>
<table>
<colgroup>
<col span=3D"2">
<tbody>
<tr>
<td>Touchdown&nbsp;</td>
<td>6 points&nbsp;</td></tr>
<tr>
<td>Field goal&nbsp;</td>
<td>3 points&nbsp;</td></tr>
<tr>
<td>Convert &nbsp;</td>
<td>1 point&nbsp;</td></tr>
<tr>
<td>2-point Convert&nbsp;</td>
<td>2 points&nbsp;</td></tr>
<tr>
<td>Safety&nbsp;</td>
<td>2 points&nbsp;</td></tr></tbody></colgroup></table><br><br>Also, add a =
button to Exit the Form when you're finished with it.<br><br><br>
<div align=3D"center"><img height=3D"1" src=3D"http://pagead2.googlesyndica=
tion.com/pagead/imp.gif?event=3Dnoiframe&amp;client=3Dca-pub-90232639759559=
96&amp;dt=3D1140589294671&amp;lmt=3D1129335722&amp;prev_fmts=3D336x280_as%2=
C728x15_0ads_al%2C336x280_as&amp;format=3D336x280_as&amp;output=3Dhtml&amp;=
url=3Dhttp%3A%2F%2Fwww.profsr.com%2Fvb%2Fvbless02.htm&amp;color_bg=3DFFFFFF=
&amp;color_text=3D000003&amp;color_link=3D003399&amp;color_url=3D000003&amp=
;color_border=3DFFFFFF&amp;ad_type=3Dtext_image&amp;ref=3Dhttp%3A%2F%2Fwww.=
profsr.com%2Fvb%2Fvbintro.htm&amp;cc=3D2050&amp;u_h=3D768&amp;u_w=3D1024&am=
p;u_ah=3D740&amp;u_aw=3D1024&amp;u_cd=3D32&amp;u_tz=3D330&amp;u_his=3D1&amp=
;u_java=3Dtrue" width=3D"1" border=3D"0">
 </div><br><br><br>
<div align=3D"center">
<hr width=3D"90%">
<br><br><a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D=
"http://www.profsr.com/vb/vbless02.htm#Start" target=3D"_blank">Top</a><br>=
<br><br><br><a title=3D"Free Microsoft Access, Visual Basic training" oncli=
ck=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://www.prof=
sr.com/" target=3D"_blank">
Home</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; <a title=3D"Free tutorials Access, VB, SQL" onclic=
k=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://www.profs=
r.com/home3.html" target=3D"_blank">Tutorials</a> </div></div><span class=
=3D"ad">
<br><br></span></div><span class=3D"ad"><br><br></span></td></tr></tbody></=
table><span class=3D"ad">
<p>
<hr size=3D"1">
Jiyo cricket on <a onclick=3D"return top.js.OpenExtLink(window,event,this)"=
 href=3D"http://us.rd.yahoo.com/mail/in/mailcricket/*http://in.sports.yahoo=
.com/cricket/" target=3D"_blank">Yahoo! India cricket</a><br><a onclick=3D"=
return top.js.OpenExtLink(window,event,this)" href=3D"http://us.rd.yahoo.co=
m/mail/in/mailmobilemessenger/*http://in.mobile.yahoo.com/new/messenger/" t=
arget=3D"_blank">
Yahoo! Messenger Mobile</a> Stay in touch with your buddies all the time.=
=20
<p></p></p></span>

------=_Part_10096_26656594.1140613981860--


إنشاء مجموعة - مجموعات Google - صفحة Google الرئيسية - شروط الخدمة - سياسة الخصوصية
©2009 Google