using blue gui, im trying to write an import function where i can load the object and at the same time save that same object to a media folder within the main program.
Anyway I was able to load and save the file using this code:
function eventImport()
open$=opendialog("Import File","DarkBasic Object (*.dbo)|*.dbo|DirectX (*.x)|*.x|All files(*.*)|*.*",1)
load object open$,obj
position object obj,rnd(100),0,rnd(100)
`inc obj,1
set dir "media"
save object "open$.dbo",obj
endfunction
problem is, it will save exactly like that "open$.dbo".
How do I save the object to dbo but using the objects actual name.
WindowsXP/SP2, Pentium 4 2.66 GHz, 1GB DDR Ram, Geforce 6600 256MB