Visual Basic  Glossary

 
Date

The function  that returns the current date. 

Example: 

Private Sub Command1_Click()
Dim curdate As Date
curdate = Date
Text1.Text = curdate
End Sub

DateAdd

This function adds a value to a date.

Example:

             DateAdd("d", 3, Now)   adds current day with a value of 3

             DateAdd("yyyy",2,Now) adds 2 years to the current year

Day

The function that returns the current day of the date.

The format is Day(Date)

Example:

        curday=Day(date)    returns the day of the current date.

DatePart

This functions returns part of the date.

Example:

             DatePart("yyyy",Now) returns current year

             DatePart("m",Now) returns current month

             DatePart("d",Now) returns current day

             DatePart("h",Now) returns current hour

             DatePart("n",Now) returns current minute

             DatePart("s",Now) returns current second

DateValue

The function that converts a string into a date.

Example:   DateValue("February 16,2008")=  2/16/2008

Do While.......Loop Looping procedure. Example: Do while x<10.......Loop
Do...........Loop While Looping procedure. Example: Do...........Loop While true
Do Until...........Loop Looping procedure. Example: Do until x>100...........Loop
Do........Loop Until Looping procedure. Example: Do...........Loop until x>80
   
   
   
   

 

 

  [Back to VB Glossary]