[Gambas-user] Saving multiple variables

Scott sclewin at ...1126...
Mon Sep 26 20:46:29 CEST 2005


Scott wrote:
> Thank you very much!  That works perfectly.
When I tested it it worked perfectly, but now when I try to implement 
this into my game I get this weird error, "unknown symbol 'save' in 
class 'menu'".  Am i doing something wrong or did I find a bug in 
v1.9.20?  Below I have placed the code that I am using for the save.

PUBLIC SUB Save_Click()

DIM destination AS String
    Dialog.Title = "Please select a name to save"
    Dialog.Filter = ["OpenHotels Save Game (*.save)"]
    IF NOT Dialog.SaveFile() THEN
        destination = Dialog.Path
        file.Save(destination, mstart.funds & "\n" & mstart.rooms & "\n" 
& mstart.status & "\n" & mstart.guest & "\n" & mstart.visibility & "\n" 
& mstart.wk & "\n" & mstart.yr & "\n" & mstart.totalmarket & "\n" & 
mstart.cp1 & "\n" & mstart.cp2 & "\n" & mstart.cp3 & "\n" & mstart.cp4 & 
"\n" & mstart.cp1funds & "\n" & mstart.cp2funds & "\n" & mstart.cp3funds 
& "\n" & mstart.cp4funds & "\n" & mstart.cp1rooms & "\n" & 
mstart.cp2rooms & "\n" & mstart.cp3rooms & "\n" & mstart.cp4rooms & "\n" 
& mstart.cp1status & "\n" & mstart.cp2status & "\n" & mstart.cp3status & 
"\n" & mstart.cp4status & "\n" & mstart.cp1guest)
    END IF
END

-- 
Your friend,
Scott

http://www.bmts.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20050926/b7c27873/attachment.html>


More information about the User mailing list