VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. This is a problem with mixing HTML code with VB.

    Code:
    main.Text = "   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">   "
    In VB, this gives me an error :



    I know in HTML you can sub things like spaces for " ", but what will help me here in VB?[/code]
    Quote Quote  
  2. Member
    Join Date
    Jan 2004
    Location
    England
    Search Comp PM
    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
    Quote Quote  
  3. That helped me out so much. Where can I find a good list of the characters and their letter equals?
    Quote Quote  
  4. Member
    Join Date
    Jan 2004
    Location
    England
    Search Comp PM
    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
    Quote Quote  
  5. Nah; it's all one big HTML tag

    but thanks!
    Quote Quote  
  6. 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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!