MakeDynString function for C++

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
wilko0070
Posts:7
Joined: Wed Oct 11, 2017 1:54 pm

MakeDynString function for C++

Post by wilko0070 »

For API programming I am looking for a MakeDynString function (like in CTRL script language) to store dynamic strings in the database. Is it enough to concatenate the strings with "|"? The items should then be recognized again as dynamic strings with CTRL language!

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: MakeDynString function for C++

Post by fmulder »

Below you'll see how my AES DLL creates a dyn_string and adds some string

DynVar *pDynVar = new DynVar(TEXT_VAR);
pDynVar->append( new TextVar( strVinkje + strPrioTonen ));
pDynVar->append(new TextVar(strAchtergrondKleur));
pDynVar->append(new TextVar(strVoorgrondKleur));

So, makeDynString() should be similar to 'DynVar *pDynVar = new DynVar(TEXT_VAR);'

good luck

share the fun
Frenk Mulder

wilko0070
Posts:7
Joined: Wed Oct 11, 2017 1:54 pm

Re: MakeDynString function for C++

Post by wilko0070 »

Thanks a lot for your fast help! It works, but I'd like to save all values in ONE row at the database. With that method I can save only the whole array as a count of rows with one value in every row.

3 posts • Page 1 of 1