RUN VALUE(cProgName) with parameter

grinder

Member
Hi folks,

situation is like this: A var named cProgName is filled on runtime with the name of the module that should be invoked.
Like this:
Code:
RUN VALUE(cProgName).

Is it possible to send an input-parameter to this module?

This gives a syntax-error:
Code:
RUN VALUE(cProgName(INPUT nInputParameter)).

Thx in advance.
 

Cringer

ProgressTalk.com Moderator
Staff member
This works:

Code:
define variable lv-Proc as character no-undo initial "MyProc".


run value(lv-Proc) (input "abc").





procedure MyProc:
define input parameter ip-text as character no-undo. 

message ip-text view-as alert-box. 

end.
 
Top