CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Posts
    87

    Double quote problem

    Hi!
    I need your very help. How will I display this string with a double quote in it:

    ("int") are "casted"

    I use this :
    " ("int" are "casted" "

    but it gets an error. Urgent help please...

    Thanks,

    cecile

    The more u read, the more u do not know

  2. #2
    Join Date
    Dec 2000
    Location
    India
    Posts
    25

    Re: Double quote problem

    Try this

    str = "(""int"") are ""casted"""
    'or a std solution to this type of problems is to use the chr to generate the character u want to use

    str = "(" & chr(34) & "int" & chr(34) & ") are " & chr(34) & "casted" & chr(34)






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured