Home page  
Help >
ddlCompileRdMem() - compile RD from memory image
Version 7.11
ddlCompileRdMem() - Compile RD from memory image

Prototype:

   void ddlCompileRdMem(
      CONTROL *ctl,
      char *OptnString,
      char *ArgString,
      char *RdImage)
Permitted values in OptnStr:
/D - if compiled RD with same name exists, replace it

Form of ArgList:
      <RD-Name>
            <RD-name> is the name of the target RD

Description of Parameter RdImage:
char *RdImage is a memory block that contains the ascii image of a symbolic record description (RD). The image should include the RD declaration. Each line of ascii text is terminated by "\r\n".
The <RD-name> in the RD declaration is superseded by the <RD-name> in the ArgList.

If Token Transparency is active, the specification of the RD field names must use the internal name.

In addition (and independent of Token Mapping), if the RD is being used in the context of a Calc Object and the ddlGetCalc() API function, an RD field may be specified as one of the local variables that is defined in the source Calc Object. In this case, the variable name must be followed by the source Calc Object name, enclosed in parentheses.

Description:
ddlCompileRdMem() creates a local, temporary RD from symbolic text in a memory block. The resulting RD is local to the current instance; and exists only until the current instance is closed.

Values returned in Control Structure:
Control.Ans1 Number of fields in compiled RD
Control.Ans2 Length of compiled RD (in bytes)

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.