Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Data Environment Cursor outside of Designer
Message
From
13/11/2022 11:35:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01685315
Message ID:
01685316
Views:
53
Likes (1)
>I have a quirky issue.
>
>Have a Form where I'm attempting to remove a cursor from the Data Environment. After selecting the cursor in the Properties Window, I can't find the cursor in the Visual Designer as there are over 100 cursors on the form.
>
>Any way to remove the Cursor outside of the Designer?

I tried to do it using aSelobj() but the reference to a form doesn't have any property relating to the DE... but then messing around it I found that it can, if 2nd parameter is 2. So, open the form in the designer, then in command window do

aSelobj(aEd,2)
oRef=aEd[1]
and then iterate through your cursors until you find the one which has your alias. Assuming it's cursor43:

lcName=oref.Cursor43.name
oRef.removeobject(lcName)

Then save the form.

Backup first.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform