DataBufferEx function

From StealthBot Wiki Backup
Jump to: navigation, search

The DataBufferEx() Script Support Class function returns a new DataBuffer object.

Development

This function was added by Eric in version 2.7.

Documentation

'// DATABUFFEREX
'// Gets an instance of a databuffer for the currently executing script
'// This will return a new one everytime!
Public Function DataBufferEx() As Object

    Set DataBufferEx = New clsDataBuffer

    DataBufferEx.setCripple

End Function

Syntax

To use a DataBuffer object, you have to reuse the object returned from DataBufferEx(). Alternatively, you can use the DataBuffer object provided with every module named DataBuffer.

Set Buffer = DataBufferEx()
Buffer.DoSomething
Buffer.DoSomething
'...
Set Buffer = Nothing

See the DataBuffer object article for examples and usage of the DataBuffer object.

See also