Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

"Enter" in TextBox???

 
   Database Help (Home) -> Visual Basic RSS
Next:  trying to read a excel sheet  
Author Message
Jarno Halme

External


Since: Jun 04, 2004
Posts: 1



(Msg. 1) Posted: Fri Jun 04, 2004 2:00 pm
Post subject: "Enter" in TextBox???
Archived from groups: comp>lang>basic>visual>database (more info?)

Hi,

I've created a small program that I'd need, but have just one trouble. Have
to say that I feel extremely stupid.

I've written to a text file (sequential) some data like:
1
2
3
4
....and I'd like to read that data to a TextBox property. So I open the file,
then "Line Input #file, variable", loop from 1-4 and I have in my TextBox:
1234

My program cannot read the Enter characters from the file. How can I make
the line feeds manually? I tried Chr(x), with x=0...255; no help... The
property must be a textbox (not e.g. a listbox), due to the very variable
type of data.

thanks in advance,
-Jake

 >> Stay informed about: "Enter" in TextBox??? 
Back to top
Login to vote
John Lauwers

External


Since: Nov 06, 2003
Posts: 14



(Msg. 2) Posted: Fri Jun 04, 2004 5:18 pm
Post subject: Re: "Enter" in TextBox??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

try to use : string = " test " & vbCRLF <---- Cariage return and line feed


greets John

"Jarno Halme" <jarno.halme.TakeThisOut@nokia.com> schreef in bericht
news:ZCYvc.18183$k4.363940@news1.nokia.com...
 > Hi,
 >
 > I've created a small program that I'd need, but have just one trouble.
Have
 > to say that I feel extremely stupid.
 >
 > I've written to a text file (sequential) some data like:
 > 1
 > 2
 > 3
 > 4
 > ...and I'd like to read that data to a TextBox property. So I open the
file,
 > then "Line Input #file, variable", loop from 1-4 and I have in my TextBox:
 > 1234
 >
 > My program cannot read the Enter characters from the file. How can I make
 > the line feeds manually? I tried Chr(x), with x=0...255; no help... The
 > property must be a textbox (not e.g. a listbox), due to the very variable
 > type of data.
 >
 > thanks in advance,
 > -Jake
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: "Enter" in TextBox??? 
Back to top
Login to vote
AustinMN

External


Since: Apr 21, 2004
Posts: 9



(Msg. 3) Posted: Fri Jun 04, 2004 6:43 pm
Post subject: Re: "Enter" in TextBox??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jarno Halme begged for help by asking:
 > I've written to a text file (sequential) some data like:
 > 1
 > 2
 > 3
 > 4
 > ...and I'd like to read that data to a TextBox property. So I open the
file,
 > then "Line Input #file, variable", loop from 1-4 and I have in my TextBox:
 > 1234
 >
 > My program cannot read the Enter characters from the file. How can I make
 > the line feeds manually? I tried Chr(x), with x=0...255; no help... The
 > property must be a textbox (not e.g. a listbox), due to the very variable
 > type of data.

Make sure the text box's MultiLine property = true.

Austin<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: "Enter" in TextBox??? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Filtering records using textbox on form - Can I use the value of a bound textbox on an open form, as a criteria in a query. If so what would be the correct code for the SQL. If not how can I hold the required value (number) that is selected by the user from a combo box at startup, so that I can....

sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table "PriceList" and there a column "Pricemk" wich is data type "money". All data in this column is in form "10001,35". So why when...

arrays - is there a way to concatenate the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to understand. I have a table that contains information for work instructions. Contained in the table are "MACHINE_PROC" these are groupings of machining processes....
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]