Skip to main content

Is there a way to implicitly type a variable in visual cobol?

For example, in C#, if I have the statement:

var myResult = myFunction(parm, parm2);

The type of myResult will be whatever type that myFunction returns.

Is there a cobol equivalent to the above function call?

Thanks,

Mike


#VisualCOBOL

Is there a way to implicitly type a variable in visual cobol?

For example, in C#, if I have the statement:

var myResult = myFunction(parm, parm2);

The type of myResult will be whatever type that myFunction returns.

Is there a cobol equivalent to the above function call?

Thanks,

Mike


#VisualCOBOL
declare myResult = myFunction(parm, parm2)

Is there a way to implicitly type a variable in visual cobol?

For example, in C#, if I have the statement:

var myResult = myFunction(parm, parm2);

The type of myResult will be whatever type that myFunction returns.

Is there a cobol equivalent to the above function call?

Thanks,

Mike


#VisualCOBOL
Thanks, Chris. That worked just fine.