Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment alphabetizes views - Why?
Message
From
06/09/2000 15:07:40
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
06/09/2000 11:16:31
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00412960
Message ID:
00413148
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform