473,396 Members | 2,087 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,396 software developers and data experts.

Error on QuoteFix and chkValue

Hey guys i have a question about those 2 funtions

the error occures in 2 files my DataConnection.asmx.cs and Funtions.cs

error 1 is this il also paste a part of the code were the error is

DotNet.Functions' does not contain a definition for 'QuoteFix the filename were the code out is DataConnection.asmx.cs

Expand|Select|Wrap|Line Numbers
  1. if (nieuw == true)
  2.             {
  3.                 NoteID = "";
  4.                 strNotes1 = "INSERT INTO offertesql (of_ref, of_datum, of_deb, of_klant, of_contact, of_straat, of_pcode, of_plaats, of_omschr, of_ordernr, of_uwref, of_totaalbtw_sql, of_btwbedr_sql, of_btw_sql, of_subtotaal_sql";
  5.                 strNotes2 = "VALUES ('" + sReferentie + "', '" + sDatum + "', '" + sDebNr + "', '" + sKlant + "', '" + sContact + "', '" + sStraat + "', '" + sPcode + "', '" + sPlaats + "', '" + sOmschrijving + "', '" + sOrderNr + "', '" + sUwRef + "', " + dTotBTW + " , " + dBTW + " , " + dOf_BTW + " , " + dTotaal + " ";
  6.  
  7.                 if (iAant1 != "")
  8.                 {
  9.                     strNotes1 += ", of_dat1, of_art1, of_aant1, of_stuk_sql1, of_prijs_sql1";
  10.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat1)) + " , '" + sArt1 + "', " + iAant1 + " , " + dPStuk1 + " , " + dPrijs1;
  11.                 }
  12.                 if (iAant2 != "")
  13.                 {
  14.                     strNotes1 += ", of_dat2, of_art2, of_aant2, of_stuk_sql2, of_prijs_sql2";
  15.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat2)) + " , '" + sArt2 + "', " + iAant2 + " , " + dPStuk2 + " , " + dPrijs2;
  16.                 }
  17.                 if (iAant3 != "")
  18.                 {
  19.                     strNotes1 += ", of_dat3, of_art3, of_aant3, of_stuk_sql3, of_prijs_sql3";
  20.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat3)) + " , '" + sArt3 + "', " + iAant3 + " , " + dPStuk3 + " , " + dPrijs3;
  21.                 }
  22.                 if (iAant4 != "")
  23.                 {
  24.                     strNotes1 += ", of_dat4, of_art4, of_aant4, of_stuk_sql4, of_prijs_sql4";
  25.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat4)) + " , '" + sArt4 + "', " + iAant4 + " , " + dPStuk4 + " , " + dPrijs4;
  26.                 }
  27.                 if (iAant5 != "")
  28.                 {
  29.                     strNotes1 += ", of_dat5, of_art5, of_aant5, of_stuk_sql5, of_prijs_sql5";
  30.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat5)) + "', '" + sArt5 + "', " + iAant5 + " , " + dPStuk5 + " , " + dPrijs5;
  31.                 }
  32.                 if (iAant6 != "")
  33.                 {
  34.                     strNotes1 += ", of_dat6, of_art6, of_aant6, of_stuk_sql6, of_prijs_sql6";
  35.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat6)) + " , '" + sArt6 + "', " + iAant6 + " , " + dPStuk6 + " , " + dPrijs6;
  36.                 }
  37.                 if (iAant7 != "")
  38.                 {
  39.                     strNotes1 += ", of_dat7, of_art7, of_aant7, of_stuk_sql7, of_prijs_sql7";
  40.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat7)) + " , '" + sArt7 + "', " + iAant7 + " , " + dPStuk7 + " , " + dPrijs7;
  41.                 }
  42.                 if (iAant8 != "")
  43.                 {
  44.                     strNotes1 += ", of_dat8, of_art8, of_aant8, of_stuk_sql8, of_prijs_sql8";
  45.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat8)) + " , '" + sArt8 + "', " + iAant8 + " , " + dPStuk8 + " , " + dPrijs8;
  46.                 }
  47.                 if (iAant9 != "")
  48.                 {
  49.                     strNotes1 += ", of_dat9, of_art9, of_aant9, of_stuk_sql9, of_prijs_sql9";
  50.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat9)) + " , '" + sArt9 + "', " + iAant9 + " , " + dPStuk9 + " , " + dPrijs9;
  51.                 }
  52.                 if (iAant10 != "")
  53.                 {
  54.                     strNotes1 += ", of_dat10, of_art10, of_aant10, of_stuk_sql10, of_prijs_sql10";
  55.                     strNotes2 += ", " + Functions.QuoteFix(Functions.DateToUS(sDat10)) + " , '" + sArt10 + "', " + iAant10 + " , " + dPStuk10 + " , " + dPrijs10;
  56.                 }
  57.                 strNotes1 = strNotes1 + ") " + strNotes2 + ")";
  58.  
  59.                 dbConn.Open();
  60.                 SqlCommand SqlCmd = new SqlCommand(strNotes1, dbConn);
  61.                 SqlCmd.ExecuteNonQuery();
  62.                 dbConn.Close();
  63.  
  64.                 dbConn.Open();
  65.                 SqlCommand SqlCmdID = new SqlCommand("SELECT MAX (NoteID) AS NoteID from offertesql", dbConn);
  66.                 SqlDataReader SqlDrID = SqlCmdID.ExecuteReader(CommandBehavior.CloseConnection);
  67.                 if(SqlDrID.Read())
  68.                 {
  69.                     NoteID = SqlDrID["NoteID"].ToString();
  70.                 }
  71.                 SqlDrID.Close();
  72.                 dbConn.Close();
my question about this is what thous the functie QuoteFix do

the next error is this in my DataConnection.asmx.cs file again

DotNet.Functions' does not contain a definition for 'chkValue

Expand|Select|Wrap|Line Numbers
  1. iAant1 = iAant1.Replace(",", ".");
  2.                 iAant2 = iAant2.Replace(",", ".");
  3.                 iAant3 = iAant3.Replace(",", ".");
  4.                 iAant4 = iAant4.Replace(",", ".");
  5.                 iAant5 = iAant5.Replace(",", ".");
  6.                 iAant6 = iAant6.Replace(",", ".");
  7.                 iAant7 = iAant7.Replace(",", ".");
  8.                 iAant8 = iAant8.Replace(",", ".");
  9.                 iAant9 = iAant9.Replace(",", ".");
  10.                 iAant10 = iAant10.Replace(",", ".");
  11.  
  12.                 strSQL1 = "INSERT INTO Offerte (OfferteID, OfferteNr, Datum, DebNr, KlantNaam, Klantcontact, KlantStraat, KlantPcode, KlantPlaats, Omschrijving, OrderNr, ReferentieNr, BTW_bedr, SubTotaal, BTW, Totaal";
  13.                 strSQL2 = "VALUES (" + NoteID + " , '" + sReferentie + "', '" + sDatum + "', '" + sDebNr + "', '" + sKlant + "', '" + sContact + "', '" + sStraat + "', '" + sPcode + "', '" + sPlaats + "', '" + sOmschrijving + "', '" + sOrderNr + "', '" + sUwRef + "', " + Functions.chkValue(dBTW) + " , " + Functions.chkValue(dTotaal) + " , " + Functions.chkValue(dOf_BTW) + " , " + Functions.chkValue(dTotBTW) + " ";
  14.  
  15.                 if (iAant1 != "")
  16.                 {
  17.                     strSQL1 += ", Datum1, Aantal1, Artikel1, PrijsStuk1, Prijs1";
  18.                     strSQL2 += ", '" + sDat1 + "', " + iAant1 + " , '" + sArt1 + "', " + Functions.chkValue(dPStuk1) + " , " + Functions.chkValue(dPrijs1) + " ";
  19.                 }
  20.                 if (iAant2 != "")
  21.                 {
  22.                     strSQL1 += ", Datum2, Aantal2, Artikel2, PrijsStuk2, Prijs2";
  23.                     strSQL2 += ", '" + sDat2 + "', " + iAant2 + " , '" + sArt2 + "', " + Functions.chkValue(dPStuk2) + " , " + Functions.chkValue(dPrijs2) + " ";
  24.                 }
  25.                 if (iAant3 != "")
  26.                 {
  27.                     strSQL1 += ", Datum3, Aantal3, Artikel3, PrijsStuk3, Prijs3";
  28.                     strSQL2 += ", '" + sDat3 + "', " + iAant3 + " , '" + sArt3 + "', " + Functions.chkValue(dPStuk3) + " , " + Functions.chkValue(dPrijs3) + " ";
  29.                 }
  30.                 if (iAant4 != "")
  31.                 {
  32.                     strSQL1 += ", Datum4, Aantal4, Artikel4, PrijsStuk4, Prijs4";
  33.                     strSQL2 += ", '" + sDat4 + "', " + iAant4 + " , '" + sArt4 + "', " + Functions.chkValue(dPStuk4) + " , " + Functions.chkValue(dPrijs4) + " ";
  34.                 }
  35.                 if (iAant5 != "")
  36.                 {
  37.                     strSQL1 += ", Datum5, Aantal5, Artikel5, PrijsStuk5, Prijs5";
  38.                     strSQL2 += ", '" + sDat5 + "', " + iAant5 + " , '" + sArt5 + "', " + Functions.chkValue(dPStuk5) + " , " + Functions.chkValue(dPrijs5) + " ";
  39.                 }
  40.                 if (iAant6 != "")
  41.                 {
  42.                     strSQL1 += ", Datum6, Aantal6, Artikel6, PrijsStuk6, Prijs6";
  43.                     strSQL2 += ", '" + sDat6 + "', " + iAant6 + " , '" + sArt6 + "', " + Functions.chkValue(dPStuk6) + " , " + Functions.chkValue(dPrijs6) + " ";
  44.                 }
  45.                 if (iAant7 != "")
  46.                 {
  47.                     strSQL1 += ", Datum7, Aantal7, Artikel7, PrijsStuk7, Prijs7";
  48.                     strSQL2 += ", '" + sDat7 + "', " + iAant7 + " , '" + sArt7 + "', " + Functions.chkValue(dPStuk7) + " , " + Functions.chkValue(dPrijs7) + " ";
  49.                 }
  50.                 if (iAant8 != "")
  51.                 {
  52.                     strSQL1 += ", Datum8, Aantal8, Artikel8, PrijsStuk8, Prijs8";
  53.                     strSQL2 += ", '" + sDat8 + "', " + iAant8 + " , '" + sArt8 + "', " + Functions.chkValue(dPStuk8) + " , " + Functions.chkValue(dPrijs8) + " ";
  54.                 }
  55.                 if (iAant9 != "")
  56.                 {
  57.                     strSQL1 += ", Datum9, Aantal9, Artikel9, PrijsStuk9, Prijs9";
  58.                     strSQL2 += ", '" + sDat9 + "', " + iAant9 + " , '" + sArt9 + "', " + Functions.chkValue(dPStuk9) + " , " + Functions.chkValue(dPrijs9) + " ";
  59.                 }
  60.                 if (iAant10 != "")
  61.                 {
  62.                     strSQL1 += ", Datum10, Aantal10, Artikel10, PrijsStuk10, Prijs10";
  63.                     strSQL2 += ", '" + sDat10 + "', " + iAant10 + " , '" + sArt10 + "', " + Functions.chkValue(dPStuk10) + " , " + Functions.chkValue(dPrijs10) + " ";
  64.                 }
  65.  
  66.                 strSQL1 = strSQL1 + ") " + strSQL2 + ")";
  67.  
  68.                 dbConn.Open();
  69.                 SqlCommand SQLCmd = new SqlCommand(strSQL1, dbConn);
  70.                 SQLCmd.ExecuteReader(CommandBehavior.CloseConnection);
  71.                 dbConn.Close();
my question about this is what thous the functie chkValue do

I understand thats its a method and that i shud be in Functions.cs but i cant find those names anywere in the document with the search option. and i dont no what to do with it i dont whanne delete it right away thous anyone have on idee about what those functions cud do

Tanx Guys
Oct 2 '08 #1
0 1323

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Gregory | last post by:
Hi, One of the disadvantages of using error handling with error codes instead of exception handling is that error codes retuned from a function can be forgotten to check thus leading to...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
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
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.