Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Properties
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01032423
Message ID:
01032428
Vues:
21
>I have forgotten something that I usd to do all the time. Uh oh, old age? Maybe, but it used to be a common thing I did.
>
>I used to name FORM properties with array names. I cannot figure out how to do this any more, meaning create a property name that is also an array name.
>
>I have a form Property called ThisForm.aOrders, but I must be doing something wrong. I get an error that states that it is not an array when I try to create it using a SQL statement.
>
>I keep trying to create the array property as aOrders, but it is a no-go. I tried also aOrders[1], and nothing works.
>
>* Load Event:
>CLOSE ALL
>SET EXCLUSIVE OFF
>SET CPDIALOG OFF
>
>USE C:\WINDOWS\FOXPRO\SHIP\LOADING SHARED IN 0 &&<-- OLD code here.
>USE E:\IRL\CUSTOMER SHARED ORDER CUSTNO IN 0
>
>* Create Orders # Array.

* the select define a new private array, but not a property array
addproperty(thisform,"aOrders[1]")
SELECT DISTINCT Order ;
	FROM LOADING ;
	ORDER BY Order ;
	INTO ARRAY ThisForm.aOrders

>SELECT LOADING
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform