Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete space or zero or if begin with character
Message
De
27/12/2004 13:16:34
 
 
À
23/12/2004 06:40:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00971718
Message ID:
00972401
Vues:
25
I feel pretty silly too. I read it and understood it the same as you. Then after the replies he received I went back and read it again and realized I totally misunderstood his message!


>First I was wondering why you sent me this but then I realised I misread the request. He means "delete if first char is char.
>Then I thought "What would a field be doing with DEL as its first char way?", and DOH! < bsg >. I guess I was thinking maybe a spurious Arabic char has got in and, with code translation, became DEL.
>
>>
DELETE FROM yourtable WHERE TEAM='0' or TEAM=SPACE(1) or ISALPHA(TEAM)
>>>M.
>>>
>>>First of all, Team cannot be 0 or " " (one's numeric - the other character). So I presume you mean "0".
>>>The DEL char can be detected with CHR(7) - (see list in help for INKEY()).
>>>
>>>So:
>>>
Delete all for TEAM = "0" ;
>>>            or TEAM = " " ;
>>>            or LEFT( TEAM, 1) = CHR(7)
>>>
>>>
>>>Terry
>>>
>>>>hi all,
>>>>i need to delete every record, field team have space or zero or begin with charater.
>>>>as
>>>>
>>>>locate for team=space() or team=0 or team begin with char delete
>>>>
>>>>thanks.
>>>>m.qasem
.·*´¨)
.·`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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform