wks_sep_label

 

Description

Extract units from worksheet column Long Name or other label row.

Syntax

int wks_sep_label(string strSrc, string rule, string strDest, bool bRemove=true);

Parameters

strSrc Label row string abbreviation for the source label row to extract units from. One of "L", "U", "C", etc.

rule Seperator such as "," or "-". If "", then look for units within () or [].

strDest Label row string abbreviation for the destination label row for the units. One of "L", "U", "C", etc.

bRemove Boolean- remove units from strSrc label row. Default true

Return

Returns 0 for success or -1 for error- bad source or destination

Examples

// Extract from Long Name, put into Units, use comma separator, and do not remove from Long Name
wks_sep_label("L", ",", "U", false);

Remarks

See Also

Worksheet::SeparateLabel

header to Include

origin.h

Reference