DataBufferEx function

From StealthBot Wiki Backup
Revision as of 08:20, 1 December 2017 by Davnit (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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