Hi,
Memblocks are pretty easy and just as simple as using an array...
Here's some code I was playing with earlier today..
Global pkt_string as String
Global pkt_buffer as Integer
pkt_buffer = CreateMemblock( 100 )
SetMemblockByte( pkt_buffer , 0, 90 )
SetMemblockByte( pkt_buffer , 1, 0 )
SetMemblockByte( pkt_buffer , 2, 1 )
SetMemblockByte( pkt_buffer , 3, 253 )
SetMemblockByte( pkt_buffer , 4, 2 )
pkt_string = GetMemBlockString( pkt_buffer , 0, 5 )
DeleteMemblock( pkt_buffer )
Obviously this would be local to the function, bit like malloc etc..