Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valor absoluto
Message
 
To
19/08/2002 09:54:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00691012
Message ID:
00691014
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform