在 VB 中,您可以在一行中定义变量并为其赋值。
你能在 Basic4Android 中做到这一点吗?
VB代码示例:
Dim strMyVariable As String = "Some text is in here"
更新:我试过这个并得到以下错误:
NumberOfColumns As Int = 5 ' Number of columns.
Compiling code. Error
Error compiling program.
Error description: '=' expected.
Occurred on line: 13
NumberOfColumns As Int = 5' Number of columns.
Word: numberofcolumns
更新:
Compiling code. Error
Error compiling program.
Error description: Syntax error.
Occurred on line: 13
Dim NumberOfColumns As Int = 5 ' Number of columns.
Word: int