Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Property
Message
De
10/05/2001 08:56:20
 
 
À
10/05/2001 08:40:07
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00505696
Message ID:
00505701
Vues:
25
This message has been marked as a message which has helped to the initial question of the thread.
>What is an array property on a form and how is it different than a regular run-of-the-mill property? Or is the difference in how I use it? Thanks!

Renoir,

It's maybe easier to compare each to it's standard variable equivalent
Variable                   Property

m.fred = 10                thisform.fred = 10

Dimension myArray[5]       Dimension thisform.myArray[5]
myArray[1] = 10            thisform.myArray[1] = 10
myArray[2] = "Hello"       thisform.myArray[2] = "Hello"
The variables are scoped to the current method/prg the form based properties are scoped for the entire form.

An array property in a form is just defined with a myArray[1] in the form/new property menu item.

The only other limitations for form based properties (and array properties) is that they cannot be passed by reference to a function (normal vars and arrays can)

HTH
Will Jones
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform