[SOLVED] Commented variable appears defined in Global Variables

I have this code defined in an event AfterInsert in a form:

[glo_medico] = {MEDICO};
// [glo_regladefault] = {MEDICO};
[glo_numerocli] = {NUMEROCLI};

As you can see [glo_regladefault] is commented and is the only occurence y the event.

But in Application Global Variables appear as follows:

glo_regladefault Variable defined in: Events (AfterInsert)

It appears that Scriptcase is ignoring comment characters // o #

I got the same issue after upgrading from 9.4.032 to 9.6.004

set the value to out so that it can’t get any value form outside the form

Thanks for your response. But that work around does not solve the real problem, which is that The code generator is not discarding commented lines.

yeah your right of course. it’s a bit of a workaround. hope it’s getting better after next update.

I’m seeing the same thing in 9.6.0002.

As a work around when I comment a line containing a global variable I replace the left bracket with an underscore so it’s not recognized as a global //[var] to //_var].

hi, same problem for me in 9.6.004

A mi también me sucede, si tengo una variable global comentada, me aparece como disponible, he tenido que eliminarla de mis comentarios. Envié reporte del problema y sigo a la espera.

Hi everyone,

We are aware of this issue and working to deliver a solution as faster as we can.

I’ll let you know when it happen.

Pedal faster please! This is driving me (us?) crazy! :disappointed_relieved:

Reported as solved in
ScriptCase v9.6.006 (2021-02-25 10:58)

–Fixed problem with displaying commented global variables.

Exactly @bgilmore

This issue was fixed in the last release (9.6.006).

Please, update your environment and verify if the problem is solved.

P.s: For now, this fix are only available for comments with //. Further work is needed to delivery the fix for # comments, but we’re working on it.