HB_IsByRef()

HB_ISBYREF()

Determine if a variable is passed by reference.

Syntax

      HB_ISBYREF( @<Var> ) --> <lVarIsByRef>

Arguments

@<Var> is the variable to test; it must be passed by reference.

Returns

<lVarIsByRef> a logical value indicating if the variable is passed by reference to actual function or procedure.

Description

This function return a logical value indicating if the variable is passed by reference to actual function or procedure.

ATTENTION: The variable to test must be passed by reference. If the variable is not passed by reference, the function return NIL. This function is based on the form that Harbour manages to the variables for reference. When a variable is passed by reference, what receives the function or procedure is, a pointer to the previous variable, be this the container variable of the data or a pointer to another variable. The function observes if the variable passed points to a common variable or to a variable passed by reference.

Examples

      See Tests

Tests

      PROCEDURE Main()
         LOCAL cVar := "Test local"
         PRIVATE nVar := 0

         Test( @cVar, @nVar, cVar, nVar )
         RETURN

      PROCEDURE Test( Arg1, Arg2, Arg3, Arg4 )
         ? hb_isbyref( @Arg1 )        // .T.
         ? hb_isbyref( @Arg2 )        // .T.
         ? hb_isbyref( @Arg3 )        // .F.
         ? hb_isbyref( @Arg4 )        // .F.
         RETURN

Compliance

Harbour

Files

Library is rtl

Seealso

VALTYPE()

HB_INETACCEPT()

HB_INETACCEPT()

Wait until a socket is ready

Syntax

      HB_INETACCEPT( <socket> ) -> SOCKET

Arguments

An INET socket

Returns

<socket> a socket previously created / opened

Description

Waits until a connection is available on a socket created with hb_InetServer, returns a socket that can be used to communicate with the incoming client.

On error, NIL is returned and error code sets in the passed SOCKET.

This error can be accessed using hb_InetErrorCode() function.

Compliance

Harbour

HB_HSETCASEMATCH()

HB_HSETCASEMATCH()

Sets the ‘case match’ flag for the hash table

Syntax

      HB_HSETCASEMATCH( <hsTable>, [<lFlag>] ) -> <hsTable>

Arguments

<hsTable> a hash table, created by HB_HASH()

<lFlag> a logical value indicating to turn on or off the ‘case match’ flag of the hash table

Returns

The hash table

Description

This function is equivalent to HB_HCASEMATCH() but it returns the passed hash table rather than the old flag value

Examples

      LOCAL hsTable
      // turn 'case match' on for a new hash table
      hsTable := hb_HSetCaseMatch( { "one" => 1, "two" => 2 }, .T. )

Compliance

Harbour

Seealso

HB_HCASEMATCH(), HB_HSETAUTOADD(), HB_HSETBINARY

HB_HSETBINARY()

HB_HSETBINARY()

Sets the ‘binary’ flag for the hash table

Syntax

      HB_HSETBINARY( <hsTable>, [<lFlag>] ) -> <hsTable>

Arguments

<hsTable> a hash table, created by HB_HASH()

<lFlag> a logical value indicating to turn on or off the ‘binary’ flag of the hash table

Returns

The hash table

Description

This function is equivalent to HB_HBINARY() but it returns the passed hash table rather than the old flag value

Examples

      LOCAL hsTable
      // turn 'binary' on for a new hash table
      hsTable := hb_HSetBinary( { "one" => 1, "two" => 2 }, .T. )

Compliance

Harbour

Seealso

HB_HBINARY(), HB_HSETAUTOADD(), HB_HSETCASEMATCH

HB_HSETAUTOADD()

HB_HSETAUTOADD()

Sets the ‘auto add’ flag for the hash table

Syntax

      HB_HSETAUTOADD( <hsTable>, [<lFlag>] ) -> <hsTable>

Arguments

<hsTable> a hash table, created by HB_HASH()

<lFlag> a logical value indicating to turn on or off the ‘auto add’ flag of the hash table

Returns

The hash table

Description

This function is equivalent to HB_HAUTOADD() but it returns the passed hash table rather than the old flag value

Examples

      LOCAL hsTable
      // turn 'auto add' on for a new hash table
      hsTable := hb_HSetAutoAdd( { "one" => 1, "two" => 2 }, .T. )

Compliance

Harbour

Seealso

HB_HAUTOADD(), HB_HSETBINARY(), HB_HSETCASEMATCH()

HB_ANSITOOEM()

HB_ANSITOOEM()

Convert a windows Character to a Dos based character

Syntax

      HB_ANSITOOEM( <cString> ) --> cDosString

Arguments

<cString> Windows ansi string to convert to DOS oem String

Returns

<cDosString> Dos based string

Description

This function converts each character in <cString> to the corresponding character in the MS-DOS (OEM) character set. The character expression <cString> should contain characters from the ANSI character set. If a character in <cString> doesn’t have a MS-DOS equivalent, the character is converted to a similar MS-DOS character.

Examples

      ? HB_OEMTOANSI( "Harbour" )

Compliance

Harbour

Platforms

Win

Files

Library is rtl

Seealso

HB_OEMTOANSI()

Harbour All Functions – H

HardCR

HBClass()

HB_ANSITOOEM()

hb_At

hb_cdpSelect

HB_ColorIndex

HB_DiskSpace

HB_EOL

HB_FEof

hb_FLock

hb_FUnlock

hb_gcAll
hb_gcAlloc
hb_gcCollectAll
hb_gcFree
hb_gcItemRef

hb_GetEnv

hb_HAllocate

hb_Hash
hb_HAutoAdd
hb_HBinary
hb_HCaseMatch
hb_HClone
hb_HCopy
hb_HDefault
hb_HDel
hb_HDelAt
hb_HEval
hb_HFill
hb_HGet
hb_HGetDef
hb_HHasKey
hb_HKeyAt
hb_HKeys
hb_HMerge
hb_HPairAt
hb_HPos
hb_HScan
hb_HSet

hb_HSetAutoAdd()
hb_HSetBinary() 
hb_HSetCaseMatch()

hb_HSort
hb_HValueAt
hb_HValues

hb_idleAdd
hb_idleDel
hb_idleState

hb_inetAddress
hb_inetCleanup
hb_inetClearError
hb_inetClearPeriodCallback
hb_inetClearTimeLimit
hb_inetClearTimeout
hb_inetClose
hb_inetConnect
hb_inetConnectIP
hb_inetCount
hb_inetCreate
hb_inetCRLF
hb_inetDataReady
hb_inetDGram
hb_inetDGramBind
hb_inetDGramRecv
hb_inetDGramSend
hb_inetErrorCode
hb_inetErrorDesc
hb_inetFD
hb_inetGetAlias
hb_inetGetHosts
hb_inetGetRcvBufSize
hb_inetGetSndBufSize
hb_inetInit
hb_inetIsSocket
hb_inetPeriodCallback
hb_inetPort
hb_inetRecv
hb_inetRecvAll
hb_inetRecvEndblock
hb_inetRecvLine
hb_inetSend
hb_inetSendAll
hb_inetServer
hb_inetSetRcvBufSize
hb_inetSetSndBufSize
hb_inetstatus
hb_inetTimeLimit
hb_inetTimeout

HB_IsByRef()

hb_keyPut

hb_langErrMsg
hb_langMessage
hb_langName
hb_langSelect

hb_mathErBlock
hb_mathErMode
hb_mathGetErrMode
hb_mathGetHandler
hb_mathGetLastError
hb_mathIsMathErr
hb_mathResetError
hb_mathSetErrMode
hb_mathSetHandler

hb_MemoRead
hb_MemoWrit

hb_RAt

hb_PIsByRef

hb_PValue

hb_SetKeyCheck
hb_SetKeyGet
hb_SetKeySave

hb_setListenerAdd

hb_setListenerNotify
hb_setListenerRemove

hb_SetMacro

hb_Translate

hb_ValToStr

Header

HexaToDec