News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

print a tab to a textfile

Started by Mercator, February 04, 2014, 12:13:29 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Mercator

Hi,
With "print #1, textb$,x(j),y(j),z(j)" the coordinates get separated by a space.
I need this space to be a tab.
How do i do this?
This does not work!:
textc$ = textb$+CHR$(9)+x(j)+CHR$(9)+y(j)+CHR$(9)+z(j)
print #1, textc$
Thanks for your time.


prl

Mercator,

do something like this

 
  .
  .
  .
  textb$ = "some text of yours"
 
  'convert reals into string
  precision 15
  x1$=x(j)
  y1$=y(j)
  z1$=z(j)
  tab$=chr$(9)
  tot$=textb$+tab$+x1$+tab$+y1$+tab$+z1$
  print #1, tot$

  .
  .
  .

Mercator