Variable Management Functions

Variable Management

FieldBlock Return a code block that sets/gets a value for a given field
FieldWBlock Return a sets/gets code block for field in a given work area
HB_AParams Returns an array containing values of all parameters passed to a function, method or procedure
HB_ArgC Returns the number of command line arguments
HB_ArgCheck Checks existence of an internal switch on the command line
HB_ArgShift Updates HB_Arg* parameter list removing the 1-st one and replacing it by others
HB_ArgString Retrieves the vale of an internal switch set on the command line.
HB_ArgV Retrieves the value of a command line argument
HB_PIsByRef Determine if a parameter is passed by reference.
HB_PValue Retrieves the value of an argument.
HB_ValToStr Converts any scalar type to a string.
MemVarBlock Returns a codeblock that sets/gets a value of memvar variable
PCount Retrieves the number of arguments passed to a function.
Type Retrieves the type of an expression
ValType Retrieves the data type of an expression

__mvExist()

Template

Function

Name

__mvExist()

Category

API

Subcategory

Variable management

Oneliner

Determine if a given name is a PUBLIC or PRIVATE memory variable

Syntax

      __mvExist( <cVarName> )  --> <lVariableExist>

Arguments

<cVarName> – string that specifies the name of variable to check

Returns

__mvExist() return TRUE (.T.) if a MEMVAR named <cVarName> exist.

Description

This function determine if a PUBLIC or PRIVATE variable with the name <cVarName> exist or not.

Examples

      LOCAL   TheLocal
      STATIC  TheStatic
      PUBLIC  ThePublic
      PRIVATE ThePrivate
      ? __mvExist( "NotExist"   )        // .F.
      ? __mvExist( "TheLocal"   )        // .F.
      ? __mvExist( "TheStatic"  )        // .F.
      ? __mvExist( "ThePublic"  )        // .T.
      ? __mvExist( "ThePrivate" )        // .T.

Compliance

Harbour

Seealso

MEMVAR, PRIVATE, PUBLIC

Files

Library is core