Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What does an error mean
Message
De
24/01/2011 09:01:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
What does an error mean
Divers
Thread ID:
01497169
Message ID:
01497169
Vues:
98
Hi

I'm converting some code from SQL Express to Mysql

and I'm getting the following error

Overload resolution failed because no Public 'toReadable' can be called with these arguments: 'Public Shared Function toReadable(d As Date) As String': Argument matching parameter 'd' cannot convert from 'Byte()' to 'Date'. 'Public Shared Function toReadable(value As String) As String': Argument matching parameter 'value' cannot convert from 'Byte()' to 'String'."}

In this code
               Dim dtMonths As DataTable = dataLayerConnector.getDataTable("SELECT distinct pop as Month from vw_stock_month_model order by pop")
                For Each row As DataRow In dtMonths.Rows
                    Dim li As ListItem = New ListItem(toReadable(row("Month")), row("Month"))
I've switched the datalayer to read the mysql data . What should be returned is "200905","200906" etc

What would be my basic problem here ?

Thanks

Nick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform