Hello,
assume this code fragment represents your code:
DEFINE a_servici DYNAMIC ARRAY OF RECORD
f1, f2 INT
END RECORD
PRIVATE FUNCTION func1(i SMALLINT) RETURNS BOOLEAN
DEFINE l_runString STRING
LET l_runString = "fglrun"||a_servici[i].
RETURN TRUE
END FUNCTION
Studio uses the compiler for the code completion. The (hidden, undocumented) option -L<line>,<column> produces the proposals. Next invocation of the compiler asks for the code completion at line 6, column 42:
$ fglcomp -L 6,42 zz
zz.4gl:8:1:8:6:error:(-6609) A grammatical error has been found at 'RETURN' expecting: $end CONSTANT DEFINE DIALOG FUNCTION PRIVATE PUBLIC REPORT TYPE.
zz.4gl:6:42:6:42:error:(-4335) The symbol '' is not an element of the record 'a_servici'.
zz.4gl:6:42:6:42:error:(-8416) Missing RETURN.
proposal f1 scope=M entity=variable type=INTEGER
proposal f2 scope=M entity=variable type=INTEGER
The screenshot shows the result when using vim.
If you have doubts about the completion: perform the step above with your own code.
Rene
--
PS: return to the power of the command line