Lasso Soft Inc. > Home

[ capture->autocollectbuffer ]

Method

Returns the captures current auto collect buffer. This is populated when a capture is created with carets ^ like so {^ ^}

  • Syntax
{^ ^}->autocollectbuffer
Examples
  • Advanced

Return the autocollect buffer

Code

{^
'This was collected'
stdoutnl(currentcapture->autocollectbuffer)
^}()

Result

This was collected

// console:
This was collected

Store the autocollect buffer in a local variable

Here the output of a capture is outputted as normal via autocollect and the result is also stored in a local via the autocollectbuffer.

Code

local('capture' = {^ 'Hello\n' ^} )

#capture() 

local(result = #capture->autocollectbuffer)

#result

Result

Hello
Hello

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft