[097] Basic Visual Basic

Source: Internet
Author: User
  • 1. Data Type
  • 2. Date and Time Functions (may not be VB)
  • 3. Functions
  • 4. Examples of common statements

1. Data Type: Stab Me !!!

  • Boolean data type:
  • Date data type :...

2. Date and Time Functions (may not be VB): Stab Me !!!

  • Date function:
  • Now function :...

3. function: Stab Me !!!

  • Len function: returns the number of characters in a string or the number of nominal bytes required to store a variable.
  • MsgBox function: displays the message in the dialog box. Wait for the user to click the button and return an integer indicating which button the user has clicked.

AppActivate

Asc

AscW

Beep

CallByName

CBool

CByte

CChar

CDate

CDbl

CDec

ChDir

ChDrive

Choose

Chr

ChrW

CInt

CLng

CObj

Command

CreateObject

CShort

CSng

CStr

CType

CurDir

 

 

DateAdd

DateDiff

DatePart

DateSerial

DateValue

Day

DDB

DeleteSetting

Derived Math

Dir

Environ

EOF

ErrorToString

FileAttr

FileClose

FileCopy

FileDateTime

FileGet

FileGetObject

FileLen

FileOpen

FilePut

FilePutObject

FileWidth

Filter

Fix

Format

FormatCurrency

FormatDateTime

FormatNumber

FormatPercent

FreeFile

FV

GetAllSettings

GetAttr

GetChar

GetException

GetObject

GetSetting

 

Hex

Hour

IIf

Input

InputBox

InputString

InStr

Rev

Int

IPmt

IRR

IsArray

IsDate

IsDBNull

IsError

IsNothing

IsNumeric

IsReference

Join

Kill

LBound

LCase

Left

Len

LineInput

Loc

Lock

LOF

LSet

LTrim

 

Mid

Minute

MIRR

MkDir

Month

MonthName

MsgBox

NPer

NPV

Oct

Partition

Pmt

PPmt

Print

PrintLine

PV

QBColor

Randomize

Rate

Rename

Replace

Reset

RGB

Right

RmDir

Rnd

RSet

RTrim

SaveSetting

Second

Seek

SetAttr

Shell

SLN

Space

SPC

Split

Str

StrComp

StrConv

StrDup

StrReverse

Switch

SYD

SystemTypeName

Tab

TimeSerial

TimeValue

Trim

TypeName

UBound

UCase

Unlock

Val

VarType

VbTypeName

Weekday

WeekdayName

Write

WriteLine

Year

 

4. Examples of common statements:

  • For... Next: Stab Me !!!
  • If... Then... Else: Stab Me !!!
  • Select... Case: Stab Me !!!
  • While... End While: Stab Me !!!

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.