Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 Tip-o-the-day
Message
De
05/08/1998 07:23:01
 
 
À
05/08/1998 06:53:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00123975
Message ID:
00123998
Vues:
22
Hi Jim,

zero-based array -> first element is MyArray[0]
one-based array -> first element is MyArray[1]

Bill

>Jim,
>
>Now if only I knew what a zero or one -based array was, it looks like it could be very useful!
>
>Cheers,
>
>Jim N
>
>>Folks,
>>
>>Another new function is COMARRAY(). It syntax is
>>
>>
>>COMARRAY(oObject [, nNewValue])
>>
>>
>>The arguments are oObject which is an object reference to the COM object.
>>
>>And nNewValue which specifies the way that arrays are passed to the COM object.
>>
>>The values for nNwValue are
>>
>>
>>0 The array is a zero based array, and it is passed by value.
>>1 (Default) The array is a one based array, and it is passed by
>> value. Compatible with earlier versions of Visual FoxPro.
>>10 The array is a zero based array, and it is passed by reference.
>>11 The array is a one based array, and it is passed by reference.
>>
>>
>>Calling COMARRAY() without the nNewValue will return the current setting.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform