Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper reference to get ALEN on an object's array
Message
From
25/03/2000 19:50:45
 
 
To
25/03/2000 18:25:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00350449
Message ID:
00350453
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform