选项显式和代码语法

编程入门 行业动态 更新时间:2024-10-26 20:22:22
本文介绍了选项显式和代码语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我有明确的选项,我得到一个Option Strict On disallows 后期绑定。以下代码出错; UpdateCategories(bmCompanyDetails.Current(" ID")) bmCompanyDetails是客户的货币管理器table(定义为 Private WithEvents bmCompanyDetails As System.Windows.Forms.CurrencyManager) 和调用函数定义为; Private Sub UpdateCategories(ByVal Company_ID As Integer) 任何帮助都将不胜感激。 谢谢 问候

Hi I have option explicit on and I am getting an "Option Strict On disallows late binding." error on the following code; UpdateCategories(bmCompanyDetails.Current("ID")) bmCompanyDetails is the currency manager for the client table (defined as Private WithEvents bmCompanyDetails As System.Windows.Forms.CurrencyManager) and the calling function is defined as; Private Sub UpdateCategories(ByVal Company_ID As Integer) Any help would be appreciated. Thanks Regards

推荐答案

嗨约翰, 你确定你不想要bmCompanyDetails.position,因为你现在知道的那个 指令确实存在吗? Cor Hi John, Are you sure you do not want the bmCompanyDetails.position because that instruction you now have does as far as I know not exist? Cor

你好约翰, 你确定你不想要bmCompanyDetails.position因为 指令你现在已经知道不存在吗? Cor Hi John, Are you sure you do not want the bmCompanyDetails.position because that instruction you now have does as far as I know not exist? Cor

我需要显式的id值,因为有孩子与该 公司ID相关的记录。 谢谢 问候 Cor < no*@non>在消息中写道 新闻:OI ************** @ TK2MSFTNGP09.phx.gbl ... I need the explicit id value as there are child records associated with that company id. Thanks Regards "Cor" <no*@non> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl... 嗨John, 你确定你不想要bmCompanyDetails.position因为你现在所拥有的指令确实存在吗? Cor Hi John, Are you sure you do not want the bmCompanyDetails.position because that instruction you now have does as far as I know not exist? Cor

更多推荐

选项显式和代码语法

本文发布于:2023-07-30 00:20:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1244926.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语法   选项   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!