Requesting data from a serverΒΆ

dde_getitem()

Request data


SYNTAX

dde_getitem(service, topic, item, field_id)

Requests data for the item specified. The data is stored in field_id, which should be an array field if multiple values are expected. Unused elements of the array are cleared.

Refer to the documentation of the server program for a list of supported topics and items.

There is no standard format for data in DDE. However, multiple values are often returned separated by commas, tab and newline characters. Sculptor splits data at tab and newline characters, but not at commas.

The function returns the number of values stored.


EXAMPLE

!temp NumProgramGroups,,i2
!temp ProgramGroup,,a30[40]

     tmp.NumProgramGroups = dde_getitem("PROGMAN", "PROGMAN", "GROUPS", tmp.ProgramGroup)

     if (tmp.NumProgramGroups <= 0) {
          error " Cannot get list of program groups "
          exit
     }

RELATED TOPICS

DDE

DDE functions

Arguments to DDE functions