Difference between revisions of "DataBufferEx function"

From StealthBot Wiki Backup
Jump to: navigation, search
(Created page with 'The DataBufferEx() Script Support Class function returns a new DataBuffer object. ==Development== This function was added by Eric in versio…')
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:20, 1 December 2017

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