Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redefine an array in FLL?
Message
From
16/08/2004 19:51:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00924598
Message ID:
00933724
Views:
19
I always use this technique to make the array for the appropiate size. But before this, you must release it, if it exists:
  iNTI=_NameTableIndex(varName);
  if (iNTI>-1 && _FindVar(iNTI,-1,&loc)) { // array exist
    _Release(_NameTableIndex(varName));
  }
>Hi Borislav,
>
>I don't know..., but you can create new array:
>
>// create array
>locFiles.l_subs = 1;
>locFiles.l_sub1 = (short) liFiles;
>locFiles.l_sub2 = 0;
>
>if ((lii = _NewVar(lcS, &locFiles,NV_PRIVATE)) < 0)
>   {
>   // _NewVar() returns negative Visual FoxPro error number
>   _Error(lii*-1);
>}
>
>
>MartinJ
>
>>I want to create a FLL, but in my function I need to expand the array passed as parameter to it. How to do that, I will appressiate for any help especialy for some articles to read.
>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform