- the function cbuf copies data types to a buffer.
Code: Select all
buffer = cbuf(string)
Code: Select all
buffer = cbuf(string, 20)
Code: Select all
clbuf(buffer)
Code: Select all
clbuf(buffer, 45)
Code: Select all
record device is
block_id: uint8;
block_name: byte * 8; ' buffer
block_size: uint;
end
The record as a user-defined type is currently being implemented. While in the process, the UDT struc is also being revisited. The major difference between records and structures in SharpBASIC is that records have a fixed length and cannot hold strings (not even fixed-length strings).