On Sep 28, 2006, at 11:08 AM, [EMAIL PROTECTED] wrote:

Thanks Norman and Jose. So I guess I need to write a little method to strip the quotes off by finding out the ascii for double quotes? Or maybe something like this... (Is there separate ascii for left quotes and right quotes?)

dim i as integer
dim s, t as string

t = "Jones, Jim"
s = ""
for i = 1 to len(t)
   c = mid(t, i)
   if c <>""" and c <> """ then s = s + c
next

nothing so terrible
Your test is NOT quite right as t does not have a double quote in it
In order to put a double quote inside as string you put 2 double quote in a row
Walk through this bit in the debugger to see it in action

dim s as string
dim t as string

t = """Jones, Jim"""  // this gives t holding "Jones, Jim"
s = replaceall(t,"""","") // replace all the " in t with nothing

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to