Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array property
Message
De
15/05/2015 16:15:50
 
 
À
15/05/2015 16:04:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01619892
Message ID:
01619896
Vues:
39
Thierry,

Merci! Actually the ACOPY option does not work unless you dimension the receiving array first.

Thanks again.

>
>DEFINE CLASS STUFF AS CUSTOM
>	NAME = "stuff"
>	dimension aColumns[1]
>ENDDEFINE
>
>
>>Hi All:
>>
>>I can't figure out how to add an array as a property to an object. Right now I have this:
>>
>>
>>DEFINE CLASS STUFF AS CUSTOM
>>
>>	NAME = "stuff"
>>	aColumns[1] = 0
>>
>>	PROCEDURE INIT
>>
>>	ENDPROC
>>
>>ENDDEFINE
>>
>>
>>Then in the program I say:
>>
>>
>>_SCREEN.ADDOBJECT('oStuff','Stuff')
>>DIMENSION laColumns[RECCOUNT('curCustomers')]
>>ACOPY(laColumns,_screen.oStuff.aColumns)
>>
>>
>>OR
>>
>>
>>_SCREEN.ADDOBJECT('oStuff','Stuff')
>>DIMENSION _screen.oStuff.aColumns[RECCOUNT('curCustomers')]
>>
>>
>>In both cases I get an error:
>>
>>
>>'ACOLUMNS' is not an array
>>
>>
>>Thanks,
>>
>>Yossi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform