I'm creating a shared common Include record consisting, in part, a Dimensioned array where each cell is Equated to a variable name.
For example:
if 0 Then
common /test/ WorkArray(50)
Equ OIFileNames to WorkArray(1)Equ OIFileVars to WorkArray(2)Equ Record to WorkArray(3)End
And when this item is $Insert -ed into a stored procedure and then compiled, the warnings appear:
Equate "OIFILENAMES" (WORKARRAY) on line 13 does not end with "$"
Equate "OIFILEVARS" (WORKARRAY) on line 13 does not end with "$"
Equate "RECORD" (WORKARRAY) on line 13 does not end with "$"
It makes sense when referencing a variable to a number (e.g. Equ Record_Name$ to 1)
But when the Dimensioned Array's cells contain dynamic arrays, referencing those items with a $ suffix is a bit misleading since the variable is not a constant. Therefore, working with a variable name would look like
record<1> = CustomerName
record<2> = CustomerAddress
instead of
record$<1> = CustomerName
record$<2> = CustomerAddress
I understand the warnings. Does an option (perhaps precompiler option) exist that can be inserted inside the Insert record/item that overrides this specific warning?
Mike Daniel
480-699-0212
Hi, Mike.
You can explicitly turn off the warning about missing "$" on equates by including the following line in your code:
#pragma blint_nowarn
If you wish, you can also turn them off everywhere - on the IDE, under Settings, choose "IDE Settings", then in the left hand panel navigate to "Editor Interface". Set "Ignore Missing Equate Suffixes" to true to disable those warnings globally.
Hope that helps,
- Bryan Shumsky
Bryan,
this is very helpful.
Thanks,
Mike Daniel
480-699-0212
on the IDE, under Settings, choose "IDE Settings", then in the left hand panel navigate to "Editor Interface". Set "Ignore Missing Equate Suffixes" to true to disable those warnings globally.
I assume this is new to 10.0.8, cant see it in 10.0.7