Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trimming blanks on a memo field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00625134
Message ID:
00625233
Vues:
10
Hi Eric (or is it Steve?), I sent this to the wrong person.
Here is what I do to trim carriage returns and line feeds (if that is what you need to do):
FOR i = 1 TO LEN(this.result)
    IF ASC(SUBSTR(this.result, i, 1))=10 .and. i>1
   	this.result = LEFT(this.result, i-1)
    ENDIF
    IF ASC(SUBSTR(this.result, i, 1))=13 .and. i>1
	this.result = LEFT(this.result, i-1)
    ENDIF
ENDFOR
How is the weather up there in Wisconsin? I'm from Portage originally, but I have lived in NC for 11 years now and can not imagine having to dig my way out of the snow before going to work anymore!
Tracy


>I know you can you use ALLTRIM() & TRIM() on character expressions to trim blanks off, but it does not work for a memo field. How do you go about trimming blanks off of a memo field? Thanks!
>
>Steve Kuhn
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform