View Single Post
  #1 (permalink)  
Old January 21st, 2005, 03:56 AM
myer75 myer75 is offline
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can i get rid off the double quote in a text

I have the problem when coding the VBScript. It seems I can not call any function like Trim( "String") if the String value have a double quote(s). Could you help me to get around with it or replace the double quote with 2 single quote' ' before i can pass the string.

Below is the code i got error "Compilation error 1025"

stMyVariable = " My text or number " value here "
Msgbox "The string after converting is: " &Trim(stMyVariable)

Any help will be greatly appreciated. Thanks many in advance


Have a great day
Myer
Reply With Quote