•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 375,201 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,254 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 479 | Replies: 3
![]() |
•
•
Join Date: Dec 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, i'm using ms access and i have a table and a form which have the field code_url. I would like to know how can i create a form with a button that i could use to cut string in the field name code_url for example:
<a href="yahoo.com?234234234sdef">Episode 1</a><br><embed src="videos/vplayer.swf
i want to delete the first href code from this string, starts from <a to </a>, so the result would be:
<br><embed src="videos/vplayer21212.swf
i want to know how to use it in form with button for individual row cut and with query for mass cuts. I really have no idea how this works.
Any response, thanks in advance....
<a href="yahoo.com?234234234sdef">Episode 1</a><br><embed src="videos/vplayer.swf
i want to delete the first href code from this string, starts from <a to </a>, so the result would be:
<br><embed src="videos/vplayer21212.swf
i want to know how to use it in form with button for individual row cut and with query for mass cuts. I really have no idea how this works.
Any response, thanks in advance....
•
•
Join Date: Feb 2008
Location: Sivakasi, Tamilnadu, India
Posts: 300
Reputation:
Rep Power: 1
Solved Threads: 53
Hi
Here VC++6 code to extract the string
Here VC++6 code to extract the string
CString s = "<a href=\"yahoo.com?234234234sdef\">Episode 1</a><br><embed src=\"videos/vplayer.swf\"";
CString cut;
int index = s.Find("</a>"); // Find </a> index
if ( index >= 0 ){ // If Found
cut = s.Mid ( index + 4 ); // Index + Length of </a>
AfxMessageBox ( cut );
} Last edited by selvaganapathy : May 18th, 2008 at 12:40 am.
KSG
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Similar Threads
- The fastest combination generator (Computer Science and Software Design)
- DataAdapter problem with MS-Access (C#)
- Giving a user access to additional groups (Shell Scripting)
- How can I access these arrays without ifs (C++)
- Nim Strategy (Java)
- casting error (Java)
- Winsock Multi-Client Servers (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to convert MS Access database to MySQL?
- Next Thread: how to clear/erase the content of the window in visual c++ 6.0?


Linear Mode