Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redimensioning an array in an FLL
Message
From
25/01/1999 10:45:02
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00179604
Message ID:
00179818
Views:
21
>>Hi Ed,
>>
>>>but isn't there a part of the VFP API that allows you to execute a VFP command from within an FLL? If all else is being uncooperative, you might try to access DIMENSION that way.
>>
>>_Execute(), yes, but wouldn't that require that you know the name of the array?
>
>You should be able to find it; it's got to exist in the NTI somewhere (I'm guessing here, guys, take anything I say as conjecture). Failing that, another approach might be to add a parameter with the name, to be used as such. But there's got to be a way. From a long time ago, parameters are either a value structure or a locator structure; if it's a locator, you have to do something to get to the value, there's an offset into the name table as one of the members, and there has to be something in an NTI entry with the name of the variable...


Hello Ed!

You are absolutely right! But which VFP API gives back the name of a variable for its NTI?
When you pass an array by reference, you get the NTI of the variable, you can acces its element by this, or, if you pass a normal variable by reference you also get its NTI and then you can acces its value, but I donnot know any function, that gives back the name of a variable for its NTI.
There is a _FindVar function which gives back the NTI of a variable for its name. Where is the opposite function?

BB
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform