2020-01-31 09:23 PM - last edited on 2022-09-29 09:39 AM by Daniel Kassai
GSErrCode err = NoError; GS::UniString favName; short count = 0; GS::Array<GS::UniString> names; err = ACAPI_Favorite_GetNum (API_ColumnID, APIVarId_Generic, &count, nullptr, &names); favName = "Column - Rectangular”; //favName = names[0]; // this actually is ‘Column - Rectangular' API_Favorite favorite (favName); ACAPI_WriteReport("API_Favorite - name: %s", false, favorite.name.ToCStr().Get()); favorite.memo.New (); err = ACAPI_Favorite_Get (&favorite); if (err != NoError) { ACAPI_WriteReport ("ACAPI_Favorite_Get failed (Name: %s)", false, favName.ToCStr().Get()); ACAPI_WriteReport ("err: %d", false, err); ACAPI_DisposeElemMemoHdls (&favorite.memo.Get ()); return; }
2020-02-03 01:34 PM