Context English sid (generated)
01020100.xhp
par_idm1341267456
help.text
MyNumber5=15 'Correct'
01020100.xhp
par_idm1341262016
help.text
MyNumber_5=20 'Correct'
01020100.xhp
par_idm1341256576
help.text
My Number=20 'Not valid, variable with space must be enclosed in square brackets'
01020100.xhp
par_idm1341251088
help.text
[My Number]=12 'Correct'
01020100.xhp
par_idm1341245648
help.text
DéjàVu=25 'Not valid, special characters are not allowed'
01020100.xhp
par_idm1341240176
help.text
5MyNumber=12 'Not valid, variable may not begin with a number'
01020100.xhp
par_idm1341234704
help.text
Number,Mine=12 'Not valid, punctuation marks are not allowed'
01020100.xhp
par_idm1341222320
help.text
Dim a$ 'Declares the variable "a" as a String'
01020100.xhp
par_idm1341216864
help.text
Dim a As String 'Declares the variable "a" as a String'
01020100.xhp
par_idm1341211408
help.text
Dim a$, b As Integer 'Declares one variable as a String and one as an Integer'
01020100.xhp
par_idm1341205936
help.text
Dim c As Boolean 'Declares c as a Boolean variable that can be TRUE or FALSE'
01020100.xhp
par_id3153070
help.text
Single variables can take positive or negative values ranging from 3.402823 x 10E38 to 1.401298 x 10E-45. Single variables are floating-point variables, in which the decimal precision decreases as the non-decimal part of the number increases. Single variables are suitable for mathematical calculations of average precision. Calculations require more time than for Integer variables, but are faster than calculations with Double variables. A Single variable requires 4 bytes of memory. The type-declaration character is "!".
01020100.xhp
par_id3150953
help.text
Double variables can take positive or negative values ranging from 1.79769313486232 x 10E308 to 4.94065645841247 x 10E-324. Double variables are floating-point variables, in which the decimal precision decreases as the non-decimal part of the number increases. Double variables are suitable for precise calculations. Calculations require more time than for Single variables. A Double variable requires 8 bytes of memory. The type-declaration character is "#".
01020100.xhp
par_idm1341130144
help.text
Dim Variable#
01020100.xhp
hd_id301576839713868
help.text
Literals for integers
01020100.xhp
par_id1001576839723156
help.text
Numbers can be encoded using octal and hexadecimal forms.
01020100.xhp
par_idm1341065280
help.text
Dim Text$(20) '21 elements numbered from 0 to 20'
01020100.xhp
par_idm1341059776
help.text
Dim Text$(5,4) '30 elements (a matrix of 6 x 5 elements)'
01020100.xhp
par_idm1341054256
help.text
Dim Text$(5 To 25) '21 elements numbered from 5 to 25'
01020100.xhp
par_idm1341048752
help.text
Dim Text$(-15 To 5) '21 elements (including 0), numbered from -15 to 5'