Search found 95 matches: odd

Return to advanced search

abnornal program termination

... Main( cPortName ) LOCAL cBuff:=SPACE(8000) Local cCom :=cPortName LOCAL I Local nBaudeRate:=9600 Local ndatabits :=8 Local nparity :=0 //0NONE, 1 Odd, 2Even Local nstopbit :=1 Local cRead :="" Local cBuffer :=SPACE(512) Local cRes :="" DEFAULT cPortName:="COM3" IF ...
by jnavas
Mon Oct 03, 2022 4:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: abnornal program termination
Replies: 7
Views: 764

Re: even numbers and odd numbers

As old school programmer
Code: Select all  Expand view
function IsEvenNumber( n )
return ( hb_bitand(n,1)  == 0 )
by AntoninoP
Tue Mar 15, 2022 2:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: even numbers and odd numbers
Replies: 3
Views: 264

Re: even numbers and odd numbers

nageswaragunupudi wrote:
Code: Select all  Expand view

function IsEvenNumber( n )
return ( ( n % 2 ) == 0 )
 


thanks
by Silvio.Falconi
Tue Mar 15, 2022 10:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: even numbers and odd numbers
Replies: 3
Views: 264

Re: even numbers and odd numbers

Code: Select all  Expand view

function IsEvenNumber( n )
return ( ( n % 2 ) == 0 )
 
by nageswaragunupudi
Tue Mar 15, 2022 9:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: even numbers and odd numbers
Replies: 3
Views: 264

even numbers and odd numbers

is there a function to check if a number is even or odd?
thanks
by Silvio.Falconi
Tue Mar 15, 2022 9:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: even numbers and odd numbers
Replies: 3
Views: 264

Re: error handler acting odd

I found my problem thanks to your help, Antonio.

I trust all is well with you and wishing you the best.

Thank you.
Don
by don lowenstein
Tue Jul 21, 2020 4:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: error handler acting odd
Replies: 3
Views: 449

Re: error handler acting odd

A simpler way is to compare the codeBlocks:

Code: Select all  Expand view
function Main()

   local bErrorBlock := { || nil }
   
   ? bErrorBlock == ErrorBlock()
   
return nil
by Antonio Linares
Tue Jul 21, 2020 4:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: error handler acting odd
Replies: 3
Views: 449

Re: error handler acting odd

Don, Harbour uses function ErrorBlock( bNewErrorBlock ) --> bPreviousErrorBlock to set/retrieve the errorblock. As it uses a codeBlock as the param there is no way to retrieve the used function from the codeBlock. Anyhow, you can use the function __vmItemId( codeBlock ) to check the codeblock uni...
by Antonio Linares
Tue Jul 21, 2020 3:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: error handler acting odd
Replies: 3
Views: 449

error handler acting odd

My error handler seems to be odd. this just recently began. It's not staying set on my default handler. Is there a way to view the current error handler's target function it is currently set to? Windows 10 MS-Visual C++ version 19 Harbour ...
by don lowenstein
Mon Jul 20, 2020 10:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: error handler acting odd
Replies: 3
Views: 449

Re: Consultar DNI o CUIT en Argentina (Solucionado)

asi lo hago yo quizas te sirve para apuntar directamente allí If '<tr class="odd"><th>Nombre</th>' $ cTextoHTML DatNom=allTrim( substr( cTextoHTML, at( '<tr class="odd"><th>Nombre</th><td>', cTextoHTML ...
by postinelli
Thu Nov 28, 2019 10:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consultar DNI o CUIT en Argentina (Solucionado)
Replies: 8
Views: 1753

Re: Unicode characters displaying as ANSI on windows title bar

Thank you for testing. Very odd. Which compiler are you using? I'm only using msvc and msvc64, I should have made that clear. Also, I don't see it happening on the child windows, only the main window. Which tells me the main window is ...
by cnavarro
Thu Jul 05, 2018 6:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Unicode characters displaying as ANSI on windows title bar
Replies: 11
Views: 2245

Re: Unicode characters displaying as ANSI on windows title bar

Thank you for testing. Very odd. Which compiler are you using? I'm only using msvc and msvc64, I should have made that clear. Also, I don't see it happening on the child windows, only the main window. Which tells me the main window is getting ...
by rhlawek
Thu Jul 05, 2018 6:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Unicode characters displaying as ANSI on windows title bar
Replies: 11
Views: 2245

Menus and Menubar Painting errors

... B) 2nd Menu item is too much left justified. C) The gap (Horizontal or Vertical) between the menu items is not common always and it is looking odd. I often use 2007 clause in my applications to paint menus or paint default windows theme Hope this is taken care soon. My best Regards, -Ramesh ...
by RAMESHBABU
Sat Apr 28, 2018 1:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Menus and Menubar Painting errors
Replies: 3
Views: 1182

Re: xBrowse footer counting on cell / field-condition ?

... shows the number of cases where the name contains "A". Footer of "Age" shows the number of cases where age is ODD. Footer of "Salary" shows the total of Salary drawn where MARRIED is FALSE. Please recheck your program
by nageswaragunupudi
Wed Mar 07, 2018 8:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse footer counting on cell / field-condition ?
Replies: 12
Views: 2718

Re: Duplex Printing

... directly to the printer. I am hoping that I can print Portrait on the front side of the two sided document, and Landscape on the other side. Odd I have never come across this in all the years of Fivewinning. Thanks,
by byron.hopp
Tue Feb 14, 2017 12:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Duplex Printing
Replies: 3
Views: 873
Next

Return to advanced search