AnsweredAssumed Answered

vrf FAQ - Date and Time calculation

Question asked by paul.fowler on Jul 23, 2008

You will get this error if you pass the wrong type to a dotNET method.
dotNET will look for an overload of the method that will accept the type you have provided - it doesn't find one therefore it reports that the method is not found.

I guess you are passing a VEE real type, like this:

a = now();
b = a - 3600;
System.DateTime.Compare(a, b);

You will need to cast your parameters to the appropriate dotNET type, using the VEE built-in function <asClrType>, like this:

a = now();
b = a - 3600;
a = asClrType(a, System.DateTime);
b = asClrType(b, System.DateTime);
System.DateTime.Compare(a, b);

Cheers
Paul F.





"GOH,ENN-DEE-ALEXANDER (A-Malaysia,ex1)" <enn-dee-alexander_goh@agilent.com>
Document Marked as Unclassified

"GOH,ENN-DEE-ALEXANDER (A-Malaysia,ex1)" <enn-dee-alexander_goh@agilent.com>

23/07/2008 11:02
Please respond to
"GOH,ENN-DEE-ALEXANDER (A-Malaysia,ex1)" <enn-dee-alexander_goh@agilent.com>

To
VRF <vrf@agilent.com>
cc
Subject
RE: [vrf]  FAQ - Date and Time calculation

     





I tried to use the system.datetime.compare function in the system menu but getting error; system.datetime.compare not found. I have added the mscorlib and system in the .net assembly references, anymore know if there are others that I need to load?

 

Thanks

 

-Alex

 

  _____  




From:Baranski, Detlef [mailto:Detlef.Baranski@pilkington.de]
Sent: Monday, July 14, 2008 6:50 PM
To: GOH,ENN-DEE-ALEXANDER (A-Malaysia,ex1); PDL-LISTS,VRF (A-Lists,unix1)
Subject: AW: [vrf] FAQ - Date and Time calculation

 

You may read the examples in the vee/examples folders to get a first hint.

or use the help function in VEE.

There are also some new capabilities within dotnet - have a look for the system menue.

As a 3rd alternative you will get some samples which were sent in the VRF before in this zip file...

 

Regarding pdf ....there is an example under activeX, or use the help with "PDF" ...there still seems to be some problems with Acrobat 7 or higher...

Hope it helps you ,

 

detlef

 

 

 

 

  _____  




Von:GOH,ENN-DEE-ALEXANDER (A-Malaysia,ex1) [mailto:enn-dee-alexander_goh@agilent.com]
Gesendet: Montag, 14. Juli 2008 12:28
An: VRF
Betreff: [vrf] Date and Time calculation

How can we do date and time calculations in VEE?

 

Thanks


Der Inhalt dieser E-Mail (inkl. aller Anlagen) ist vertraulich und ausschließlich für den Adressaten bestimmt. Jede Art der Verbreitung, Nutzung oder Vervielfältigung ist untersagt. Sollten Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen die E-Mail.

Unternehmensangaben der Gesellschaften mit Sitz in Deutschland:

Pilkington Holding GmbH, Haydnstraße 19, 45884 Gelsenkirchen
Sitz: Gelsenkirchen, Amtsgericht Gelsenkirchen HRB 8997
Geschäftsführung: Dr. Clemens Miller (Vorsitz), Jochen Settelmayer, Thomas Kretschmann, Robert Hales
Vorsitzender des Aufsichtsrates: Dr. Axel Wiesener

Pilkington Deutschland AG, Haydnstraße 19, 45884 Gelsenkirchen
Sitz: Gelsenkirchen, Amtsgericht Gelsenkirchen HRB 2707
Vorstand: Dr. Clemens Miller, Jochen Settelmayer
Vorsitzender des Aufsichtsrates: Dr. Axel Wiesener

Pilkington Automotive Deutschland GmbH, Otto-Seeling-Straße 7, 58455 Witten
Sitz: Witten, Amtsgericht Bochum HRB 8443
Geschäftsführung: Thomas Kretschmann
Vorsitzender des Aufsichtsrates: Jochen Settelmayer

Bauglasindustrie GmbH, Hüttenstraße 33, 66839 Schmelz / Saar
Sitz: Schmelz / Saar, Amtsgericht Saarbrücken HRB 52020
Geschäftsführung: Manfred Ebbers

---
You are currently subscribed to vrf as: Paul.Fowler@raytheon.co.uk
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com".  
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
--- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".  

Outcomes