I am running Visual Basic Express 2005. I am trying to develop a program to send morse code out the serial port. I have created working code that can determine which character needs to be sent and toggles the RTS line on com 1 with the proper pulses. What I can't seem to figure out is how to be able to type in characters at a higher speed than they will be sent out the port, so as to be able to use the backspace key etc.
we have a project in our school. we are going to create C like compiler. Our group will go going to use vb.net to make it happen. But our problem, we don't know how to read a character one at a time of every line if the user input the codes. here are some example input:
[Code]...
we get the output in the database. we don't know how to make it happen.
How to read a single character each time, from a text file using vb.net? I mean that if the txt file contains code as " my name is...".It should be read initially as :'m'..after some time it should show 'y'. then 'n'.'a'..'m'.'e'.like that..
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
I would like to know how can we know if current active windows accept an character keyboard input. For example, if a non textbox control in an active window is in focused and user press "a" key, then the current active window will not accept the "a" input.
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
I've been working with the substring command and after coding up all the things I needed it to do, I saw a post on here where the "For Each" statement was used basically to do the same thing.Lets say we just want to take a string apart one character at a time and add each character to a label. Which would be more efficient?I made a cheap example to show ...
Code: ABinary = "0110 1100 0001 1011" For x = 0 To Len(ABinary) - 1
I know how to read user input using textbox but it only can read character and numbers. Is it possible that I want to read user input equation?
Example:
User type A+B User put range of A and B. 1.25<A< 3.56 2.45<B< 9.87
I failed to read the equation using textbox. Is it there are other ways that can use to read equation input A+B?I am using VS2005 and VB.Net. I really new in this programming using VB.Net.
How do I make it so the program writes a string to a Textbox one character at a time? I have heard it's possible but never actually learned how to do it?
I would like to get the decimal character with vb.netIn Greek the decimal character is "," while in other countries they have "." as decimal character.
I have recordsets in my MySQL database like this (in german): Karrieren im Porträt: Interview mit Thorsten Franck - „Ich liebe Produkte" Now when I get the data with the MySQL connector reader and write it into an xml file I get just this: Karrieren im Porträt: Interview mit Thorsten Franck Ich liebe Produkte As you (hopefully) can see, the minus (it's one of those long ones) and the upper and lower quote signs are not shown. The table is defined as UTF-8, the output of the xml file also.
We are going to create a compiler like program where when we inputed character or multicharacter it will retrieve to the database the equivalent symbol of that character and place it to another textbox.[code]...
I have a block of text in a text .txt file that looks like this: [code]I've tried reading every character and entering them into a 2D array (failed)I've tried splitting them into individual lines and entering them into a 1D array (Success, but very difficult to target individual characters from this, and will take a long time to set up as I only did this for 10 lines)
I'm trying to replace one character at a time in order to store its index, therefore if the replace is used all characters are changed and I cannot keep the index of all characters.
I Have a problem whit my code.I want to receive 4 character variables (0-255) all the time and put them in the corresponding textboxes:
Public Class Form1 'Dim WithEvents Comm1 As New IO.Ports.SerialPort Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Comm1.Encoding = System.Text.Encoding.GetEncoding("Windows-1252")
[code]....
I Want to send date when I want , but I want to receive data all the time (i want that textboxes 3,4,5,6 to update whenever data is comming an form is load).
I have a program to read line by line from text file. [code]There is run time error while TextLine data has ' or "May I know how to read the data with ' or " character?
This code blow give me this error: Conversion failed when converting date and/or time from character string.
Code sqlstr = "select excute_main.*,cycle_main.cust_id,customers.name2 from excute_main,customers,cycle_main where date2 between '" & Format(MaskedTextBox1.Text, "MM-dd-yyyy") & "' and '" & Format(MaskedTextBox2.Text, "MM-dd-yyyy") & "' and excute_main.main_id=cycle_main.id and cycle_main.cust_id=customers.id"
am using visual basics to develop a search on my project using the date picker but any time i try to search for a date on my SQL database i received the following error message from my programme. "Conversion failed when converting data and/or time from character string "
When using INSERT INTO statement to SQL 2008 R2 to a column with data type as date and the data I am taking from a DateTimePicker control with date format as short. When my system date format short set to dd/MMM/yyyy the INSERT INTO statement is working perfectly but when the system date format short set to dd/MM/yyyy I am getting the above error.I tried by changing the control format to custom and dd/MMM/yyyy but still the same error is coming.I am using VB2010 and SQLExpress 2008 R2 SP1?
here is an sql query statement i run in vb.net. i keep getting the error of "Conversion failed when converting date and/or time from character string." whenever i try to execute this. the datatype of filing_date and approvale_date is "text" but the deyt variable is originally Date, converted to string: (Date.Today).ToString, like so. nulll is simply a variable with vbNullChar as its value.
Dim a As String a = "INSERT INTO tblVisitor(Name, Sex, TimeIn, EnterDate) VALUES('"& txtName.Text &"', '"& cboSex.Text &"', '"& Now() &"', '"& DateTime.Parse(cboEnterDate.Text) &"')"
[code]....
Which cboEnterDate is my DateTime Picker. Then I got the message:Conversion failed when converting date time from character string.
I'm looking for a way to convert a 5 character time representation to a date object. ie. "0937a" should be "6/16/2010 9:37 AM" or "1215p" should be "6/16/2010 12:15 PM".
The error is: Conversion failed when converting date and/or time from character string.Basically I'm trying to make it so that when someone clicks a location in a list box it increments the correct field in a Stats table by 1 to say that they clicked the location. I've been trying to solve this for a while now and can't get anywhere. My date is in date format, and so is the Date field in my Stats table. My code can be seen below.
Dim Current As String Dim Check As String Dim objCmd2 As Object
[code]....
The issue comes in with the second SQL statement I think. I don't understand why adding a date into a date field would be an issue, I've tried adding it as a string which didn't work.
Dim i as integer For i = 0 to 365 sqlinsert.InsertCommand="insert into cashdate (date) values (getdate()+'" & i & "')"[code]....
getdate is a function in the database that returns the datetime of now i have an error that says conversion failed when converting date or time from character string .what to do now ??
So I tries to read txt file to memory, sometimes (just sometimes) I getting this error: The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'. Parameter name: chars
Using sr As New IO.StreamReader(File.OpenRead("c:\test.txt")) Dim sb As New StringBuilder sb.Append(sr.Read) TextBox1.Text = sb.ToString End Using
I've tried a bunch of intellisense options, but I can't seem to read by bits. For this example, I'm just using a .txt file, but would like to read ANY file type.