Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546

    Math Function Question

    Does anyone know how to code a simple subtraction-routine?

    eg. Application performs Sting.ToNumber and stores the resulting variables as say, 10 and 7. How can I get it to then perform a subtraction-routine on these two numbers, so that that the result (ie. 3) is then held as the resulting variable?

  2. #2
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Do-h! Found it ... knew I was asking a dumb and obvious question.

    Why is it that sometimes our brains go into meltdown and miss the painfully obvious?

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Please be sure to share you light bulb moment with the others who may not know how to do it. Thx

  4. #4
    Join Date
    Apr 2009
    Posts
    277
    Code:
    nTen=10
    nSevern=7
    nResult=(nTen-nSevern)
    nResult contains (3)

    its only easy when you know how, and Bruce is right, it helps others to if there is a answer when they search out your post 1 year from now with the same question

    Why is it that sometimes our brains go into meltdown and miss the painfully obvious?
    lol, yeah, every day!

  5. #5
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    A fair point ... will keep this in mind for next time. Thanks for the example-code of what I was talking about, MicroByte.

Similar Threads

  1. Question regarding "Get Version Information" function
    By dugarte in forum AutoPlay Media Studio 7.5
    Replies: 1
    Last Post: 04-29-2008, 02:08 PM
  2. Math question
    By RodB in forum AutoPlay Media Studio 6.0
    Replies: 13
    Last Post: 01-09-2006, 12:18 PM
  3. Another tough one... Interaction between Web and AMS
    By Agent Jones in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-18-2005, 02:10 PM
  4. Question on DLL Function Call
    By Martin_SBT in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 11-10-2003, 04:03 PM

Posting Permissions

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