![]() ZBasic System Library
181
ZBasic Microcontrollers
Type
Function returning String
Invocation
MakeString(address, length)
Parameter
Method
Type
Description
address
ByVal
integral
The address of bytes with which to populate the string.
length
ByVal
int8/16
The number of characters to place in the string.
Discussion
This function populates a string with an arbitrary byte stream. It is most useful for composing or modifying
strings but may have other uses as well.
Example
Dim ba(1 to 10) as Byte
Dim i as Integer
Dim s as String
For i = LBound(ba) to UBound(ba)
ba(i) = &H60 + CByte(i)
Next i
s = MakeString(MemAddress(ba), SizeOf(ba))
Compatibility
This function is not available in BasicX compatibility mode.
|