Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array is property of element in Collection class
Message
From
27/04/2004 04:54:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/04/2004 03:12:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00898405
Message ID:
00898414
Views:
16
>Hi all.
>
>I am finded problem in VFP. Maybe is it BUG of VFP 8 SP1.
>
>Problem code:
>LOCAL oCollect as Collection
>LOCAL oEmpty, iX
>
>oEmpty = CREATEOBJECT('empty')
>oCollect = CREATEOBJECT('collection')
>
>ADDPROPERTY(oEmpty,'AnyArray(8)','')
>
>oCollect.Add(oEmpty)
>
>FOR EACH oElement IN oCollect
> FOR iX = 1 TO ALEN(oElement.AnyArray,1) && Error
> ?oElement.AnyArray[iX]
> ENDFOR
>ENDFOR
>
>If I approach to properties AnyArray of element oElement of function ALEN() then VFP generate ERROR MESSAGE...
>
>You have any ideas?
>
>Thanks you for any answear.
>
>Roman

It's a known (bug?) :
Try to replace your 'for each oElement ...' line with :
*For Each oElement In oCollect
For jx=1 TO oCollect.Count
  oElement = oCollect[m.jx]
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform