Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Posts
    1

    Question Unanswered: Dbase III+ Function

    Is there a function in this early Dbase version that will return the math sign for a numerical variable, e.g. if I store the number 30 to a variable can I extract the "+" (plus) sign or if I store -30 to the same variable, can I extract the "-" (minus) sign?

  2. #2
    Join Date
    Dec 2003
    Location
    Bristol, England
    Posts
    29
    Hi,

    I don't remember any inbuilt function but

    Tot=-65
    if abs(tot)=tot
    TotSign='+'
    else
    TotSign='-'
    endif

    should do it.

    If you just want to remove the sign then

    str(abs(Tot)) will do
    taxes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •