>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