Results 1 to 4 of 4

Thread: Printing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987

    Question

    How would I go about printing an array of values using the API (or any other useful way)?

    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  2. #2
    Junior Member
    Join Date
    May 2000
    Posts
    24
    Print to the screen or print to a printer? Oh well, to get the values from myArray in sequential order, separated by commas in myString, just do a For-Next loop.

    Code:
    Dim i As Integer
    Dim sizeOfArray As Integer
    Dim myString As String
    
    For i = 0 To sizeOfArray
         myString = myString & myArray(i) & ","
    Next i
    In VB6 I believe there is a code to get the size of an array. I think

    Code:
    UBound(arrayName As Array)
    returns the upper bound of an array. I hope this helps.

    -CD

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    Thanks but I meant how do you actually print the values to the printer, i.e. what are some API calls and how are they used. Thanks anyway though .
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  4. #4
    Lively Member
    Join Date
    May 1999
    Location
    Atlanta, GA
    Posts
    75

    Talking

    Actually, you will not to use API's to accomplish printing. Check out the printer object included in VB's environment (either through the help documentation or using the object browser) and see if this helps you. If you still have individual questions post them back here and we'll see what we can do.

    Jay D Zimmerman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width