473,811 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Argument not specified for parameter 'index' of 'public readonly default property cha

Prathap
37 New Member
Argument not specified for parameter 'index' of 'public readonly default property chars(index as integer)as char'.

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

con.ConnectionS tring = Str() [I[B]]<-the message has shown here)
[/i][/b] adp = New SqlClient.SqlDa taAdapter("inse rt into ShiftLogin values ('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox2.Text + "','" + TextBox2.Text + "','" + TextBox2.Text + "') ", con)
adp.Fill(ds)
MsgBox("Inserte d")
End Sub
Nov 29 '11 #1
3 5259
pod
298 Contributor
I think it would be best to be checking for Nulls and maybe using the Command.Paramet ers
Nov 29 '11 #2
Rabbit
12,516 Recognized Expert Moderator MVP
The STR() function returns the string equivalent of a number and expects one parameter, the number to convert. STR(100) returns "100". I have no idea why you are using it for your connection string, it's completely wrong.
Nov 29 '11 #3
Prathap
37 New Member
Its working.. i had removed '()' from con.ConnectionS tring = Str()
Nov 30 '11 #4

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

Similar topics

1
1648
by: Dave | last post by:
I'm not even sure if what I'm doing is possible. I created a simple control that will be reused throughout the site. It will accept a large amount of HTML with bulleted lists, et I want to implement like <uc1:KeyFeatures id="KeyFeatures1" runat="server" Large amount of Inner Html content goes here between tags.. </uc1:KeyFeatures Not like
1
2529
by: Bob of the West | last post by:
Hi, I'm trying to something quite straightforward, populate a datagrid with certain fields after selecting from a dropdownlist. The books I have don't seem to give an example of how to do this ( particularly from within VStudio 2003 ) and it's driving me to distraction. daNumber1 selects the au_id and au_lname SqlDataAdapter1 is attempting to take the parameter @au_id to populate the datagrid1, but the SqlDataAdapter1 is giving the...
3
5770
by: Moe Sizlak | last post by:
Hi There, I am trying to use the to obtain the information from 2 listmenus, if the user makes a selection the page is submitted and then based on the value selected is transfererd to another page. This works ok on it's own but I can't seem to access the actual value of the control or the option value ( <option value="6">...NT...</option>) .. Any ideas ppl?
1
1300
by: Bernard Bourée | last post by:
I would like to achieve the following goal: design a class with a default property called dVal where I could store and get a decimal value WITHOUT the need to write the property. I have the following code: Dim Var as New VarDécimal Var = 100 (instead of Var.dVal) But I get an error telling me that a default property need to have a
3
3857
by: Agnes | last post by:
In a single form , I can delcare a public vairable or property. So. What is the difference between it ?? which is better ?? Dim frmTest as myForm frmTest.strPublicVariable = "ABC" frmTest.strPropertyVarialbe = "ABC" Sorry for my stupid question .
2
3052
by: Jon Paal | last post by:
Compiler Error Message: BC30367: Class 'System.Web.HttpContext' cannot be indexed because it has no default property. how do I create a "default property" ??
2
1922
by: Toze | last post by:
How do I set a default property in C#? In VB we use the default keyword before the property.
4
1634
by: shapper | last post by:
Hello, I am creating a class where I have various properties. How to I set a default property value in case the property is not defined by the user. For example, I have the property: ' Priority Public Property Priority() As Mail.MailPriority
1
1830
by: murtyin | last post by:
Hi to All, I am creating COM Wrappers(CCW's) to the existing .Net Product, which is developed using C#. In this, am getting problem with setting "Item" propertty as the Default Property. My requirement is like this: I created 4 classess in CCW namely: PdfDocument, PdfForm,PdfFormField and PdfFormFieldList. to the respective .Net classess. Below, am giving the classess in brief. I configured my project for COM Interop . ...
5
6643
by: puzzlecracker | last post by:
C++ standard says the following: I am reading through c++ standard and have a difficulty understanding the difference between these two terms. Thanks, puzzlecracker
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10393
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.