Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to dimension an array of type array
Message
De
12/05/2007 10:18:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/05/2007 09:52:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01224954
Message ID:
01224957
Vues:
19
>hi,
>I am employed at an application where I have to do a schedule of class for the courses of a college.
>
>I want to know, since in vfp can define a array, which it can contain mas of an information in every position (x, y)
>As for ej. in lengueje C, I will can define an estruct with 3 fields code, name, telephone and after define a array of this type of information.
>Then will can to index array (x, y) .nombre ='jose '

You can do the same in VFP if it's an object array. ie:
local array aMyObject[10,5]
for ix=1 to 10
for jx=1 to 5
aMyObject[m.ix,m.jx] = create('empty')
addproperty(aMyObject[m.ix,m.jx],'code','Code '+trans(m.ix)+' of '+trans(m.jx) )
addproperty(aMyObject[m.ix,m.jx],'Nombre','My name is '+trans(m.ix)+' of '+trans(m.jx) )
addproperty(aMyObject[m.ix,m.jx],'Phone','Phone '+trans(m.ix)+' of '+trans(m.jx) )
endfor
endfor

? aMyObject[2,3].Nombre, aMyObject[2,3].Phone
? aMyObject[4,2].Nombre, aMyObject[4,2].Code
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
Répondre
Fil
Voir

Click here to load this message in the networking platform