Solved

stop carriage return @ end of line

Posted on 2007-04-06
1
193 Views
Last Modified: 2013-11-27
HI
Small question
While printing text in TXT document through VB i want to stop carriage return at the end of line
0
Comment
Question by:Salalah_Port_Services
1 Comment
 
LVL 15

Accepted Solution

by:
Ryan_R earned 50 total points
ID: 18868704
Hi Salalah_Port_Services,

You can easily do this in VB by putting a semicolon at the end of the statement  (;)

ie:

Print #1, "This code WON'T have a carriage return after it";

(note the ; at the end)

Hope this helps

Ryan R
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question