Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valor absoluto
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00691012
Message ID:
00691014
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Olá Geraldo,


Confesso não ter entendido bem o que você quer fazer, mas há uma função no VFP que retorna o sinal de um determinado valor. Veja exemplos:
STORE 10 TO gnNum1
STORE -10 TO gnNum2
STORE 0 TO gnZero
CLEAR
? SIGN(gnNum1)  && Displays 1
? SIGN(gnNum2)  && Displays -1
? SIGN(gnZero)  && Displays 0
Se não for isso, favor detalhar melhor e porque você precisa desses valores em negativo ou positivo.
[]´s


Nilton Paulino
paulino@foxbrasil.com.br
Fox Total Network
www.foxtotal.com.br
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform