Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array is property of element in Collection class
Message
De
27/04/2004 04:54:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
27/04/2004 03:12:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00898405
Message ID:
00898414
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform