Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Add a Cursor to DataEnvironment programatically?
Message
From
06/02/2004 06:33:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00874222
Message ID:
00874760
Views:
28
This message has been marked as the solution to the initial question of the thread.
>I'd like to Add a cursor to a DataEnvironment's form, without hacking the SCX table, is it possible?
>I'm creating a Form, adding controls, writing methods, but i need to add cursor to the dataEnvironment...

You mean this ?
Modify Form myDETest NoWait
aselobj(aObj,2)
With aObj[1]
  .AddObject('myEmployee','cursor')
  .AddObject('myOrders','cursor')
  With .myEmployee
    .Database = Sys(5)+Curdir()+'testdata.dbc'
    .CursorSource = 'employee'
  endwith 
  With .myOrders
    .Database = Sys(5)+Curdir()+'testdata.dbc'
    .CursorSource = 'orders'
    .Order = 'emp_id'
  EndWith
endwith 
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
Next
Reply
Map
View

Click here to load this message in the networking platform