|
-
Feb 5th, 2002, 09:50 AM
#1
-
Feb 5th, 2002, 03:46 PM
#2
Good Ol' Platypus
Using the Get/Put commands, you can store User Defined Types and get them back again. For example:
VB Code:
Private Type UDT
ImageFileName As String
End Type
Function Save()
Dim A As UDT
R = InputBox("What is the file's name that you want to load?")
If R = "" Then Exit Function
A.ImageFileName = R
Open App.Path & "\data" For Random As #1
Put #1, , A
Close #1
End Function
Function Load() As Picture
Dim A As UDT
Open App.Path & "\data" For Random As #1
Get #1, , A
Close #1
Set Load = LoadPicture(A.ImageFileName)
End Function
Private Sub Command1_Click()
Save
Set Me.Picture = Load
End Sub
I made the code work
Last edited by Sastraxi; Feb 5th, 2002 at 03:49 PM.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
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
|