DataView.AddAttachedString

Prototypes

void AddAttachedString( String sName, String s )

Parameters

String sName
The name for the attachment. The name can contain any characters. If an attachment with the specified name already exists, the existing attachment is replaced.

String s
The string to add as an attachment.

Remarks

This method adds a string as an attachment to the DataView. You can retrieve the attachment later by calling the method GetAttachedString.

The DataView class enables you to add attachments to a DataView. This enables you to associate additional information about a DataView with the DataView itself. The DataView does not use your attachments.

Example
x = rannor( 1:100 );
title = "Normal";
declare Histogram plot = Histogram.Create( title, x );

plot.AddAttachedString( "Title", title );

s = plot.GetAttachedString( "Title" );
print s;
See Also

DataView.GetAttachedString