Attached Files
Your Products have been synced, click here to refresh
ASSIGN/V1=GETPROGRAMINFO("DATE") ASSIGN/V2=GETPROGRAMINFO("TIME")
Dim MyTime MyTime = Time ' Return current system time. Dim MyDate MyDate = Date ' MyDate contains the current system date. Dim Today Today = Now ' Assign current system date and time.
class Program { // Define the delegate and event public delegate void OnReportPrintStartDelegate(PartProgram PartProg, DateTime eventDateTime); public event OnReportPrintStartDelegate OnReportPrintStart; static void Main(string[] args) { // Your main program code here... dynamic App = Activator.CreateInstance(Type.GetTypeFromProgID("Pcdlrn.Application")); dynamic PartProg = App.ActivePartProgram; // Raise the event and pass the current date and time as an argument OnReportPrintStart?.Invoke(PartProg, DateTime.Now); } }
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |