4D Pop macros and dot notation

Hi,

I use the 4D Pop macros to create my compiler directives.

I’ve set up _o;_e;*_es;ds as all being of object type and this works well.

The problem is when you use dot notation. So for example with the following code

<code 4D>
$ds:=ds
$Related_es:=$ds.Document_Dates.query(“Doc_ID = :1”;[Document]ID)
Form.AssociatedDates:=$Related_es.orderBy(“lineNumber asc”)
</code 4D>

It gets confused and you end up with declarations like this:

<code 4D>
C_OBJECT($ds;$ds.Document_Dates.query;$Related_es;$Related_es.orderBy)
</code 4D>

I looked at the source but got horribly confused!

Is there a way to prevent this from happening?

Thanks,

Wayne

Hi Wayne,

: Wayne STEWART

Is there a way to prevent this from happening?
You can try this parameters for objects :

_o$;_e$;*_es$”

Like for regex “$” indicate the end of the string.

Hi Vincent,

That’s terrific! I’m a bit of an idiot regarding regex.

They still show up in the preview list of variables but as “unknown”

If you just click OK it saves correctly.

Thanks,

Wayne

Hi Wayne,

: Wayne STEWART

Is there a way to prevent this from happening?
You can try this parameters for objects :

_o$;_e$;*_es$”

Like for regex “$” indicate the end of the string.