Solved

How do I read a bookmark/favorite in VB?

Posted on 2003-11-24
10
277 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
ID: 9810019
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9810027
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
ID: 9810121
I thinks thats creating bookmarks which is useful. But I don't think it shows me how to read existing favorites.
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 16

Expert Comment

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

Author Comment

by:Sparky191
ID: 9810307
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9810401
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
ID: 9810415
0
 
LVL 1

Author Comment

by:Sparky191
ID: 9810946
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
ID: 9811101
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
ID: 9811175
Ah ok thanks. Purrrfect.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 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