gettingstarted
[Top] [All Lists]

Re: text

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re: text
From: "Jose Maria" <jtj at tssystems dot net>
Date: Thu, 28 Sep 2006 22:42:50 +0200 (CEST)
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <2e2 dot debbe4f dot 324d5ba2 at aol dot com>
Why not do a mid from 2 to len-1 ?

or using replaceall (excerpt from Lang Ref):

The ReplaceAll function replaces all occurrences of oldString in
sourceString with newString. ReplaceAll is case-insensitive.

If newString is an empty string (""), the ReplaceAll function deletes
every occurrence of the oldString in the sourceString.

If oldString is an empty string (""), the ReplaceAll function returns an
unchanged copy of the sourceString.



On Jue, 28 de Septiembre de 2006, 7:08 pm, GAmoore at aol dot com 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
> _______________________________________________
> 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>
>


_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>