Harbour Reference Guide

 

__MVPUT()

This function set the value of memory variable

Syntax

__MVGET( <cVarName> [, <xValue>] ) --> <xValue>

Arguments

<cVarName> - string that specifies the name of variable <xValue> - a value of any type that will be set - if it is not specified then NIL is assumed

Returns

<xValue> A value assigned to the given variable.

Description

This function sets the value of PRIVATE or PUBLIC variable if this variable exists otherwise it generates a runtime error. The variable is specified by its name passed as the function parameter. If a value is not specified then the NIL is assumed
Examples
      FUNCTION MEMVARBLOCK( cMemvar )
      RETURN {|x| IIF( PCOUNT()==0, __MVGET( cMemvar ),;
      __MVPUT( cMemvar, x ) ) }
Status

Ready

Compliance

This function is a Harbour extension

Files

Library is vm

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/06/26