Goto http://www.stucuk.netGoto http://www.atlanticaonlinewiki.comGoto http://www.game-requirements.com

Replace

From Original War Support Wiki

Jump to: navigation, search

SAIL Functions/R -> Replace


Contents

Description

Replaces the value the specified place in the specified list with the specified value. Returns the modified list.

Template

Replace(list, index_value, new_value);

list - The list in which you want to replace a value
index_value - An integer defining which place (“index number”) in the specified list you want to replace the existing value with the new value
new_value - The value with which you want to replace the other value

Example

Export ow_list;

Every 0$5 do
  begin
    ow_list = [3,1,7,22];
    Wait(0$1);
    ow_list = Replace(ow_list,3,11);
  end;

Now "ow_list" holds this list: [3,1,11,22]

See also

Personal tools
Clanbase
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Cannot contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.