Search found 30 matches: subtract

Return to advanced search

Re: How to find out how many times a string is in a variable

... which returns the number of tokens correctly. If we want to use the same function for counting number of times the separator occurs we need to subtract one from the number of tokens.
by nageswaragunupudi
Thu Feb 03, 2011 6:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out how many times a string is in a variable
Replies: 9
Views: 1532

Re: Help with MENU COMMAND !!

... code--you will just have to add more menu items. If you have an unequal number of menu items (for each group) then you will also have to add or subtract menu items. This could get complicated. Did you want to use a pulldown menu or a pop-up menu? Regards, James
by James Bott
Sun Aug 01, 2010 8:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with MENU COMMAND !!
Replies: 11
Views: 1877

Re: understanding OOP returning more than value from a method

... age if their birthday has already occurred in the year of the date you are calculating their age to. If that date has not passed you need to subtract 1 from nTrialAge. The logic for this is easy enough. Firstly compare months, and if they are equal compare days. Something like this: IF Month( ...
by xProgrammer
Wed May 05, 2010 9:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: understanding OOP returning more than value from a method
Replies: 14
Views: 3105

SetTime

Does someone know how to handle settime correctly?
On the IPaq I have to add 7 hours and on the PC subtract 2 hours to get the correct local time.

Best regards,
Otto
by Otto
Sun May 02, 2010 9:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SetTime
Replies: 1
Views: 531

Re: Number of days

... the first and last dates of night's accommodation you would need to add the extra day. As you state if the dates are exclusive you would need to subtract a day. I haven't run across a case of day intervals with exclusive dates in any practical application I have been involved in. My experience ...
by xProgrammer
Wed Apr 14, 2010 1:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Number of days
Replies: 9
Views: 3000

Michel,

> VK_ADD = "+" of the numeric keypad.
> VK_SUBTRACT = "-" of the numeric keypad.

On a laptop you have to press the "Fn" key plus the keypad key before these keys are detectable.

James
by James Bott
Fri Oct 17, 2008 5:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about VK_NEXT or VK_ABSTRACT
Replies: 3
Views: 716

Antonio,

Sorry, I made a mistake. It must be VK_SUBTRACT.

VK_ADD = "+" of the numeric keypad.
VK_SUBTRACT = "-" of the numeric keypad.

I just edited my first message in this topic.

Thanks.
by driessen
Fri Oct 17, 2008 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about VK_NEXT or VK_ABSTRACT
Replies: 3
Views: 716

Question about VK_NEXT or VK_ABSTRACT

Hello, I use the function VK_NEXT and VK_SUBTRACT in my applications. If my application is used on a laptop, this causes often a problem since a laptop usually doesn't have those keys. How can these keys be used on a laptop ? Maybe this is not a real FWH-problem, but does anyone know an answer ? Tha...
by driessen
Thu Oct 16, 2008 8:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about VK_NEXT or VK_ABSTRACT
Replies: 3
Views: 716

Fivewin Classes

Fivewin Classes -------------------------------------------------------------------------------- I first use CLASS code writing my source code.When I write about Button CLASS appear Error Info below: Method ReButton() Redefine Button ::oMainBut[1] ID 600 of ::oDlg .... Redefine Button ::oMainBut[2] ...
by Antonio Linares
Wed Aug 27, 2008 7:44 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 65662

Browsing generally

... ), ; oWinDlg:GetCliRect():nBottom - nTop - nMsgHeight ; ) RETU NIL Maybe you should consider DIALOG metrics (borders, title-bar, etc.) and subtract them from total size. -------------------------------------------------------------------------------- Can anyone provide a sample piece of ...
by Antonio Linares
Wed Aug 27, 2008 7:35 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 65662

... fine. These orders and invoices often contained more than a hundred items, so recalculating by retotalling the entire list was too slow. The subtract/add method made it instant. Multiple users is another matter. I would not even try doing running totals with a list that was available for ...
by James Bott
Tue Jan 29, 2008 7:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Runing total in browse column
Replies: 8
Views: 1617

Instead of counting all the records each time, you can subtract the old value and add back the new value to get the new total. This the way I have done it. James, remember that an application can be used in a network by more than one user and in this ...
by Enrico Maria Giordano
Tue Jan 29, 2008 7:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Runing total in browse column
Replies: 8
Views: 1617

... the user to edit values in the browse, then you have to recalc the totals after each edit. Instead of counting all the records each time, you can subtract the old value and add back the new value to get the new total. This the way I have done it. Yes. And we should also remember to apply the difference ...
by nageswaragunupudi
Tue Jan 29, 2008 6:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Runing total in browse column
Replies: 8
Views: 1617

... the user to edit values in the browse, then you have to recalc the totals after each edit. Instead of counting all the records each time, you can subtract the old value and add back the new value to get the new total. This the way I have done it. Regards, James
by James Bott
Tue Jan 29, 2008 6:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Runing total in browse column
Replies: 8
Views: 1617

Re: height of taskbar

Yes, but you have to subtract the value returned by the API SystemParametersInfo() with the argument SPI_GETWORKAREA.

EMG
by Enrico Maria Giordano
Wed Apr 26, 2006 6:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: height of taskbar
Replies: 11
Views: 3282
Previous

Return to advanced search