Capitalize func changed; remove proj fixed

This commit is contained in:
Jayvant Javier Pujara 2012-11-16 23:19:46 -05:00
parent 2580d57372
commit ac4cf4849a
2 changed files with 8 additions and 3 deletions

View File

@ -111,10 +111,14 @@ Uppercase(String)
return String return String
} }
Capitalize(String) Capitalize(W)
{ {
StringUpper, String, String, T ;StringUpper, String, String, T
return String ;return String
Initial := SubStr(W, 1, 1)
StringUpper, Initial, Initial
StringTrimLeft, W, W, 1
return Initial . W
} }
SafeQuote(string) ; Escape single quotes for sql update. Insert doesn't seem to need it because the DB library handles it. SafeQuote(string) ; Escape single quotes for sql update. Insert doesn't seem to need it because the DB library handles it.

View File

@ -16,6 +16,7 @@ else
RemoveProjectYes: RemoveProjectYes:
Gui, RemoveProject:Submit, NoHide Gui, RemoveProject:Submit, NoHide
db.Query("DELETE FROM projects WHERE id = " SelectedProjectID ) db.Query("DELETE FROM projects WHERE id = " SelectedProjectID )
db.Query("DELETE FROM skills WHERE projectID = " . SelectedProjectID)
GuiChildClose("RemoveProject") GuiChildClose("RemoveProject")
RefreshSkillsList(FilterSkillSelected) RefreshSkillsList(FilterSkillSelected)
gosub FilterUpdate gosub FilterUpdate