DCS use

From Catglobe Wiki
Revision as of 10:06, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



DCS_use

Change the context of using DCS

Syntax

DCS_use(dcsResourceId)

Arguments

  • dcsResourceId: is a number

Return value

empty

Example

number dcsResourceId1 = DCS_getCurrentDcsResourceId();

number dcsResourceId2 = 123456;

//Script 1

DCS_use(dcsResourceId2);

print(average("Single2") where true);

createFrequenceDiagram("Single2");

//Script 2

//DCS_use(dcsResourceId1);

//print(average("Single2") where true);

//createFrequenceDiagram("Single2");

/*

Explanation:

1.Script 1 will run with DCS context is DCS2

2.Script 2 will fail because DCS context is DCS1 but column Single2 does not belong to this DCS

*/

Availability

Version 5.8