473,394 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Option Explicit and Code Syntax

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

Nov 20 '05 #1
10 1536
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
Nov 20 '05 #2
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
Nov 20 '05 #3
I need the explicit id value as there are child records associated with that
company id.

Thanks

Regards

"Cor" <no*@non.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
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

Nov 20 '05 #4
I need the explicit id value as there are child records associated with that
company id.

Thanks

Regards

"Cor" <no*@non.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
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

Nov 20 '05 #5
Cor
John,

Writting with you is making a puzzle,

I think you mean something as

UpdateCategories(Cint(directcast(UpdateCategories( bmCompanyDetails.Current,
datarowview)("ID"))))

I am curious if this was it?

:-)

Cor
Nov 20 '05 #6
Cor
John,

Writting with you is making a puzzle,

I think you mean something as

UpdateCategories(Cint(directcast(UpdateCategories( bmCompanyDetails.Current,
datarowview)("ID"))))

I am curious if this was it?

:-)

Cor
Nov 20 '05 #7
Cor
Hi John,

I typed it just in of course

UpdateCategories(Cint(directcast(bmCompanyDetails. Current,
datarowview)("ID")))

Cor
Nov 20 '05 #8
Cor
Hi John,

I typed it just in of course

UpdateCategories(Cint(directcast(bmCompanyDetails. Current,
datarowview)("ID")))

Cor
Nov 20 '05 #9
Thanks. UpdateCategories(CInt(DirectCast(bmCompanyDetails. Current,
DataRowView)("ID"))) has worked which I think is what you meant.

Regards

"Cor" <no*@non.com> wrote in message
news:u8*************@TK2MSFTNGP09.phx.gbl...
John,

Writting with you is making a puzzle,

I think you mean something as

UpdateCategories(Cint(directcast(UpdateCategories( bmCompanyDetails.Current, datarowview)("ID"))))

I am curious if this was it?

:-)

Cor

Nov 20 '05 #10
Thanks. UpdateCategories(CInt(DirectCast(bmCompanyDetails. Current,
DataRowView)("ID"))) has worked which I think is what you meant.

Regards

"Cor" <no*@non.com> wrote in message
news:u8*************@TK2MSFTNGP09.phx.gbl...
John,

Writting with you is making a puzzle,

I think you mean something as

UpdateCategories(Cint(directcast(UpdateCategories( bmCompanyDetails.Current, datarowview)("ID"))))

I am curious if this was it?

:-)

Cor

Nov 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: biro man | last post by:
I have a dynamic database driven page that I have been working on and tweaking etc until I have got it to work pretty much the way I want it to. I also have a defined website. I wish to include...
9
by: Microsoft News | last post by:
I have a project that was created all with Option Strict OFF. Works great, not a problem with it. But if I turn Option Strict ON then I get a LOT of errors. My question, should I even care...
12
by: Doug Hill | last post by:
Please, Microsoft, update Option Explicit Option Strict barks at late binding. We love late binding. So Option Strict flags too many things. Option Explicit is misleading. It allows Dim...
0
by: John | last post by:
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...
8
by: Rich | last post by:
Hello, If I leave Option Strict Off I can use the following syntax to read data from a Lotus Notes application (a NotesViewEntry object represents a row of data from a Lotus Notes View - like a...
9
by: YYZ | last post by:
After reading many messages in this group, it seems that the preferred setting for this is ON. Okay, I did that in my project (first with ..Net -- long time VB6 developer) and now a bunch of...
6
by: John Kotuby | last post by:
Hi all, I am simply trying to include the Option Explicit declaration at the top of an ASP page and am getting an error: Error Type: Microsoft VBScript compilation (0x800A0400) Expected...
0
by: Michael Jenck | last post by:
Hi All, I have been playing with the codedom and can't get it to output for option compare Binary with a CodeCompileUnit. I have searched the web and Don't now if it's possible. If it's not...
1
by: Jimmbo | last post by:
I get an option explicit error saying it does not appear as the first line whenever I use it with utf-8 charset encoding on my Sun Cobalt server running Chillisoft on Linux. The error does not...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.