Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 17 JAN 2020 12:02:16PM mdaniel wrote:

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


At 17 JAN 2020 02:56PM bshumsky wrote:

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

Revelation Software, Inc.


At 17 JAN 2020 03:10PM mdaniel wrote:

Bryan,

this is very helpful.

Thanks,

Mike Daniel

480-699-0212


At 17 JAN 2020 07:45PM Barry Stevens wrote:

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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/d7b6b5f2ed53914d8718b98582e96cce.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1