Hi,
i want return with void array and use it with pml.
For example:
[PMLNetCallable]
public ArrayList hello ()
{
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/k arp -a && exit";
p.Start();
string output = p.StandardOutput.ReadToEnd();
string[] result = output.Split(' ');
ArrayList result1 = new ArrayList(result.Length);
result1.AddRange(result);
return result1;
}
but i think a ArrayList type is not valable for return to pml?
IMPORT 'NAME OF DLL'
handle (1000,0)
endhandle
USING NAMESPACE 'NAME OF NAMESPACE'
!A = OBJECT PMLClassTest()
!test = !A.hello()
I think it is good also if you could contribute your idea and knowledge on PDMS C# in this PDMSworld forum... instead of hoping people to joint and ask question in linkedin group .. I mean the other option of sharing knowledge and help others via the website....
I think it is good also if you could contribute your idea and knowledge on PDMS C# in this PDMSworld forum... instead of hoping people to joint and ask question in linkedin group .. I mean the other option of sharing knowledge and help others via the website....
;-)..cheers!!!
Unfortunately, on this forum there is no section devoted to programming in C #. Therefore, the information is scattered. When the information is in one place, it is easier to search. :smile-new:
Unfortunately, on this forum there is no section devoted to programming in C #. Therefore, the information is scattered. When the information is in one place, it is easier to search. :smile-new:
I really hope the Administrator of AVEVA world forum will create new title for PDMS C# discussion...
most of people also asking same question to AVEVA world Administrator.. but till now they didn't do anything yet.
hope in near future AVEVA team will make that happen..