Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Please someone help me

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 13th Sep 2003 14:26
I am sure that I am missing something simple here but I just can't see it.

This is part of my save routine. I have created a folder (SaveAs$). In this folder there are two subfolders ("Tiles" and "Resources"). This part of the save routine looks through an array and flags in TempArray() which files to copy.

The second section (the one that deals with resources) works fine, it copies the correct files to the correct place no probs. However, the first part that does essentially the same thing only that it copies files to a different place (the "Tiles" folder instead of the "Resources" folder) refuses to copy anything at all!. I thought the UDT might be the weak spot but I have found that even if I REM out every line except the COPY FILE line and specifically name the file that I want to copy it refuses to do so!!!! I just don't understand what is happenig especially since the resources routine below which is the same code essentially works fine!!

Please can somebody take a look at this code and see where I am going wrong. I have been trying to sort this out for 2 days and it is stopping me releasing my program!



Thanks a lot guys,

OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 13th Sep 2003 14:37
I presume the filename is correct, and exists. I presume the destination file doesn't exist.

Finally, shouldn't "..\" be used instead of ".\"


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Sep 2003 15:02
wouldn`t

TileInfo(a).Name

be

TileInfo(a)Name$

not sure but I always use types like that, the other would be a number wouldn`t it? ,if it`s supposed to be a number shouldn`t it be

.....blah+str$(TileInfo(a).Name)+blah.........

just guessing cos I don`t know how you declared the type

Mentor.
bruceatk
22
Years of Service
User Offline
Joined: 25th Aug 2003
Location: Loudon, NH
Posted: 13th Sep 2003 15:54
What I do in situations like this is to assign those strings to a variable and then use the variable. Once they are in a variable it is easy to write them out to a logfile. That way you build them once and you can use them several times and see what their real values are.

Bruce

Login to post a reply

Server time is: 2026-07-23 15:49:19
Your offset time is: 2026-07-23 15:49:19