Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DCS use: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Tungocman (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:Data_Cache_Functions]]
[[Category:Data_Cache_Functions]]
{{HelpFiles}}
=DCS_use=
 
====DCS_use====


Change the context of using DCS
Change the context of using DCS
Line 49: Line 47:


<nowiki>*/</nowiki>
<nowiki>*/</nowiki>
'''Availability'''
Version 5.8
__NOTOC__
__NOTOC__
<!-- imported from file: 7586.htm-->
<!-- imported from file: 7586.htm-->

Latest revision as of 10:19, 21 December 2011

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

*/