473,320 Members | 2,092 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,320 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 1529
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.