Solved

How do I read a bookmark/favorite in VB?

Posted on 2003-11-24
10
275 Views
Last Modified: 2010-05-01
I want to write my own bookmark/favorite sorting app. How do read the bookmark/favorite file into VB?
0
Comment
Question by:Sparky191
  • 6
  • 4
10 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
Maybe i misunderstood your question.
You could create a simple text file with two columns and read it from line to line with simple Open statements.
0
 
LVL 1

Author Comment

by:Sparky191
Comment Utility
I thinks thats creating bookmarks which is useful. But I don't think it shows me how to read existing favorites.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
then, i really didn't undertand your Q.
0
 
LVL 1

Author Comment

by:Sparky191
Comment Utility
I want to read in a bunch of bookmarks and then sort them, deleteing duplicates, regrouping them into different catergories etc. I don't know how to read in the file and get the info from the bookmark.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
well, here we go:
we could use a csv file (comma separated text file), you could read and write to it as if it was a table from a database.
Here is a sample code to do it.
http://www.exceltip.com/st/Import_data_from_a_text_file_(ADO)_using_VBA_in_Microsoft_Excel/430.html
it is for excel but it could be easily translated to VB.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
0
 
LVL 1

Author Comment

by:Sparky191
Comment Utility
I can hold all the data in a multi dimension array for sorting, why do you suggest Excel? (Puzzled???)

How do I get all the url and shortcut names from my favorites folder in the first place. You've shown me how to create on a write one, but not how to read one. Or I have missed it in that vb.net code you posted at the start?

Thanks
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 250 total points
Comment Utility
In the example provided at the vbnet link there is a button with caption "Organize favorites".
And an advanved version at:
http://www.mvps.org/vbnet/code/browse/shdocvwfavadv.htm
0
 
LVL 1

Author Comment

by:Sparky191
Comment Utility
Ah ok thanks. Purrrfect.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now