Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
iconfalse
titleIntroduction

In this example, we show how to use DataAccess API to write some value from one project, to another one.

What is DataAccess?

DataAccess is an API that empowers you with the capability to access classes and methods, facilitating communication between projects. This API also empowers developers to create external programs within Visual Studio, enabling them to effectively interact with a specific project.

...

Script

Code Block
languagec#
	string remoteIP = "127.0.0.1";
	object server = null;
		DataAccess access = new DataAccess();
		 
		 server = access.SetServer(remoteIP, "Administrator", "");
		 if (server is string)
		 {
		 	@Info.Trace("OfficeServices::Connect - Error: " + server);
		 	access = null;
		 }

    bool sus = access.SetCurrentValue("Tag1", 123, 192, DateTime.UtcNow, server, 0, false);

...