From ac4cf4849af0ed441acca3fda0c450938afdc952 Mon Sep 17 00:00:00 2001 From: Jayvant Javier Pujara Date: Fri, 16 Nov 2012 23:19:46 -0500 Subject: [PATCH] Capitalize func changed; remove proj fixed --- Functions.ahk | 10 +++++++--- ProjectRemove.ahk | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Functions.ahk b/Functions.ahk index 0c0bd49..98fd4a1 100644 --- a/Functions.ahk +++ b/Functions.ahk @@ -111,10 +111,14 @@ Uppercase(String) return String } -Capitalize(String) +Capitalize(W) { - StringUpper, String, String, T - return String + ;StringUpper, String, String, T + ;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. diff --git a/ProjectRemove.ahk b/ProjectRemove.ahk index 7806070..8917b6a 100644 --- a/ProjectRemove.ahk +++ b/ProjectRemove.ahk @@ -16,6 +16,7 @@ else RemoveProjectYes: Gui, RemoveProject:Submit, NoHide db.Query("DELETE FROM projects WHERE id = " SelectedProjectID ) + db.Query("DELETE FROM skills WHERE projectID = " . SelectedProjectID) GuiChildClose("RemoveProject") RefreshSkillsList(FilterSkillSelected) gosub FilterUpdate