Multiple params in list elements
Multiple params in list elements
- Subject: Multiple params in list elements
- From: michael <email@hidden>
- Date: Mon, 5 Nov 2001 14:31:33 -0500
This is probably an old question, but I haven't found any examples.
I want to return a list of text 'unit' names, each with one or more 'params'.
I currently create such a 'list' with the code below, but I want to
add the 'current value' of each 'unit' in the same result.
any help or pointers to examples would be much appreciated.
tia
michael ferguson
email@hidden
=========================================
nextUnit:
for (i = 0; i < kMaxTableEntries; i++)
{
entry = &(cTable->entry[i]);
// gotta be an occupied element
if (entry->status & entrySetMask)
{
// if of the selected class
theTest = (entry->status & theMask);
if (theTest == theState)
{
// put text name into list
theErr = AEPutPtr(&theList, Lindex, typeChar, &entry-
>
name[1], entry->name[0]);
if (theErr != noErr) goto exit;
(Here I want to add a 'short' parameter to the
corresponding 'unit' element)
Lindex += 1;
}
}
}
if (theErr == noErr)
// Append it to the reply -- that's all
theErr = AEPutParamDesc(reply, keyDirectObject, &theList);