Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
VB6.0 first lesson
First, the data type
characters: string $
int: integer% long &
decimals: single-precision single double double #!
Currency: currency @
byte: byte
Boolean: boolean
Date: date
Second, variables
dim | private | static | public data type variable name as
mandatory statement: option explicit
Variable scope
local variables: dim or staic, the internal process
module level variables: dim or private
global variables: Public or Globa, a standard module (.bas) declaration section
Third, the constants
const constant name = value
Fourth, the operator
-
- ^ * / Mod \ (divisibility) => = <= <>
Connector: & +
Not and or
- ^ * / Mod \ (divisibility) => = <= <>
V. Notes
' or rem