Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete space or zero or if begin with character
Message
De
23/12/2004 06:40:44
 
 
À
23/12/2004 06:32:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00971718
Message ID:
00971724
Vues:
28
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
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform