Announcement

Collapse
No announcement yet.

imbedding tabs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • imbedding tabs

    I need to write a line to a file that has data separated by tabs.

    I thought that it would be something like:

    sData = string1+TAB$+string2+TAB$ . . . etc.

    This will not compile. I have tried CHR((9) - same result.

    Evidently this is not how TAB$ works, but how do I do this?

    Help will be appreciated.

    Thanks

    RC Schroeder

  • #2
    I believe you need to use $TAB instead of TAB$
    Paul Squires
    FireFly Visual Designer (for PowerBASIC Windows 10+)
    Version 3 now available.
    http://www.planetsquires.com

    Comment


    • #3
      ... or CHR$(9)
      Paul Squires
      FireFly Visual Designer (for PowerBASIC Windows 10+)
      Version 3 now available.
      http://www.planetsquires.com

      Comment


      • #4
        Wow, that compiled, thanks.

        Now I have to test and take a look at the output, but the compiler liked that syntax.

        But where do you find any reference to $TAB in the help file?

        Search did not find it, and I could not find anything that started with a $.

        Thanks,

        RCS

        Comment


        • #5
          Search for: "built-in string equates"
          Regards,
          Peter

          Comment


          • #6
            > Search for: "built-in string equates" ...

            If that program compiled, also search for #DIM ALL. That would have told you "TAB$" was not a built-in equate and CHR() was an un-defined array.

            If you are new, the use of #DIM ALL is IMO a very good habit to acquire.


            MCM
            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment

            Working...
            X