200
Platforms
©2000-2008 Tibbo Technology Inc.
dim
d
as
dword
dim
s
as
string
d1=123456
s = lstr(d)
'explicit invocation. Result will be '123456'
s = d
'implicit invokation
s = 666666
'will be calculated at compilation -- no actual lstr function
invokation will be here
Lstri Function
Function:
Converts signed 32-bit numeric value (long) into its
decimal string representation.
Syntax:
lstri(byref num as long) as string
See Also:
,
,
,
,
,
,
,
Part
Description
num
Value to be converted to string.
Details
Can be invoked implicitly, through the string_var= long_var expression (see
example below). Compiler is smart enough to pre-calculate constant-only
expressions involving implicit use of lstri function.
Examples
dim
l
as
long
dim
s
as
string
l= -5123
s = lstri(l)
'explicit invocation.
s = l
'implicit invocation
s = lstri(-20)
'will be calculated at compilation -- no actual lstri
function invokation will be here
Lval Function
Function:
Converts string representation of a value into 32-bit value
(dword or long).
Syntax:
lval(byref sourcestr as string) as dword
See Also:
,
,
,
,
,
,
207
199
208
190
197
195
199
210
200
207
199
208
200
190
197
195
199
210