-
Language Constants
|
Constant |
Example |
|---|---|
| The true value. | TRUE |
| The false value. | FALSE |
| Integer or Long numbers. | 0, 123, -32769, 10000000000 |
| Hexadecimal short signed integers. | &H1F5, &HFFFF, &H0000FFFF, &FFFF |
| Hexadecimal signed integers. | &H10BF332E, &10BF332E |
| Hexadecimal unsigned integers. | &H8000&, &HFFFF& |
| Binary integers. | &X1010010101, %101001011 |
| Floating point numbers. | 1.0, -5.345219E+45 |
| Positive infinity | +INF |
| Negative infinity | -INF |
| String constants. | "Hello World !" |
| String constants to be translated. | ("This software is cool") |
| Null constant / void string. | NULL |
文字列定数には、次のエスケープ文字を含めることができます。
|
Escape character |
ASCII equivalent |
|---|---|
\n |
Chr$(13) |
\r |
Chr$(10) |
\t |
Chr$(9) |
\b |
Chr$(8) |
\v |
Chr$(11) |
\f |
Chr$(12) |
\e |
Chr$(27) |
\0 |
Chr$(0) |
\" |
Double quote |
\\ |
Backslash |
\xNN |
Chr$(&HNN) |
複数行ストリング定数
いくつかの異なる行にあっても、いくつかの連続した部分に文字列定数を書くことができます。
For example,
"Gambas" " is " "great"
または
"Gambas"
" is "
"great"
と全く同じ定数です。
"Gambas is great"

コメント
最新を表示する
NG表示方式
NGID一覧