Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Data Environment Cursor outside of Designer
Message
 
To
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:
01685317
Views:
42
>>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
>lcName=oref.Cursor43.name
>oRef.removeobject(lcName)
>
>Then save the form.
>
>Backup first.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform