It seems, that the issue is triggered by the last assignment of Var1, which is a record with no fields in it.
If instead you erase Var1, the problem goes away.
/Sren
-----Original Message-----
From: ext Shawn Fessenden [mailto:shawn@testech-ltd.com]
Sent: 2005-02-28 13:53
To: VRF
Subject: RE: [vrf] Problems with variant containing record
> Can anyone figure this one out?
Not me. Check this out:
If you add a formula "Var1 = asVariantEmpty(0)" at the top, it runs multiple times. But to get it to run the first time (after running it as your original post), you have to change the scope from "Global" to "Local to function" and back again.
IOW, run it once. Run it twice: error. Add "asVariantEmpty(0)". Change scope from Global to Local. Change scope back to Global. Run. Run. Run. Run. Very strange.
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
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".
If instead you erase Var1, the problem goes away.
/Sren
-----Original Message-----
From: ext Shawn Fessenden [mailto:shawn@testech-ltd.com]
Sent: 2005-02-28 13:53
To: VRF
Subject: RE: [vrf] Problems with variant containing record
> Can anyone figure this one out?
Not me. Check this out:
If you add a formula "Var1 = asVariantEmpty(0)" at the top, it runs multiple times. But to get it to run the first time (after running it as your original post), you have to change the scope from "Global" to "Local to function" and back again.
IOW, run it once. Run it twice: error. Add "asVariantEmpty(0)". Change scope from Global to Local. Change scope back to Global. Run. Run. Run. Run. Very strange.
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
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".
<b><span style='font-weight:bold'>Sent:</span></b> 28 February 2005 11:21
<b><span style='font-weight:bold'>To:</span></b> VRF
<b><span style='font-weight:bold'>Subject:</span></b> RE: [vrf] ProgramMis-behaving</span></font><o:p></o:p></p></div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>VEE does not handle UNICODE languages verywell. It could be you are getting strange characters back if thelanguages settings and region settings are <st1:country-region w:st="on"><st1:place w:st="on">Japan</st1:place></st1:country-region>.</span></font><o:p></o:p></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>I have seen similar problems with <st1:country-regionw:st="on">Japan</st1:country-region> and <st1:country-region w:st="on"><st1:place w:st="on">China</st1:place></st1:country-region> settings. I think youshould setup your PC with the same language/region settings that thecustomer has and then test your program.</span></font><o:p></o:p></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>This could be your problem.</span></font><o:p></o:p></p><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p></div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Adam Kohler<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Software Test<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>EPSG<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Agilent Technologies<o:p></o:p></span></font></p><p class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Scotland</span></font></st1:place></st1:country-region><o:p></o:p></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>tel net 313 5327<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>t +44 131 335 7327<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>e adam_kohler@agilent.com<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p><div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p></div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p><div class=MsoNormal align=center style='text-align:center'><font size=3face="Times New Roman"><span style='font-size:12.0pt'><hr size=2 width="100%" align=center tabIndex=-1></span></font></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><spanstyle='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><fontsize=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> AmrikSekhon [mailto:Amrik.Sekhon@GeePlus.biz]
<b><span style='font-weight:bold'>Sent:</span></b> 28 February 2005 09:53
<b><span style='font-weight:bold'>To:</span></b> VRF
<b><span style='font-weight:bold'>Subject:</span></b> [vrf] ProgramMis-behaving</span></font><o:p></o:p></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Hi VRF<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I recently deployed my test program into the field,however It has developed a problem. <o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I am using an agilent psu and have a routine in mysoftware that increments the current in steps of 0.1A from 0.9 to 1.6. I amusing GPIB control.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>All through development the past year this routinehas worked fine here in the <st1:place w:st="on"><st1:country-region w:st="on">uk</st1:country-region></st1:place>.Once the test rig was setup on site in japan, this routine has developed abizarre quirk. It frequently jumps one of the steps, this is usually the jumpfrom 1.1 to 1.2, the psu or the software does not register the 1.2A value, sothe step sequence should be 1.1, 1.2, 1.3 but this is what happens 1.1, 1.3.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I tried some simple fixes like re-compiling theruntime, this cured the problem but it has surfaced again. I have triedre-writing that part of the code but again this has not solved the problem.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>All the equipment is the same, there have been nohardware or software changes, so I am left confused.<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Any Help would be appreciated<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Cheers<o:p></o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p><p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Amrik<o:p></o:p></span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>---
You are currently subscribed to vrf as: adam_kohler@agilent.com
To subscribe send a blank email to"join-vrf@it.lists.it.agilent.com".
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".<o:p></o:p></span></font></p><p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005</span></font><o:p></o:p></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>---
You are currently subscribed to vrf as: amrik.sekhon@geeplus.biz
To subscribe send a blank email to"join-vrf@it.lists.it.agilent.com".
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".<o:p></o:p></span></font></p></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html><BR><P><FONT SIZE=2>--<BR>No virus found in this incoming message.<BR>Checked by AVG Anti-Virus.<BR>Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005<BR></FONT> </P><BR><P><FONT SIZE=2>--<BR>No virus found in this outgoing message.<BR>Checked by AVG Anti-Virus.<BR>Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005<BR></FONT> </P>