On Jun 21, 2006, at 02:31 UTC, Aron Nelson wrote: > Does anyone have GetSaveInfo example code?
Hmm, the LR does, but (as is often the case) it's a very poor example, that even confuses me! Here's how you'd save a file reference, assuming there is no place that the file would sensibly be stored relative to: Dim saveInfo as String = theFile.GetSaveInfo( nil ) outp.WriteInt32 saveInfo.LenB outp.Write saveInfo Then, you'd load it up this way: Dim saveInfo as String = inp.Read( inp.ReadInt32 ) theFile = GetFolderItem( saveInfo ) Is easy, no? > I believe I have to save the GetSaveInfo string in a Binary > file, which saves it as a PString. No, you don't want to use PString because that only works for up to 255 bytes; a file's save info may well be more than that. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
