compared with
Version 5 by Darren Fraser
on Oct 24, 2008 06:05.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
# Use the following code to connect to the server and create an internal analog point.

{code} {noformat}
string sSystem = "MAIN";
string sUid = "Eng";
// Define the object and create a new internal analog point
ScxV6DbClient.ScxV6Object obj = objServer.CreateObject("CPointAlgManual", "$Root");
{code} {noformat}
Note: You can download the free Visual C# 2005 Express Edition (along with other languages) from the Microsoft website. This can be used for commercial software development (see [http://msdn.microsoft.com/en-gb/express/aa718399.aspx] point 4).


In VB.Net the compiler will do the plumbing for you automatically. In C# you currently need to use reflection manually, as shown in the example below.
{code} {noformat}
// Get object
ScxV6DbClient.ScxV6Object O = S.FindObject( "New Analogue Point" );
if ( Historic != null )
Historic.GetType().InvokeMember( "LoadDataValues", System.Reflection.BindingFlags.InvokeMethod, null, Historic, new object[] { Values, Times, Qualities } );
{code} {noformat}