Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LAME Feature: Task List Shortcut
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
LAME Feature: Task List Shortcut
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01137976
Message ID:
01137976
Views:
50
I was looking into creating a task list based on 'TODO:' comments I have in my code. I activated the task list and started to place bookmarks in my code where I have the 'TODO:' comments.

After a little bit of editing I go back to the task list and it refreshs. To my surprise, what use to be there is now blank or referencing something I didn't bookmark.

Upon reading the documentation further (RTFM) I find out that bookmarks reference the line number of the code. Not the content of the line. The exact documentation reads as follows
Bookmarks and shortcuts relate to the position of a line of code in the editing window rather than the code itself. Therefore, certain editing operations, such as inserting text before a bookmark, can cause the line of code that a bookmark or shortcut refers to move to a different line. If you do not want the bookmark to refer to the new line, remove the bookmark or shortcut and add a new one in the desired location.
To me this makes bookmarks and shortcuts useless for purposes of organization. I wanted to comment specific areas of my code where I needed to do things and have those comments in the task list because these are tasks that need to be done.

Visual Studio has a task list and it does not have this problem. Its capable of moving the reference when lines of code are added or removed before bookmarks.

Is there a fix for this in VFP?

Thanks,
John G.
John Gundrum
Canon Technology Solutions Inc.
Reply
Map
View

Click here to load this message in the networking platform