当前位置:K88软件开发文章中心编程语言B4AB4A01 → 文章内容

B4A换行,等同Chr(13).

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2019-1-6 12:52:34

CRLF As String
换行,等同Chr(13).

Density As Float
返回设备的scale,由DPI/160确定
(DPI指每英寸的点数).

Dim
定义一个变量.
语法:
定义一个单独的变量:

Dim variable name [As type]
默认定义的是字符串.
定义多个变量. 所以的变量类型需一致.

Dim variable1, variable2, ..., [As type]
定义数组:

Dim variable(Rank1, Rank2, ...) [As type]
例如:

Dim Days(7) As String
定义0长度的数组时,括号内的值可以省略

DipToCurrent (Length As Int) As Int
Scales the value, which represents a specific length on a default density device (Density =
1.0),
to the current device.
For example, the following code will set the width value of this button to be the same
physical size
on all devices.
Button1.Width = DipToCurrent(100)
Note that a shorthand syntax for this method is available. Any number followed by the
string 'dip'
will be converted in the same manner (no spaces are allowed between the number and
'dip').
So the previous code is equivalent to:
Button1.Width = 100dip 'dip -> density independent pixel

DoEvents
DoEvents 可以在一个大的循环中允许程序响应事件


B4A换行,等同Chr(13).