Announcement

Collapse
No announcement yet.

SPACE$ with PUT (bug?)

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

  • Phil Tippit
    replied
    John,

    The PUT Command requires a variable when is already defined.
    The PUT$ Command can build a string within the command.
    Code:
    EXAMPLE PUT
      a$=Space$(100)
      index&=101
      PUT #1,index&,a$  ' a variable name is required
    
    
    EXAMPLE PUT$
      index&=101
      Seek #1,index&
      PUT$ #1,space$(100)  ' can create a string
    Phil




    ------------------

    Leave a comment:


  • Dan Soper
    replied
    Shouldn't you use:
    PUT$ #1, SPACE$(487)
    for string data?


    ------------------
    --Dan

    Leave a comment:


  • John Kovacich
    started a topic SPACE$ with PUT (bug?)

    SPACE$ with PUT (bug?)

    Is there any reason why the following statement would generate a compiler error?

    PUT #1,1,SPACE$(487)

    It always gives me "Variable Expected"

    Is this a bug?

    ------------------
Working...
X
😀
🥰
🤢
😎
😡
👍
👎