完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
>那么是ADO还是VEE?
我很确定它的VEE。 像VB和.Net这样的ADO使用OLE自动化日期格式(OADate)。 >来自MDSN-Website:“OLE自动化日期实现为浮点数,其值为1899年12月30日午夜的天数。”如果在VB中使用ADO并使用R = Recordset读出日期字段 (“DateField”)和R被定义为一个实际值,你可以看到R是OADate格式。但是在VEE中做同样的事情给了我们一个VEE日期格式的真实值(自00:00开始的秒数) 公元0001年1月1日)所以必须在某处从OADate转换到VEEDate。 还有虫子! 这是VEE!有趣的是,如果你在VEE中执行以下(无意义)操作:Recordset(“DateField”)= Recordset(“DateField”)来读出字段值并将其写回,不会发生错误。 使用变量来存储读数很糟糕:X = Recordset(“DateField”)Recordset(“DateField”)= X我们在夏令时添加当前时区偏移量(不是我在第一封邮件中写的'节省时间') 显然日期转换不会发生在第一条指令中>或者它是愚人节的笑话? 格奥尔格回答乔治安德鲁? 并且>当我们在数据库中讨论> DbDatetime字段时,他正在说文件系统? 我觉得我们做错了!> -SHAWN-呵呵,这让你感到困惑? 所以你背叛自己是一个机器人,是吗?不,正如安德鲁写的那样,他观察到了与文件系统不同的夏令时相关效果。 但这与这个VEE bug无关.GeorgGeorg Nied Software-Development Hansestr。 7 51149科隆德国电话:+49(2203)9770915传真:+49(2203)9770924电子邮件:info@gn-software.de---您目前订阅了vrf:r***@soco.agilent.com订阅发送 一封空白的电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件 ,发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 > So is it ADO or is it VEE? I'm pretty sure its VEE. ADO like VB and .Net uses the OLE Automation Date Format (OADate). >From MDSN-Website: "An OLE Automation date is implemented as a floating-point number whose value is the number of days from midnight, 30 December 1899." If you use ADO in VB and read out the date field with R=Recordset("DateField") and R being defined as a real value you can see that R is of the OADate format. But doing the same in VEE gives us a real value that is in VEE Date Format ( number of seconds since 00:00 hours 1 January 0001 AD) So there must be a conversion from OADate to VEEDate somewhere. And there is the bug! And this is VEE! Interestingly if you do the following (senseless) operation inside VEE: Recordset("DateField")=Recordset("DateField") to read out the field value and write it back, no error occurs. Using a variable to store the readout sucks: X=Recordset("DateField") Recordset("DateField")=X Here we add the current timezone offset when in daylight saving time (not 'time saving' as I wrote in my first mail ) Obviously the date conversion does not take place in the first instruction > Or is it an April Fools joke? So Georg is replying to Georg as Andrew? And > he's saying something about the file system when we're talking about a > DbDateTime field in a database? I think we done been spoofered! > -SHAWN- Hehe, that confuses you? So you betray yourself being a Bot, huh? No, as Andrew wrote, he had observed a different daylight saving time related effect regarding the file system. But that has nothing to do with this VEE bug. Georg Georg Nied Software-Development Hansestr. 7 51149 Cologne Germany Tel: +49 (2203) 9770915 Fax: +49 (2203) 9770924 E-Mail: info@gn-software.de --- You are currently subscribed to vrf as: r***@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". |
|
相关推荐
6个回答
|
|
嗨,我有一个u***-to-serial转换器和vee(hp vee 5.01)的问题。总是正常工作,但是当我在vee中使用转换器(作为简单的串口)时,经过几个小时的窗口
报告访问违规。这个错误只在我真正读取数据时使用(使用“直接i / o”对象)。有人听说过这个问题吗? - 感谢您的回答!再见,philip ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf@it.lists.it.agilent.com”。 取消订阅会发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 hi, i've got a problem with an u***-to-serial converter and vee (hp vee 5.01). it always works correct, but when i'm using the converter in vee (as a simple serial port), after some hours windows reports an access violation. this error only accours when i'm really reading data (using a "direct i/o" object). anybody heard about that problem? - thanks for your answers! bye, philip --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] 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". |
|
|
|
嗨,我有一个u***-to-serial转换器和vee(hp vee 5.01)的问题。总是正常工作,但是当我在vee中使用转换器(作为简单的串口)时,经过几个小时的窗口
报告访问违规。这个错误只在我真正读取数据时使用(使用“直接i / o”对象)。有人听说过这个问题吗? - 感谢您的回答!再见,philip ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf@it.lists.it.agilent.com”。 取消订阅会发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 hi, i've got a problem with an u***-to-serial converter and vee (hp vee 5.01). it always works correct, but when i'm using the converter in vee (as a simple serial port), after some hours windows reports an access violation. this error only accours when i'm really reading data (using a "direct i/o" object). anybody heard about that problem? - thanks for your answers! bye, philip --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] 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". |
|
|
|
嗨,我有一个u***-to-serial转换器和vee(hp vee 5.01)的问题。总是正常工作,但是当我在vee中使用转换器(作为简单的串口)时,经过几个小时的窗口
报告访问违规。这个错误只在我真正读取数据时使用(使用“直接i / o”对象)。有人听说过这个问题吗? - 感谢您的回答!再见,philip ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf@it.lists.it.agilent.com”.To 取消订阅会发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 hi, i've got a problem with an u***-to-serial converter and vee (hp vee 5.01). it always works correct, but when i'm using the converter in vee (as a simple serial port), after some hours windows reports an access violation. this error only accours when i'm really reading data (using a "direct i/o" object). anybody heard about that problem? - thanks for your answers! bye, philip --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] 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". |
|
|
|
如果您使用的是VEE Pro 7.0,则可以使用.NET methodSystem.Int16.Parse(文本值)。
如果text包含任何非数字字符,则会生成VEE错误。 在将来(.NET 2.0)中,MS计划添加TryParse方法,这些方法在失败时返回bool而不是抛出错误.-- Keith> -----原始消息----->来自:jfreriks@optusnet.com。 au [mailto:jfreriks@optusnet.com.au]>发送时间:2005年3月31日星期四下午6:28>收件人:VRF>主题:[vrf]是数字函数>>>嗨,>>只是想知道是否有人实施 相当于anisNumeric()> function>,用于检查字符串是否包含有效数字,即如果它包含非数字字符(如字母等),则应该> return> false >>>我知道您可以执行循环 并且单独检查每个字符,但是我>正在寻找一种稍微更整洁的方式。>>如果>字符串的一部分>非数字,并且仅仅asInt16()函数,'From String'函数不会返回任何错误 如果> first>字符是非数字,则返回错误。>> Thanks> John>> --->您目前订阅了vrf:keith_hill@agilent.com>要订阅,请发送空白电子邮件至“join-vrf” @ it.lists.it.agil ent.com“。>要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。>要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。>如果您 需要帮助邮件列表发送消息给“owner-> vrf@it.lists.it.agilent.com”.---您目前订阅vrf为:r***@soco.agilent.com要订阅发送空白电子邮件 到“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“ vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 If you are on VEE Pro 7.0, you can use the .NET method System.Int16.Parse(Text value). It generates a VEE error if the text contains any non-numeric characters. In the future (.NET 2.0), MS plans to add TryParse methods that return a bool on failure instead of throwing an error. -- Keith > -----Original Message----- > From: jfreriks@optusnet.com.au [mailto:jfreriks@optusnet.com.au] > Sent: Thursday, March 31, 2005 6:28 PM > To: VRF > Subject: [vrf] isNumeric function > > > Hi, > > Just wondering if someone has implemented the equivalent of an isNumeric() > function > that checks a string to see if it contains a valid number, i.e it should > return > false if it contains non-numeric characters such as letters, etc. > > I know you can execute a loop and check each character individually, but I > was > looking for a slightly neater way. > > The 'From String" function does not return any errors if part of the > string is > non-numeric, and the asInt16() function only returns an error if the > first > character is non-numeric. > > Thanks > John > > --- > You are currently subscribed to vrf as: keith_hill@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". --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] 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". |
|
|
|
如果您使用的是VEE Pro 7.0,则可以使用.NET methodSystem.Int16.Parse(文本值)。
如果text包含任何非数字字符,则会生成VEE错误。 在将来(.NET 2.0)中,MS计划添加TryParse方法,这些方法在失败时返回bool而不是抛出错误.-- Keith> -----原始消息----->来自:jfreriks@optusnet.com。 au [mailto:jfreriks@optusnet.com.au]>发送时间:2005年3月31日星期四下午6:28>收件人:VRF>主题:[vrf]是数字函数>>>嗨,>>只是想知道是否有人实施 相当于anisNumeric()> function>,用于检查字符串是否包含有效数字,即如果它包含非数字字符(如字母等),则应该> return> false >>>我知道您可以执行循环 并且单独检查每个字符,但是我>正在寻找一种稍微更整洁的方式。>>如果>字符串的一部分>非数字,并且仅仅asInt16()函数,'From String'函数不会返回任何错误 如果> first>字符是非数字,则返回错误。>> Thanks> John>> --->您目前订阅了vrf:keith_hill@agilent.com>要订阅,请发送空白电子邮件至“join-vrf” @ it.lists.it.agil ent.com“。>要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。>要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。>如果您 需要帮助邮件列表发送消息给“owner-> vrf@it.lists.it.agilent.com”.---您目前订阅vrf为:r***@soco.agilent.com要订阅发送空白电子邮件 到“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“ vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 If you are on VEE Pro 7.0, you can use the .NET method System.Int16.Parse(Text value). It generates a VEE error if the text contains any non-numeric characters. In the future (.NET 2.0), MS plans to add TryParse methods that return a bool on failure instead of throwing an error. -- Keith > -----Original Message----- > From: jfreriks@optusnet.com.au [mailto:jfreriks@optusnet.com.au] > Sent: Thursday, March 31, 2005 6:28 PM > To: VRF > Subject: [vrf] isNumeric function > > > Hi, > > Just wondering if someone has implemented the equivalent of an isNumeric() > function > that checks a string to see if it contains a valid number, i.e it should > return > false if it contains non-numeric characters such as letters, etc. > > I know you can execute a loop and check each character individually, but I > was > looking for a slightly neater way. > > The 'From String" function does not return any errors if part of the > string is > non-numeric, and the asInt16() function only returns an error if the > first > character is non-numeric. > > Thanks > John > > --- > You are currently subscribed to vrf as: keith_hill@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". --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] 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". |
|
|
|
如果您使用的是VEE Pro 7.0,则可以使用.NET methodSystem.Int16.Parse(文本值)。
如果text包含任何非数字字符,则会生成VEE错误。 在将来(.NET 2.0)中,MS计划添加TryParse方法,这些方法在失败时返回bool而不是抛出错误.-- Keith> -----原始消息----->来自:jfreriks@optusnet.com。 au [mailto:jfreriks@optusnet.com.au]>发送时间:2005年3月31日星期四下午6:28>收件人:VRF>主题:[vrf]是数字函数>>>嗨,>>只是想知道是否有人实施 相当于anisNumeric()> function>,用于检查字符串是否包含有效数字,即如果它包含非数字字符(如字母等),则应该> return> false >>>我知道您可以执行循环 并且单独检查每个字符,但是我>正在寻找一种稍微更整洁的方式。>>如果>字符串的一部分>非数字,并且仅仅asInt16()函数,'From String'函数不会返回任何错误 如果> first>字符是非数字,则返回错误。>> Thanks> John>> --->您目前订阅了vrf:keith_hill@agilent.com>要订阅,请发送空白电子邮件至“join-vrf” @ it.lists.it.agil ent.com“。>要取消订阅,请发送空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。>要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。>如果您 需要帮助邮件列表发送消息给“owner-> vrf@it.lists.it.agilent.com”.---您目前订阅vrf为:r***@soco.agilent.com要订阅发送空白电子邮件 到“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“ vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 If you are on VEE Pro 7.0, you can use the .NET method System.Int16.Parse(Text value). It generates a VEE error if the text contains any non-numeric characters. In the future (.NET 2.0), MS plans to add TryParse methods that return a bool on failure instead of throwing an error. -- Keith > -----Original Message----- > From: jfreriks@optusnet.com.au [mailto:jfreriks@optusnet.com.au] > Sent: Thursday, March 31, 2005 6:28 PM > To: VRF > Subject: [vrf] isNumeric function > > > Hi, > > Just wondering if someone has implemented the equivalent of an isNumeric() > function > that checks a string to see if it contains a valid number, i.e it should > return > false if it contains non-numeric characters such as letters, etc. > > I know you can execute a loop and check each character individually, but I > was > looking for a slightly neater way. > > The 'From String" function does not return any errors if part of the > string is > non-numeric, and the asInt16() function only returns an error if the > first > character is non-numeric. > > Thanks > John > > --- > You are currently subscribed to vrf as: keith_hill@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". --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] 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". |
|
|
|
只有小组成员才能发言,加入小组>>
1229 浏览 0 评论
2350 浏览 1 评论
2160 浏览 1 评论
2026 浏览 5 评论
2908 浏览 3 评论
973浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
707浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
808浏览 0评论
1230浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 19:14 , Processed in 1.464244 second(s), Total 88, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号