Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How?
Divers
Thread ID:
00861516
Message ID:
00861516
Vues:
60
I must create an FLL that can receive an array as parameter & return same array stored with new values, but I don't know how. Something like this:

In VFP:
DECLARE myArray[20]
FOR i = 1 TO 20
    myArray[i] = i
NEXT
Test(@myArray)
LIST MEMO LIKE myArray
In VC++
void Test(ParamBlk *parm)
{
 for(int i=0;i<20;i++)
    {
     // Here I don't know how to acess to the i-th element of array & do
     // something with it
    }

// Here I must store some data in each element of array
 
 _RetLogical(true); 
}


extern C {
FoxInfo myFoxInfo[] = {
   {"Test",(FPFI) Test, 1, "R"}};

FoxTable _FoxTable = {
   (FoxTable *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo};
}
I read the Help but there is only one example. This is example of _ALen function.


TIA
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform