gb (gb)
这个静态类包含所有的Gambas基本常数,这些常数被许多功能使用。
该类是静态类。
常数
Ascent
|
|
BigEndian
|
|
Binary
|
|
Boolean
|
|
Byte
|
|
Class
|
|
Cr
|
Return a carriage return.
|
CrLf
|
Return a carriage return followed by a line feed.
|
Currency
|
System.Language = "fr_FR.UTF-8"
Print Format(1234.54643, gb.Currency)
Print Format(1234.10000, gb.Currency)
Print Format(1234.00000, gb.Currency)
Print Format(-1234.56, gb.Currency)
|
Date
|
|
Day
|
|
Descent
|
|
Device
|
|
Directory
|
|
Exec
|
|
File
|
|
Fixed
|
System.Language = "fr_FR.UTF-8"
Print Format(Pi, gb.Fixed)
Print Format(-12, gb.Fixed)
|
Float
|
|
Friday
|
|
Function
|
Constant that represents a function.
|
GeneralDate
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.GeneralDate)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.GeneralDate)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.GeneralDate)
|
GeneralNumber
|
System.Language = "fr_FR.UTF-8"
Print Format(Pi, gb.GeneralNumber)
Print Format(-12, gb.GeneralNumber)
Print Format(2^100, gb.GeneralNumber)
|
Hour
|
|
IgnoreCase
|
|
Input
|
|
Integer
|
|
International
|
System.Language = "fr_FR.UTF-8"
Print Format(1234.54643, gb.International)
Print Format(1234.10000, gb.International)
Print Format(1234.00000, gb.International)
Print Format(-1234.56, gb.International)
|
Language
|
|
Lf
|
Return a line feed.
|
Like
|
Constant that represents a string comparison based on the LIKE operator.
|
Link
|
|
LittleEndian
|
|
Long
|
|
LongDate
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.LongDate)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.LongDate)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.LongDate)
|
LongTime
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.LongTime)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.LongTime)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.LongTime)
|
Mac
|
|
Match
|
|
MediumDate
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.MediumDate)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.MediumDate)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.MediumDate)
|
MediumTime
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.MediumTime)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.MediumTime)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.MediumTime)
|
Millisecond
|
|
Minute
|
|
Monday
|
|
Month
|
|
Natural
|
|
NewLine
|
|
Null
|
|
Object
|
|
Output
|
|
Percent
|
System.Language = "fr_FR.UTF-8"
Print Format(Pi, gb.Percent)
Print Format(0.1, gb.Percent)
Print Format(0.01, gb.Percent)
Print Format(0.001, gb.Percent)
|
Pipe
|
|
Pointer
|
|
Quarter
|
|
Read
|
|
Saturday
|
|
Scientific
|
System.Language = "fr_FR.UTF-8"
Print Format(Pi, gb.Scientific)
Print Format(-12, gb.Scientific)
Print Format(2^100, gb.Scientific)
|
Second
|
|
Short
|
|
ShortDate
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.ShortDate)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.ShortDate)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.ShortDate)
|
ShortNumber
|
|
ShortTime
|
System.Language = "en_GB.UTF-8"
Print Format(Now, gb.ShortTime)
System.Language = "en_US.UTF-8"
Print Format(Now, gb.ShortTime)
System.Language = "fr_FR.UTF-8"
Print Format(Now, gb.ShortTime)
|
Single
|
|
Socket
|
|
Standard
|
|
String
|
|
Sunday
|
|
Tab
|
|
Thursday
|
|
Tuesday
|
|
Unix
|
|
Variant
|
|
Wednesday
|
|
Week
|
|
WeekDay
|
|
Windows
|
|
Write
|
|
Year
|
|
参见