Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to dimension an array of type array
Message
From
12/05/2007 10:18:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/05/2007 09:52:47
Jose Manuel (Online)
Universal de Computos
Santiago, Dominican Republic
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01224954
Message ID:
01224957
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform