Error in dcl_form_show and vl-symbol-value

Started by velasquez, April 10, 2026, 01:21:37 PM

Previous topic - Next topic

velasquez

In ZWCAD 2025/26, an error occurs when using dcl_form_show.

A variable is defined with: (vl-bb-set 'JoyFormName 'dc_MainMenu_cBarMax)
 
When I try to open the form with:

(dcl_form_show (vl-symbol-value (vl-bb-ref 'JoyFormName)))
The function fails with the error shown in the image.

The form opens this way without a problem:
(dcl_Form_Show dc_MainMenu_cBarMax)

Where is my error?

owenwengerd

The error message indicates that (vl-symbol-value (vl-bb-ref 'JoyFormName)) returned NIL, so it seems unrelated to OpenDCL.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

Olá Owen,
Verifiquei que o problema está em 'vl-symbol-value'

Por que a vriável existe :
Command: (vl-bb-ref 'JoyFormName) -> DC_MAINMENU_CBARMAX
Command: (vl-symbol-value (vl-bb-ref 'JoyFormName)) -> Nil