Version: 2022b
Type: Features
Category: Programming
Subcategory: Origin C
Jira: ORG-24624
int SetByText(LPCSTR pTxt, char cSep = ',', double dMissing=0);
Parameter:pTxt = [input] a blog of numbers separated be a token separator and lines by LF or CRLFcSep = [input] token separator characterdMissing = [inpit] when token empty of non-numeric, use this valueReturn:Return 0 if no error, otherwise < 0 error codes
Example:
void st(string str="1,2,3\r\n2,3,4\r\n7,8,9\r\n") { matrix<int> mm; mm.SetByText(str); Worksheet wks = Project.ActiveLayer(); mm.CopyTo(wks);//default will transpose }