Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EditBox
Message
De
21/03/2003 10:12:27
 
 
À
21/03/2003 10:03:59
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00768567
Message ID:
00768572
Vues:
18
Is is a chr(0) by any chance? If you step through each character in the field, determine what it is and strip it out. You can do something similar to:
SCAN
   lcstring=ALLTRIM(mytable.myfield)
   ? lcstring
   istop=LEN(lcstring)
   FOR i = 1 TO istop
      ? ASC(SUBSTR(lcstring,i,1))  && determine what the chars are
      IF ASC(SUBSTR(lcstring,i,1))=0  && if it is chr(0), strip it out
      	REPLACE mytable.myfield WITH LEFT(lcstring,i-1)
      ENDIF
   ENDFOR
   ? mytable.myfield
ENDSCAN
>I am useing an EditBox to enter a drawing title into my table. After the title is input there are extra chractors in the string, two heavey vertical bars. This causes a problem when I need to include this string in SPT. How can I strip these charactors?
.·*´¨)
.·`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