Announcement

Collapse
No announcement yet.

Is there any way of.....

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

  • Is there any way of.....

    ....placing the name of a selected printer into a string variable? The following code does not comple but it conveys what I want:
    Code:
    #COMPILE EXE
    FUNCTION PBMAIN () AS LONG
    local p as string
    
    COLOR 14,1
    CLS
    p = XPRINT ATTACH CHOOSE
    PRINT;p;
    WAITKEY$
    
    END FUNCTION
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

  • #2
    Mel,
    is this what you want?
    Code:
    FUNCTION PBMAIN () AS LONG
    XPRINT   ATTACH CHOOSE
    device$ = XPRINT$
    PRINT device$
    XPRINT CLOSE
    WAITKEY$
    END FUNCTION
    Paul.

    Comment


    • #3
      Yup. That's it. Much Grass!!
      There are no atheists in a fox hole or the morning of a math test.
      If my flag offends you, I'll help you pack.

      Comment

      Working...
      X