Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Math question 1

Status
Not open for further replies.

cheetahz

Technical User
Dec 4, 2008
101
US
Is it possible to take some numbers from attachmate screen and do math with them?



I will pase them back to a different location
 



vzachin, never knew that one. Thanx! ==> *

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
hi skip,

i just found that Format in the help files.

this should place the data in the correct spot

Code:
       DiffMyArea = CDbl(MySum1) - CDbl(75#)
        [blue]MyLen = Len(format(DiffMyArea,"fixed"))[/blue]
        
            
    Set MyArea = MyScreen.Area(17,17,17,22,,3)
        MyScreen.PutString "      ", 6, 17
            [blue]If MyLen = 6 then
                MyScreen.PutString format(DiffMyArea,"fixed"), 6,  17
                    Else
                MyScreen.PutString format(DiffMyArea,"fixed"), 6,  18
            End If [/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top