|
-
Mar 24th, 2011, 12:10 AM
#1
Thread Starter
Junior Member
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.....
-
Mar 24th, 2011, 12:46 AM
#2
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
-
Mar 24th, 2011, 07:22 PM
#3
Thread Starter
Junior Member
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?
-
Mar 25th, 2011, 08:05 AM
#4
Re: vb6 Print help
Only if you pass everything that needs to be recalled to your function.
-
Mar 25th, 2011, 11:29 PM
#5
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|