refuse "SETVAR"

Started by hicoffee · 2008-02-16 01:14 UTC · 2 replies · SMF topic #184

After a dockable form be loaded, "SEVAR" will be refuse, "integer" no problem but "string" don't.
-----------
(SETVAR "DIMSCALE" 1)                  ------->ok
(SETVAR "DIMLDRBLK" "DOTSMALL")  ------->error
This is probably caused by an error in one of the form's event handlers. You could try disabling all the event handlers, then add them back one at a time to pinpoint the one causing the problem.
Hello

Many years ago we've found out that (setvar "CLAYER" strLayerName) will be refused in several cases, also when no OpenDCL (or ObjectDCL at that time) was used.
We had much mor luck using ActiveX:

(vla-setvariable oDocument "CLAYER" strLayerName)

HTH,

Fred