PC Review


Reply
Thread Tools Rate Thread

Convert is not a member of String

 
 
No_So_Clever
Guest
Posts: n/a
 
      24th Nov 2005
Hi All,

I have the following Code:

Public Sub SetAccessLevelNull()
Me(Me.tableGeneralPasswords.AccessLevelColumn) = System.Convert.DBNull
End Sub

Im getting a ErroR on this Saying "Convert is Not a Member of String"
Could somebody kindly point me in the right direct?

Many Thanks
NSC



 
Reply With Quote
 
 
 
 
Bart Mermuys
Guest
Posts: n/a
 
      24th Nov 2005
Hi,

"No_So_Clever" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I have the following Code:
>
> Public Sub SetAccessLevelNull()
> Me(Me.tableGeneralPasswords.AccessLevelColumn) = System.Convert.DBNull
> End Sub


Looks like wizard generated code for a Typed DataRow, where
SetAccessLevelNull is the right way to set the field to null.

Do you by any chance have a DataColumn name "System" ? If you do then
"System" is a property on the typed DataRow that returns a string. So
rename your "System" column or use "DBNull.Value" instead of
"System.Convert.DBNull".


HTH,
Greetings


>
> Im getting a ErroR on this Saying "Convert is Not a Member of String"
> Could somebody kindly point me in the right direct?
>
> Many Thanks
> NSC
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
member-name as string Ruben Microsoft C# .NET 8 7th Nov 2006 08:47 PM
Access of shared member, constant member, enum member or nested type through an instance Jeffrey Grantz Microsoft VB .NET 3 7th Sep 2006 04:09 PM
Convert is not a member of String No_So_Clever Microsoft ADO .NET 2 25th Nov 2005 08:45 AM
Is there a way to convert each member of a DL to my contacts? =?Utf-8?B?UnVuZ2U=?= Microsoft Outlook Contacts 1 4th May 2005 10:27 PM
'Convert' is not a member of 'Boolean' Brian Microsoft ADO .NET 2 21st Jan 2004 02:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:07 AM.