Announcement

Collapse
No announcement yet.

"Invalid destination specified."

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Invalid destination specified."

    Hi all

    I built a small app which i need users to change their profile pic, i added the following Code to the Avatar image so when they click on it a dialog open to get the new image , but its not working and it returns the error 1020 "Invalid destination specified."

    this is the Code :

    Code:
    result = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "Pictures (.png)|*.png|", "", "dat", false, false);
    File.Copy(result[1], "AutoPlay\\Images\\", true, true, false, true, nil);
    Image.Load("Avatar", result[1]);
    I know there is something wrong and very silly but i couldn't manage to find it .

    Thanks

  • #2


    difficult to copy a png file into an exe file

    Comment


    • #3
      What exe File ? the Destination is the image folder in project folders, did i miss something, or wrote something wrong ?

      Comment


      • #4
        I was thinking about the built file


        my old code:
        PHP Code:
        DestFolder _SourceFolder.."\\AutoPlay\\Images\"
        sValue = Dialog.FileBrowse(true, "
        File Import", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);
        File.Copy(sValue[1], DestFolder, true, true, false, true, nil) 

        Comment


        • #5
          DestFolder = _SourceFolder.."\\AutoPlay\\Images"

          Thank u so much herrin , this was the missing thing



          Comment

          Working...
          X