Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays in FLL's
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00462654
Message ID:
00462912
Views:
11
thank you for the help. I think that can work.

However in order for me to do that I need the name of the object variable. The object reference is passed in directly to the FLL, so I can't run the EVALUATE commmand on it. Is there anyway of doing a reverse _NameTableIndex? ie: given the locator, come back with a null terminated string that represents the name?

My other idea is to write a short function that creates a named reference based on the object... something like this:

void _GetObjectReference(char *tcObjectName, Value toObject, Value toReference)
{
Locator loc;
int retValue;

// Get a reference to the object and name it ourselves...
if (toObject.ev_type == 'O')
{
// Get the Objectname parameter...
loc.l_subs = 0;
loc.l_sub1 = 0;
loc.l_sub2 = 0;
if ((retValue = _NewVar(tcObjectName, &loc, NV_PRIVATE)) < 0)
_Error(-retValue);
}

// increment the object's reference, and set it's value to the newly created value...
_ObjectReference(&toObject);
_Store(&loc, &toObject);

// setup the receiving object structure...
_MemFill(&toReference, 0, sizeof(Value));
toReference = toObject;
}
}
Previous
Reply
Map
View

Click here to load this message in the networking platform