473,383 Members | 1,853 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,383 software developers and data experts.

Why did VB Break?

19
My program was working fine a few days ago, I opened my project today to do some more work and i got this error.

Expand|Select|Wrap|Line Numbers
  1. Error    1    Overload resolution failed because no accessible 'Format' can be called with these arguments:
  2.     'Public Shared Function Format(provider As System.IFormatProvider, format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  3.     'Public Shared Function Format(provider As System.IFormatProvider, format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  4.     'Public Shared Function Format(provider As System.IFormatProvider, format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  5.     'Public Shared Function Format(provider As System.IFormatProvider, format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  6.     'Public Shared Function Format(provider As System.IFormatProvider, format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  7.     'Public Shared Function Format(format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  8.     'Public Shared Function Format(format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  9.     'Public Shared Function Format(format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  10.     'Public Shared Function Format(format As String, ParamArray args() As Object) As String': Expression does not produce a value.
  11.     'Public Shared Function Format(format As String, ParamArray args() As Object) As String': Expression does not produce a value.    C:\Users\Alex\Documents\My Projects\Stock Assistant\Stock Assistant\frm_Main.vb    959    51    Stock Assistant
  12.  
From a line of code that worked perfectly a few days ago,

Expand|Select|Wrap|Line Numbers
  1. String.Format("INSERT INTO data_sources (data_name, data_websource, data_source_url, data_auto_retrieve, data_retrieval_interval, data_last_retrieve, data_password_required, data_username, data_password) VALUES ('{0}', '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', '{7}', '{8}')", DataManagement.SQLite_SafeString(txt_data_sources_data_name.Text.ToLower()), DataManagement.SQLite_ConvertBoolean(rb_data_sources_websource.Checked), DataManagement.SQLite_SafeString(txt_data_sources_url.Text), DataManagement.SQLite_ConvertBoolean(chk_data_sources_auto_retrieve.Checked), DataManagement.SQLite_SafeString(txt_data_sources_retrieval_interval.Text), DataManagement.SQLite_ConvertDateTime(DateTime.Now), DataManagement.SQLite_ConvertBoolean(DataSources_Current_PasswordRequired), DataManagement.SQLite_SafeString(DataSources_Current_Username), DataManagement.SQLite_SafeString(DataSources_Current_Password))
This error is coming from every String.Format() in one single file of my project, what has happened has my project been corrupted? Why are the other files not throwing this error, why after leaving a working project for a few days am i now faced with a broken project and an error that does not make any sense?

Thanks Alex.
Mar 9 '10 #1
1 1598
RedSon
5,000 Expert 4TB
Is it because you mix ' and "?
Mar 9 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ann | last post by:
I have trouble sometimes figuring out where break and continue go to. Is there some easy way to figure it out, or a tool? TIA Ann
5
by: viza | last post by:
Hi! Suppose I have int i,j,k; for(i=0;i<I;++i){ /* loop 1 */ for(j=0;j<J;++j){ /* loop 2 */ for(k=0;k<K;++k){ /* loop 3 */ if(test){
25
by: chunhui_true | last post by:
In <<expert c>>I know the break in if wich is scoped in switch is break the switch,like: switch c case 1: if(b){ break; } ...... But like this: while(a){
5
by: tony collier | last post by:
To break out of a loop i have seen some people use RETURN instead of BREAK I have only seen RETURN used in functions. Does anyone know why RETURN is used instead of BREAK to kill loops?
55
by: Ennixo | last post by:
hi, do you know where i can find some ebooks or websites talking about C# optimisation ? for exemple, i just learned that ++i is faster than i++. i would like to know more about the things...
2
by: yyhhjj | last post by:
I created a test program to implement an iterator. First, I used 'yield break' in the iterator, it worked normally. Then, I simply used 'break' in the places of 'yield break', it still worked...
3
by: Barbara Alderton | last post by:
I recently wrote an ASP.NET app that used user controls. I produced a printer-friendly output form. One requirement was a pagebreak between one part of the form and another. I had no problem...
2
by: ichor | last post by:
hi i want to add a conditional break in my vb.net code. like we could in vb6. for example if the counter = 10 then break at that point. kindly let me know if thats possible in vb.net Ichor
26
by: Alexander Korsunsky | last post by:
Hi! I have some code that looks similar to this: -------------------------------------------- char array = "abcdefghij"; for (int i = 0; i < 10; i++) {
7
by: =?Utf-8?B?aXdlYg==?= | last post by:
Can we set page breaks in ASP Pages dynamically based on the data being populated? Akshay.
1
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.