|
Hey leck du mir mal am arsch...ihr sind au behinderti lüüt!
Das isch de blödscht Forum wos git...dammi nomal...üch chamer echt ned bruche
schene
|
|
|
|
|
That was very rude and extremely offensive.
For others to see this kids attitude, please go to Google translate and have google auto-detect the language.
|
|
|
|
|
Mir doch scheisse egal...ich melde mich nümme bi üch...es wunder das du das überhaupt hesch chönne übersetze da das schwiizerdütsch isch!
Easy wenn ihr mir ned emal es bizeli helfe wenn sege ich halt eifach
hoffentlich wird die siite gsperrt oder so en scheiss
schene ihr peders
|
|
|
|
|
Google didn't translate much
But since it's German I got the core of the message. And if I'm right it is very rude and offensive.
|
|
|
|
|
because it's not excatly german!
|
|
|
|
|
Here you are, in the retro VB6-language.
Private Sub Command1_Click()
Dim fileNum As Integer
Dim newLine As String
fileNum = FreeFile
Open "C:\ihp.txt" For Input As fileNum
While Not EOF(fileNum)
Line Input #fileNum, newLine
Text1.Text = Text1.Text & newLine
Wend
Close fileNum
End Sub Gern Geschehen
I are Troll
|
|
|
|
|
Hawkster18 wrote: Look if you could just help me that would be great...why can't you guys help me?
What Elliot said. Examples are here[^].
I are Troll
|
|
|
|
|
Hawkster18 wrote: why can't you guys help me?
You were already given proper answers. The problem is that you don't have the requisite knowledge to understand them and implement them in your code. No, noone is going to write your code for you if that's the "help" you're after.
|
|
|
|
|
Great. You have shown some code now.
Unfortunately it is VB, not even VB.NET
VB is ancient language now, forget it. Don't buy a book on it, it is worthless.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
since it's ancient and I should buy a book eventhough it's worthless now, what the heck should I do now?
I've been surfing online for like 1-2 weeks now and haven't found good information tht could help.
|
|
|
|
|
Hawkster18 wrote: what the heck should I do now?
1) Grow up.
2) You can still buy VB books although it will be wasted money for the future. You might be able to glean enough from a VB.Net book if you actually have more intelligence than you have demonstrated in this thread.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Choose a modern language, buy and study a book, grow up.
And don't forget to capitalize your German nouns.
Auf nie Wiedersehen
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
hehehe the sentence with the capitalize was good ![Thumbs Up | :thumbsup:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/thumbs_up.gif)
|
|
|
|
|
Luc, before (and if) you answer him, please take a look at the message above about 3 replies up from this one. It will give you insight to his general attitude.
|
|
|
|
|
EliottA wrote: Luc, before (and if) you answer him, please take a look at the message above
I don't speak German but I know enough German words to understand what he said. Anybody who replies in this manner should be removed from CP forthwith.
|
|
|
|
|
mach nur, ihr hilfet mir ja sowieso ned vo dem her machs ![Big Grin | :-D](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
|
Hello,
My database is not getting updated via dataset even all the fields in the form have been binded to validation occurs. When I push the button I want to transfer dataset to database. However when I browse the database to see if there are the most recent changes from dataset, There is no record! What am I missing? I am not getting any error messages.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Row As DataRow = ProjectsDataSet1.Tables("Projects").NewRow()
Try
Me.Validate()
Me.ProjelerBindingSource.EndEdit()
Me.ProjelerTableAdapter.Update(Me.ProjectsDataSet1.Tables("Projects"))
MessageBox.Show(ProjectName.Text & vbCrLf & vbCrLf & "identified!")
Catch ex As Exception
MsgBox("Identification is not successful.")
End Try
Me.Close()
End Sub
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
It is difficult to give a precise answer, as there can be many causes for your problem.
Are you trying to add a row to an empty table? Trying to update existing data? Or what?
You need to restate your question more clearly.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
It is an empty table inside the dataset. There are no records. I have a form and there are fields binded to dataset which means if a validation occurs, the entries will be automatically added in to table. However it does neither add a record nor at the end of update it does update the table in database (not in dataset).
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Does the SQL that was used to return the data from the database return that table's Primary Key column?
|
|
|
|
|
In the code you posted, you create a new DataRow, but you never do anything with it.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Row As DataRow = ProjectsDataSet1.Tables("Projects").NewRow()
........................
........................
........................
Me.Close()
End Sub
To try to get this working I will suggest a solution using the code that you already have.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Row As DataRow = ProjectsDataSet1.Tables("Projects").NewRow()
Row("FirstName") = textBoxFName.Text
Row("LastName") = textBoxLName.Text
ProjectsDataSet1.Tables("Projects").Rows.Add(Row)
Try
Me.Validate()
Me.ProjelerBindingSource.EndEdit()
Me.ProjelerTableAdapter.Update(Me.ProjectsDataSet1.Tables("Projects"))
MessageBox.Show(ProjectName.Text & vbCrLf & vbCrLf & "identified!")
Catch ex As Exception
MsgBox("Identification is not successful.")
End Try
Me.Close()
End Sub
I have not tested this but it should work. Give it a try and get back, if not.
You do realise that your Me.Close() line will close the form, don't you?
Possibly a better way to do this is to give the users a 'New' button. When this is clicked, add a new row to the table and leave it blank. Then since your data entry controls are bound to the table they will be looking at this empty row so that when data is entered into the controls it will also be added to the table. You could then use your Button1_Click as it is except for the NewRow() line, which will no longer be needed.
Hope this makes sense, and helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks Henry!
Yes I did it with the way as you have suggested but it is not working at all.
I don't understand why do I have to assign a new row for the table if I have already bind all the fields in the form to fields in the table in dataset. Whenever validation occurs in the form, I assume that it should create a new row in the table in dataset. Am I wrong about it?
The otherwise it doesn't make enough sense to use dataset because I have to add statetements for each row e.g (Row("Name") = ProjectName.Text).
I could solve the problem with SQL and dataadapter but my aim is to learn how to use dataset.
The table is empty ib both dataset and database. I am trying to create the first record with the use of dataset and then transfer dataset to database.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
You may have already seen this but in case you haven't, take a look at How to: Insert New Records into a Database[^] on MSDN.
JUNEYT wrote: I don't understand why do I have to assign a new row for the table if I have already bind all the fields in the form to fields in the table in dataset.
You have to assign a new row so that there is somewhere for the new data to go. An empty table has no rows and therefore does not have anywhere to put your data. If your table already has data, your controls will be showing that data and any changes to their contents will change the existing data, therefore requiring a new row as before.
Something has occurred to me. When I was starting out with DB stuff, I had a similar mysterious problem. In my case it was something really silly. You might want to check this for your application. If you select your database in Solution Explorer then hit F4, the Properties Window will open for the file. Fairly near the top you should see a 'Copy to Output Directory' entry. Is that set to 'Copy Always'? If so, change it to 'Copy if Newer' because otherwise what happens is that every time you run your app, the empty DataBase is copied over the one with the data in it. Oh how I laughed, when I found that. NOT!!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi Guys,
im not sure if this is possible,
Say for eg. I have an application running which has a global variable "User" Declared.
i want to retrieve the value stored in "User" from another application.
how can this be done?
if so, can you direct me to the link?
much appreciated,
thanks
Anoop
|
|
|
|