Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigation Array Logic
Message
From
16/05/2001 12:15:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/05/2001 12:01:05
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00507900
Message ID:
00507909
Views:
11
This message has been marked as the solution to the initial question of the thread.
>I'm creating a data-driven help system much like the one used in Foxpro (yes, there are reasons I'm not using HTML or the actual Foxpro help itself). I am populating an array used to determine the order of topics visited. The array is one-dimensional containing a HelpContextID number. I also store the last row number in a form property in order to determine where I am in the array; movement is Back (-1) or Forward (+1) in relation to that row number and I'm trapping for when I'm on the first and last row. My question is regarding what logic I should use to get the best naviagational result. Below are three examples of the array, each using different logic:
>
>A. Every topic visited is added to the array
>
>1
>5
>1
>2
>4
>1
>
>B. Only topics not already visited are added to the array
>
>1
>5
>2
>4
>
>C. Every topic is added to the array, but the previous matching one is removed
>
>1 (removed)
>5
>1 (removed)
>2
>4
>1
>
>...resulting in
>
>5
>2
>4
>1
>
>The last one (C) seems to be the best to me as it only takes into consideration the most recent navigation, but I wanted to know what others thought and if there was another scenerio that I haven't thought of yet. Thanks!
>
>Regards, Renoir

Renoir,
Removing visited might lead to inconsistent behaviour. Users especialy when browsing the net are accustomed to get 'previous' and 'next' visited pages and call new ones explicitly.
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
Reply
Map
View

Click here to load this message in the networking platform