Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seqüência de caracteres
Message
De
20/08/2002 19:12:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/08/2002 19:03:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00691730
Message ID:
00691732
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>Pessoal,
>
>Tenho a seguinte situação:
>
>cStr1 = CHR(203)+CHR(22)+CHR(67)+CHR(65)+CHR(182)+CHR(2)+CHR(173)+CHR(69)+CHR(206)
>cStr2 = CHR(203)+CHR(22)+CHR(67)+CHR(65)+CHR(182)+CHR(1)+CHR(173)+CHR(69)+CHR(206)
>
>? cStr1 = cStr2
>resultado: .T.
>
>
>Como posso resolver esta situação, pois, o conteúdo destas strings irão fazer parte de um campo de chave primária e mesmo sendo diferentes o VFP teima em dizer que são iguais?
SET COLLATE TO MACHINE
cStr1 = CHR(203)+CHR(22)+CHR(67)+CHR(65)+CHR(182)+CHR(2)+CHR(173)+CHR(69)+CHR(206)
cStr2 = CHR(203)+CHR(22)+CHR(67)+CHR(65)+CHR(182)+CHR(1)+CHR(173)+CHR(69)+CHR(206)

? cStr1 = cStr2
resultado: .F.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform