[Gambas-user] DirChooser1.Refresh ' Not refresh after delete

Demosthenes Koptsis demosthenesk at ...626...
Tue Jan 26 14:01:03 CET 2010


PUBLIC SUB Button1_Click()
  DIM hProcess AS Process
  DIM sPath AS String = DirChooser1.SelectedPath

  sPath = Replace$(sPath, " ", "\\ ")
  sPath = Replace$(sPath, "(", "\\(")
  sPath = Replace$(sPath, ")", "\\)")
  sPath = Replace$(sPath, "?", "\\?")
  sPath = Replace$(sPath, "<", "\\<")
  sPath = Replace$(sPath, ">", "\\>")
  sPath = Replace$(sPath, ";", "\\;")
  sPath = Replace$(sPath, ":", "\\:")
  sPath = Replace$(sPath, "\"", "\\\"")
  sPath = Replace$(sPath, "'", "\\'")
  sPath = Replace$(sPath, "|", "\\|")
  sPath = Replace$(sPath, "[", "\\]")
  sPath = Replace$(sPath, "]", "\\[")
  sPath = Replace$(sPath, "{", "\\{")
  sPath = Replace$(sPath, "}", "\\}")
  sPath = Replace$(sPath, "`", "\\`")
  sPath = Replace$(sPath, "!", "\\!")
  sPath = Replace$(sPath, "$", "\\$")
  sPath = Replace$(sPath, "&", "\\&")
  sPath = Replace$(sPath, "*", "\\*")
  sPath = Replace$(sPath, "=", "\\=")


  hProcess = SHELL "rm -rf " & sPath
  DirChooser1.SelectedPath = Application.Path & "/sets"
  DirChooser1.Refresh  '<--- Not refresh after delete


CATCH
Message.Error(Error.Text)



-- 

Γεια χαρα σε όλους!!!

Regards,

Demosthenes Koptsis



More information about the User mailing list