Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment alphabetizes views - Why?
Message
De
06/09/2000 15:07:40
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
06/09/2000 11:16:31
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00412960
Message ID:
00413148
Vues:
19
All,

OK, here's the scoop.

In the cDataEnvironment class the views are collected using the
AMEMBERS(laCursors, This, 2) command. This command returns the object names alphabetically.

I replaced the AMEMBERS command in the cDataEnvironment.Init and cDataEnvironment.OpenTables methods with the following code

LOCAL ARRAY laCursors[1]
IF ! EMPTY(This.ControlCount)
LOCAL lcObjName,liTabIndex,liArrayLen

DIMENSION laCursors[This.ControlCount]

FOR lnRow = 1 TO This.ControlCount
lcObjName = This.Controls[lnRow].Name
liTabIndex = This.Controls[lnRow].TabIndex
laCursors[liTabIndex] = lcObjName
ENDFOR
ENDIF

Anything wrong with the solution???

TIA

Rex

>All,
>
>I have a business object containing several related views, that is one view is based on another view in the dataenvironment. I am getting errors because they are not opening in order. The DataEnvironment is getting an alphabetized list of view and opening them in that order.
>
>What can I do about this beside renaming the views?
>
>TIA
>
>Rex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform