A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
BinaryXtra Reference/Allocate(newSize)

objBinary.Allocate(newSize)

Syntax

objBinary.Allocate(newSize)

Parameters

newSize - Integer value which indicates a requested size for binary data.

Returns

VOID

Description

Allocates a new binary data block of the requested size and fills the allocated memory with zeros. This method destroys any previous contents of the wrapper instance.
Use this method if you wish to generate binary data via Lingo in array-like manner. See byte[] indexed property for related information.

Note: there is no need to call this method before initializing wrapper in any other way.

Sample

binary.Allocate(1000)
repeat with i=1 to binary.Size
  binary.byte[i]=i
end repeat
put binary.Size

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com