ade_keycolumnlist

Land Desktop Development ARX CPP SDK

Up a level
ade_keycolumnlist
 
 

Returns a list of the key column names for the specified link template.

struct resbuf*

ade_keycolumnlist(

char* linktemplate);

Returns a list of key column names or NULL.

linktemplate Link template.

For more information about link templates and using SQL, see the AutoCAD online documentation.

The following sample populates a resbuf with key column names using ade_keycolumnlist(). The contents of the resbuf are displayed and the resbuf is released as required.

char* pszLinkTemplate = "BlockGroup";
struct resbuf* pKeyColumnListRb = ade_keycolumnlist(pszLinkTemplate);
if (NULL != pKeyColumnListRb) {
    struct resbuf* rb = pKeyColumnListRb;
    while(rb != NULL) {
        acutPrintf(
            "\nThe Key column name(s) are: %s"
            , rb->resval.rstring);
        rb = rb->rbnext;
    }
}
else {
    acutPrintf(
        "\nThere are no specified link templates in this project.");
}
acutRelRb(pKeyColumnListRb);