2012-06-05 00:43 UTC+0200 Viktor Szakats (harbour syenar.net)

* src/rtl/radiogrp.prg
    % deleted '#include "common.ch"'

  * contrib/hbtip/sessid.prg
    ! playing it safe: using simple IF/ENDIF instead of HB_DEFAULT() 
      on a multi-type variable

    ; NOTE: One more implication of HB_DEFAULT vs. DEFAULT ... TO ...
            is that the default expression is always evaluated with
            the former.
This commit is contained in:
Viktor Szakats
2012-06-04 22:43:50 +00:00
parent 5633f2b4f3
commit 23d0e32411
3 changed files with 20 additions and 4 deletions

View File

@@ -16,6 +16,18 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-05 00:43 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/radiogrp.prg
% deleted '#include "common.ch"'
* contrib/hbtip/sessid.prg
! playing it safe: using simple IF/ENDIF instead of HB_DEFAULT()
on a multi-type variable
; NOTE: One more implication of HB_DEFAULT vs. DEFAULT ... TO ...
is that the default expression is always evaluated with
the former.
2012-06-05 00:18 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib\hbblat\tests\blatcmd.prg
* contrib\hbblat\tests\blattest.prg

View File

@@ -60,8 +60,6 @@
*
*/
#include "common.ch"
#define SID_LENGTH 25
#define BASE_KEY_STRING "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define CRC_KEY_STRING "Ak3yStR1Ng" // Max Length must be 10 chars

View File

@@ -426,7 +426,10 @@ METHOD select( xValue ) CLASS RADIOGROUP
FOR nPos := 1 TO nLen
IF ::aItems[ nPos ]:data == xValue
hb_default( @::xBuffer, "" )
IF ::xBuffer == NIL
::xBuffer := ""
ENDIF
::changeButton( ::nValue, nPos )
EXIT
@@ -439,7 +442,10 @@ METHOD select( xValue ) CLASS RADIOGROUP
ELSEIF cType == "N" .AND. xValue >= 1 .AND. xValue <= ::nItemCount
hb_default( @::xBuffer, 0 )
IF ::xBuffer == NIL
::xBuffer := 0
ENDIF
::changeButton( ::nValue, xValue )
ENDIF