473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how do i specify coordinates when using write#

how do i specify coordinates when using write#. need to write at specific coordinate sin a file. eg. heading, starting at column 3 row 4.

please ,please help
Mar 30 '07 #1
5 1633
Rabbit
12,516 Expert Mod 8TB
Why does it have to be so specific?
Mar 30 '07 #2
ADezii
8,834 Expert 8TB
how do i specify coordinates when using write#. need to write at specific coordinate sin a file. eg. heading, starting at column 3 row 4.

please ,please help
You cannot write to specific coordinates with Write # or Print #, but you can control Horizontal and Vertical positioning to a degree:
Expand|Select|Wrap|Line Numbers
  1. Open "C:\Dell\Test.txt" For Append As #1
  2. Write #1, "Philadelphia " & "   " & "is " & Space(10) & " the city " & _
  3.                                    Chr(9) & "of brotherly " & Chr(9) & "love." & _
  4.                                    vbCrLf & "Not like Chicago!"
  5. Close #1
Output:
Expand|Select|Wrap|Line Numbers
  1. ‘Using Write #
  2. "Philadelphia    is            the city     of brotherly     love.
  3. Not like Chicago!"
  4.  
  5. ‘Using Print #
  6. Philadelphia    is            the city     of brotherly     love.
  7. Not like Chicago!
Mar 30 '07 #3
Denburt
1,356 Expert 1GB
You can also read line by line and when you get to the line you want you parse it then add your info and reconcatenate it.
Mar 30 '07 #4
ADezii
8,834 Expert 8TB
You can also read line by line and when you get to the line you want you parse it then add your info and reconcatenate it.
Good point to make.
Mar 30 '07 #5
NeoPa
32,556 Expert Mod 16PB
Also, there's a Tab(n) function which manages moving across the line to position n.
Mar 31 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Suresh Kumar | last post by:
Hi, In Tkinter, how to convert canvas coordinates to window coordinates? To convert window coordinates to canvas coordinates we are using "canvasx,canvasy". But how to do vice-versa? Iam using a...
19
by: Atif | last post by:
Hello all, In my html page I want to add an image say of 800x600. Now I want that when ever I am given two coordinates on this image say (x1, y1)=(50, 100) and (x2, y2)=(200, 300), the java script...
15
by: Tony Gahlinger | last post by:
I'm using my browser (Mozilla/5.0 Linux i686 Gecko/20031007 Firebird/0.7) to do some client-side image processing. I want to capture the sequence of coordinates a user clicks on in xxx.jpg in the...
0
by: deko | last post by:
I'm trying to implement a custom TreeView that shows a ghost image while dragging. But the form I'm using is different from the sample code found here:...
3
by: steve | last post by:
Hi All I have textboxes within a TableLayoutpanel and I want to be able to position an independant control adjacent to a selected textbox This independent control allows selection of text to...
3
by: jackiepatti | last post by:
QUESTION: I have a web page containing a form that contains an image instead of a submit button, e.g. <form name='myform' action='get' method='otherpage.asp'> <input type='image'...
3
by: Doug | last post by:
Hi I am trying to find a way to make the mouse cursor move to the keyboard cursor position in an application. For example, I use an application called Enterprise Guide, and I control this...
2
by: laredotornado | last post by:
Hi, I'm using php 4.4.4. Maybe I'm misreading the docs, but in the imagettfbbox manual (http://us2.php.net/imagettfbbox), it says that text coordinates are the same regardless of what the angle...
0
by: raylopez99 | last post by:
keywords: logical coordinates, page coordinates, world coordinates, device coordinates, physical coordinates, screen coordinates, client coordinates. offset rectangle. WYSIWYG rubber rectangle...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.