This is a problem with mixing HTML code with VB.
In VB, this gives me an error :Code:main.Text = " <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> "
I know in HTML you can sub things like spaces for " ", but what will help me here in VB?[/code]
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
Hi,
Your problem is due to at least(Maybe others) the " characters in the string as VB thinks this is the End of your string. If you want a " character in your string you can use Chr(34)
eg
" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
should be
" <!DOCTYPE HTML PUBLIC " & chr(34) & "-//W3C//DTD HTML 4.01 Transitional//EN"
Abnormal -
That helped me out so much. Where can I find a good list of the characters and their letter equals?
-
Hi,
Do a help search in VB for ASCI and there should be a ASCI character Table.
Also is "http://www.w3.org/TR/html4/loose.dtd"> " supose to be a new line as It is actually causing the error. If it is then you need to do something like this
Main.text = " <!DOCTYPE HTML PUBLIC " & chr(34) & "-//W3C//DTD HTML 4.01 Transitional//EN" & vbNewLine & Chr(34) & "http://www.w3.org/TR/html4/loose.dtd" & chr(34) & "> "
Abnormal -
I gots another question here...how do I add the toolbar control to my project without restarting with selecting "Enterprise Edition Controls"?
Same with SStabs...need those both for my project but don't know how to get em on the components tab.
edit: never mind i got it
Similar Threads
-
Read text create audio and convert text to synced subtitles in mp4
By Philip Lean in forum SubtitleReplies: 1Last Post: 25th Feb 2010, 09:54 -
HELP! Too Much Text - I Need Labelling Template For Text
By kasius in forum MediaReplies: 5Last Post: 6th Dec 2008, 17:08 -
looking for good OCR software that will convert text in jpg to regular text
By jimdagys in forum ComputerReplies: 6Last Post: 27th Jun 2008, 11:38 -
Adding text over original text
By stixster in forum EditingReplies: 3Last Post: 17th Jun 2008, 06:14 -
C# code to save text from listbox to a text file -- SOLVED--
By freebird73717 in forum ProgrammingReplies: 2Last Post: 2nd Sep 2007, 16:50