Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Data Environment Cursor outside of Designer
Message
From
13/11/2022 12:31:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01685315
Message ID:
01685318
Views:
41
>>>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:
>>
>Thanks Dragan - will take a look.
>FYI, I discovered that if I select the Cursor in the Properties Window, click on the DE Window & Click Delete, the cursor will be removed even if I can't Visually see it

Um, yes, I thought of that, but I figured the PEM window would be too small (never found how to change the font there) and looking for a cursor would be tiresome... if they were all left at their default names, which usually nobody bothers with. Which is why I once wrote a builder to rename them to "crs"+alias, so I'd be able to find them when needed. And then I completely gave up on DE, a couple of years later, preferring to open my cursors from a bizobject.

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