Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper reference to get ALEN on an object's array
Message
De
25/03/2000 19:50:45
 
 
À
25/03/2000 18:25:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00350449
Message ID:
00350453
Vues:
24
>In an array, we will use ALEN(laArray,1) to get the array len. However, if this is coming from an object's array, what is the appropriate syntax to use. I see that ALEN(loObject.aArray,1) does not work.

Something is wrong. The following works just fine:
*TESTCREATE.PRG
SET PROC TO TESTcrea
ox=createobj('arrayobj')
? alen(ox.aary,1)
? alen(ox.aary,2)
ox.changearray()
? alen(ox.aary,1)
? alen(ox.aary,2)

PROCEDURE testit
DEFINE CLASS arrayobj AS CUSTOM
   DECLARE aary[4,2]
PROC CHANGEARRAY
   DIMENSION this.aary[9,4]
ENDPROC
ENDDEFINE
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform