xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_VMExecute()

Executes a PCode string.

Syntax

HB_VMExecute( <cPCode> ) --> xValue

Arguments

<cPCode>
This is a character string holding the PCode sequence(s) to execute. It must be created with function HB_MacroCompile().

Return

The function returns the result of the last PCode instruction of <cPCode>.

Description

Function HB_VMExecute() passes a character string of PCode instructions to xHarbour's virtual machine which executes the PCode. The string <cPCode> must be created with HB_MacroCompile(). The return value depends on the last PCode instruction within <cPCode>.

Info

See also:& (macro operator), Eval(), HB_MacroCompile()
Category: Indirect execution , xHarbour extensions
Source:vm\hvm.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe