Hi,
You can try the following solution.
1. In Origin C
void test_lt_sa()
{
vector<string> vs = {"This", "is", "a", "test"};
LT_execute("StringArray bb;"); // define a LabTalk StringArray variable
for(int ii=0;ii<vs.GetSize();ii++)
{
LT_set_str("%L", vs[ii]); // add string to %L
string strCmd = "bb.Add(%L)"; // add %L to string array
LT_execute(strCmd); // execute the LabTalk script
}
}
2. In LabTalk
loop(ii,1,bb.GetSize())
{
string str$=bb.GetAt(ii)$;
str$=;
}
Penn