Feature request: Code snippets

Author: martinandheather@gmail.com (byjones)

Would it be possible to introduce a feature similar to include procs, but which do not validate. Maybe even include a flag on include procs to disable validatation for that particular proc.

I think it would be a good feature to be able to include segments of code, for inclusion into other proc.

e.g.

define a code snippet of 'standardvariables' in library LIB:

numeric vNumeric
string vString

Then, in a trigger, you would have

entry SomeEntry
variables
#include LIB:standardvariables
boolean vBoolean
endvariables

Any thoughts?

Martin

 

1 Comment

  1. Hi martin,

    I use this "set of parameters" or "set of variables" quite often.

    Sometimes I encounter validation errors (when I use "entry <$componentname>")

    one option is to ignore the validating message ("continue")
    or have a look if the preferences allow to disable the validation.

    Success, Uli

    P.S. because include procs use the USOURCE, we have an unused boolean field available.


    Author: ulrich-merkel (ulrichmerkel@web.de)