Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


serial i/o


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2007, 01:44 PM
Junior Member
 
Join Date: Jun 2007
Location: South Africa
Posts: 21
Question serial i/o

Hi everyone,
can someone help me to add a carrage return to the end of a string
i tried
if serial.PortOpen = true then TextBox1.Text = StrToUpper (TextBox1.Text & serial.InputString & Chr(13))
but the device i am sending to doe not see the chr 13
please help, i am new to basic4pc

Thanks in advance
Friedrich
Reply With Quote
  #2 (permalink)  
Old 07-24-2007, 01:48 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

The carriage return on the textbox control is actually Chr(13) & Chr(10) (or the other way around).
You should use the CRLF contant instead:
if serial.PortOpen = true then TextBox1.Text = StrToUpper (TextBox1.Text & serial.InputString & CRLF)
BTW, did you set TextBox1.MultiLine = True ?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Terminal? willisgt Questions & Help Needed 2 04-01-2008 06:34 PM
serial compiling Cor Questions & Help Needed 4 01-18-2008 01:10 PM
serial Cor Questions & Help Needed 1 01-18-2008 12:49 PM
Serial OnCom Cor Questions & Help Needed 1 01-16-2008 02:05 PM
Serial Number Cableguy Questions & Help Needed 4 05-05-2007 07:06 AM


All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0