-
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.....
-
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
-
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?
-
Re: vb6 Print help
Only if you pass everything that needs to be recalled to your function.
-
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.