Re: Functions using variables values
Posted in 1997
ADALBERTO ALTAMIRANO wrote: > > Hi everybody!! > > My question is in regard to the use of functions, specially in running any > function by using variables values; for example : > > FUNCTION name_function() > LET var_name = "action" > CALL var_name > > Well, that's the main idea. > Does anybody have any algorithm to this situation or another idea > to find out my problem ? Sorry, AL.. what you are looking for is a data type like pointer to a function. Since 4GL does not support *any* kind of pointer variables, you are out of luck on this approach. Like some the solutions I have been looking for, you will probably have to use the big CASE statement to dispatch your functions. -- -- Jake (In pursuit of undomesticated aquatic avians) +-----------------------------------------------------------+ | Impeccable Logic: A thought process which successfully | | resists chicken bites | +-----------------------------------------------------------+