Search found 30 matches: subtract

Return to advanced search

Re: milliseconds()

Dear Antonio,
I found a workaround:
If I subtract a number from seconds() and add it back, it shows decimal places.

hData[ 'seconds' ] := 10 + seconds()-a -10


Best regards,
Otto
by Otto
Sat Dec 17, 2022 5:02 pm
 
Forum: mod_harbour
Topic: milliseconds()
Replies: 3
Views: 469

Re: intercept repeated values in an array

... are: 1) cyclometric sum 2) cyclometric distance 3) math addition 4) mathematical distance for the cyclometric sum it is always necessary to subtract 90 if the sum exceeds 90 The cyclometric distance between two numbers is obtained by calculating the arithmetic difference (major minus minor); ...
by Silvio.Falconi
Wed Oct 26, 2022 8:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: intercept repeated values in an array
Replies: 5
Views: 283

Re: New FTDN December/Diciembre 2020 (FWH 20.12)

... si es numérico o se corresponde a u[ nRow, nCol ] si es matriz y nil si u es nil. METHOD Add( u ) INLINE ::Calc( { |x,y| x + y }, u ) METHOD Subtract( u ) INLINE ::Calc( { |x,y| x - y }, u ) METHOD SubtractFrom( u ) INLINE ::Calc( { |x,y| y - x }, u ) METHOD Negative() INLINE ::Calc( { |x| ...
by Antonio Linares
Mon Dec 28, 2020 3:18 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN December/Diciembre 2020 (FWH 20.12)
Replies: 8
Views: 2360

New FTDN December/Diciembre 2020 (FWH 20.12)

... the operand if numeric or corresponding u[ nRow, nCol ] if matrix and nil if u is nil METHOD Add( u ) INLINE ::Calc( { |x,y| x + y }, u ) METHOD Subtract( u ) INLINE ::Calc( { |x,y| x - y }, u ) METHOD SubtractFrom( u ) INLINE ::Calc( { |x,y| y - x }, u ) METHOD Negative() INLINE ::Calc( { |x| ...
by Antonio Linares
Mon Dec 28, 2020 10:16 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN December/Diciembre 2020 (FWH 20.12)
Replies: 8
Views: 2360

Re: FWH: Support for Matrix calculations

... the operand if numeric or corresponding u[ nRow, nCol ] if matrix and nil if u is nil METHOD Add( u ) INLINE ::Calc( { |x,y| x + y }, u ) METHOD Subtract( u ) INLINE ::Calc( { |x,y| x - y }, u ) METHOD SubtractFrom( u ) INLINE ::Calc( { |x,y| y - x }, u ) METHOD Negative() INLINE ::Calc( { |x| ...
by nageswaragunupudi
Thu Dec 10, 2020 9:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: Support for Matrix calculations
Replies: 3
Views: 706

Re: Font sizing for printout.

... a W or M). Just create a DO WHILE loop that keeps adding a new "W" until it exceeds the printable width of the printer page. Then subtract 1. Now any combination of characters will fit. Alternatively, you could do a similar thing with the real characters. You would keep adding ...
by James Bott
Tue Jun 23, 2020 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font sizing for printout.
Replies: 3
Views: 749

Re: Menue

Cristobal, you must in the error-linenumbers given zB. "menudraw.prg 1699" subtract 9 as i compile in ananother way!
by byte-one
Mon Apr 17, 2017 6:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Menue
Replies: 11
Views: 1230

Re: Programming with ADO, recordsets

... variable in seconds FW_TIMEPART( tDateTime ) --> nSeconds or SecToTime( FW_TIMEPART( tDateTime ) ) --> cTimePart ( eg. '10:11:12' ) Add ( or Subtract ) Time to Date or DateTime variable --> returns DateTime value FW_ADDTIME( dDate_or_tDateTime, cTime ) --> tDateTime Eg: ? FW_ADDTIME( ...
by nageswaragunupudi
Sun Jun 21, 2015 2:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Programming with ADO, recordsets
Replies: 6
Views: 1047

Re: Antonio: Modifying CLASS TRBtn (Bug?)

... - oWnd:nLeft and the popup-menu are moved left on the display-position. z.b. Dialog position left is 700 after the move(). This oDlg:nLeft are subtract from the oButton:left !? ::oPopup:Activate( ::nTop + ::nHeight(),;::nLeft - If( ! oWnd:IsKindOf( "TRBGROUP" ), ...
by byte-one
Tue Jan 27, 2015 2:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Antonio: Modifying CLASS TRBtn (Bug?)
Replies: 12
Views: 2637

Re: Resizing Controls

... including the embedded dialogs, buttons and xbrowses. The math seems fairly straight forward .. determine the size of the ( expanding ) dialog and subtract the controls position ( as a constant ) from the sides and bottom. What I have found out is you can not use the SetSize() method on buttons, ...
by Rick Lipkin
Tue Dec 24, 2013 2:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Resizing Controls
Replies: 10
Views: 3005

Re: [SOLVED] How to move a dialog to a relative position?

... it where you want it to be manually, then read the new dialog coordinates. Otherwise you need to translate the dialog coordinates to windows, then subtract the desired values, then translate them back to dialog units. Regards, James James, I think I ain't using the windows measurement since I use ...
by sambomb
Mon Jun 10, 2013 12:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: [SOLVED] How to move a dialog to a relative position?
Replies: 9
Views: 2387

Re: How to move a dialog to a relative position?

... it where you want it to be manually, then read the new dialog coordinates. Otherwise you need to translate the dialog coordinates to windows, then subtract the desired values, then translate them back to dialog units. Regards, James
by James Bott
Sat Jun 08, 2013 2:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: [SOLVED] How to move a dialog to a relative position?
Replies: 9
Views: 2387

Re: List of changes between FWH7.10 and FWH12.06

... successful in asking the xHarbour developers to fix the manipulation of DateTime to mimic Date .. Before the xHarbour fix .. you could not add or subtract valtype "T" as you would ValType "D" nor could you successfully write back a ValType "T" to a Sql DateTime field... ...
by Rick Lipkin
Fri Jul 27, 2012 1:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: List of changes between FWH7.10 and FWH12.06
Replies: 3
Views: 989

VIRTUAL KEY

... 67 Numeric keypad 7 key VK_NUMPAD8 68 Numeric keypad 8 key VK_NUMPAD9 69 Numeric keypad 9 key VK_SEPARATOR 6C Separator key VK_SUBTRACT 6D Subtract key VK_DECIMAL 6E Decimal key VK_DIVIDE 6F Divide key VK_F1 70 F1 key VK_F2 71 F2 key VK_F3 72 F3 key VK_F4 73 F4 key VK_F5 74 F5 key VK_F6 ...
by joseluisysturiz
Mon Jul 16, 2012 5:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: VIRTUAL KEY
Replies: 0
Views: 643

SOLVED: Subtructing Time

Dear All,

How can you subtract time with this..

'08:01' - '08:00' = 00:01 or 1

Cant find the right Time conversion..

any help..
by fraxzi
Thu Feb 16, 2012 9:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SOLVED: Subtructing Time
Replies: 11
Views: 3432
Next

Return to advanced search