Results 1 to 5 of 5

Thread: vb6 Print help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    28

    vb6 Print help

    so i am trying to make a recall button, it recalls a form that is searched.
    so this is in a public sub called 'Recall()'
    I want to make it so when you press the button label3 shows what is recalled.

    is this possible?
    my failed attempts:
    Code:
    label3.caption = call Recall
    Code:
    label3.caption = print Recall
    is there a write function?
    please help im clueless.....

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: vb6 Print help

    Your Recall Subroutine should be a Function which returns a string value
    For example
    Code:
    Option Explicit
    
    Private Function Recall() As String
    Recall = "Recalled Value"
    End Function
    
    Private Sub Command_Click()
    Label1.Caption = Recall
    End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    28

    Re: vb6 Print help

    In recall there are multiple print values
    example
    Code:
    print #input, "Name:"
    print #input, fname
    will all of this show as a label caption?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: vb6 Print help

    Only if you pass everything that needs to be recalled to your function.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    28

    Re: vb6 Print help

    i get runtime error 424 : object required
    it highlights this
    Code:
    Open file.path & "/cr/" & cfname & " " & clname & ".urs" For Input As findcus
    I checked the file and it is set correctly
    please help.

Tags for this Thread

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