Units | Class Hierarchy | Classes, Interfaces and Objects | Types | Variables | Constants | Functions and Procedures | Identifiers

# Class TIFPSValueReplace

## Unit

ifpscomp

## Declaration

`type TIFPSValueReplace = class(`TIFPSValue`)`

## Description

TIFPSValueReplace is used internally by the script engine when it needs to replace a value with something else, usually when writing the byte code

## Hierarchy

`TIFPSValue`

## Methods

### Overview

| `constructor Create;`
| `destructor Destroy; override;`

### Description

| `constructor Create;`

| `destructor Destroy; override;`

## Properties

### Overview

| `property FreeNewValue: Boolean;`
| `property FreeOldValue: Boolean;`
| `property NewValue: TIFPSValue;`
| `property OldValue: TIFPSValue;`
| `property PreWriteAllocated: Boolean;`
| `property ReplaceTimes: Longint;`

### Description

| `property FreeNewValue: Boolean;`

Should it free the new value when destroyed?

| `property FreeOldValue: Boolean;`

Should it free the old value when destroyed?

| `property NewValue: TIFPSValue;`

The new value

| `property OldValue: TIFPSValue;`

The old value

| `property PreWriteAllocated: Boolean;`

This is true when this value is allocated in the PreWriteOutput function

| `property ReplaceTimes: Longint;`

The number of times this variable should have been replaced