Home AMX User Forum NetLinx Studio
Options

Newbie here. My constant became a variable when it was initially a constant..

Hi Guys,

I found some peculiar behaviour when defining this variable. Initially, when I wrote this, it was ok. After doing some debugging and commenting out this variable several times....this occur.

When defining DEV vdvDev[] = {vdvNECNPPA600X1}...the vdvNECNPPA600X1 became a variable instead of a constant.
The rest of the vdvNECNPPA600X maintain as constant.

DEV vdvDev[] = {vdvNECNPPA600X1}
DEV vdvDev2[] = {vdvNECNPPA600X2}
DEV vdvDev3[] = {vdvNECNPPA600X3}
DEV vdvDev4[] = {vdvNECNPPA600X4}

I tried renaming it but it still stay as variable. I even delete it and rewrite it but still remain as a variable. If I write it as vdvNECNPPA6002, it will change as constant which is correct.

A bit lost here. I hope you guys can help me out.

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    There are times I see the colors change on things that are declared as devices, constants and so forth after typos. I just ignore it. It always seems to clear out after restarting NS
Sign In or Register to comment.