Page 1 of 1

VARGROUP TO

Posted: Wed Oct 19, 2016 6:13 am
by Wolfgang Ciriack
Hi,
i use VARGROUP TO ... to save and restore all my global settings.
When I added now one more (now about 360 vars) my prog does not start anymore under Windows 7 (exeption error), with Windows 10 no problem. I removed the last added var and everything is fine again under Win7.

I had this problem with to many vars earlier with DCVARGROUP (there was a limit near 230 vars).
This should only be a note for those who uses VARGROUP or DCVARGROUP with many vars.

Re: VARGROUP TO

Posted: Wed Oct 19, 2016 7:40 am
by Cliff Wiernik
This is from dcdialog.ch

Code: Select all


#xtranslate DCVARDEFINE [TO] <a> <var1> := <val1> [,<varN> := <valN>] =>  ;
            AAdd(<a>,{<(var1)>,<val1>}) [;AAdd(<a>,{<(varN)>,<valN>})]

#xtranslate DCVARCREATE [TO] <o> [NAME <groupname>] [FROM <a>] =>  ;
            [<o> :=] DC_VarGroup(<groupname>,<a>)
This gets around the array size definitions. You break your define into parts and then create it.

Roger does not appear to have this documented but added it a while back as I came into the same problems as you had. Limitations of the compiler I think.

Cliff