Jump to content

Sql reading issues


Recommended Posts

hello there ppl...

I've been trying to read specific information from a table but no success, let me explain a bit more.

As I see it there's one table e.g "Student Info" with a bunch of columns like Student Number, Name, Surname, Age and so forth...

The issue here is not to fetch the data and then display an array of the values collected from each column header and records, this runs well indeed, but lets say for instance you have a small gui with the basic info, Lables Student Number, Name, Surname, Age and inputs just beneath each of the labels I can perfectly write the data to the specific column in theStudentInfo table STRUCTURED as(StudentNumber, StudentName, StudentSurname, StudentAge) using

_sql_fastescape_

But my problem here is, I can't read specific information from the database table to the controls

Like if a user wants open the info of StudentName gathered from Input 1 to get just the specific information for that whole row in the table using input 1 as the row identifier...

I hope this is clear enough, can anyone help me?

Edited by ac1dm4nner

[u]My dream is to have a dream...[/u]

Link to comment
Share on other sites

What are you trying to do? It isn't at all clear from your post.

Are you after getting data for a specific student by name?

select StudentNumber, StudentName, StudentSurname, StudentAge from "Student Info" WHERE StudentName = 'ac1dm4nner';

BTW, storing StudentAge is a poor idea: your DB will be obsolete in few months. Store birthdate instead.

Also you only need to escape string litterals (so that the single quotes they may contain get doubled)

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

yes Let me show you what I mean with my script

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile_type=a3x
#EndRegion
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#include <_SQLite_easy.au3>
Opt("GUIResizeMode", $GUI_DOCKAUTO)
Opt("GUIOnEventMode", 1)
Opt("GUIDataSeparatorChar", "|")
Global $DTM_SETFORMAT_ = $dts_longdateformat
#Region ### START Koda GUI section ### Form=c:usersac1dm4ndesktopryno stuff8 gigiproject mogolo 1codingformsnew design.kxf
$Form1 = GUICreate("Student Database - Version 2.0.0.0.9001 SQL Build", 639, 600, 205, 110, BitOR($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX))
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$MenuItem1 = GUICtrlCreateMenu("&File ")
$MenuItem4 = GUICtrlCreateMenuItem("Open Student  File     "&@TAB&"F2", $MenuItem1)
GUICtrlSetOnEvent(-1, "MenuOpen")
$MenuItem5 = GUICtrlCreateMenuItem("Close Student  File     "&@TAB&"F3", $MenuItem1)
$MenuItem6 = GUICtrlCreateMenuItem("Save Student   File     "&@TAB&"F4", $MenuItem1)
Guictrlsetonevent(-1, "MenuSaveEvent")
$MenuItem7 = GUICtrlCreateMenuItem("Delete Student File     "&@TAB&"F5", $MenuItem1)
$MenuItem9 = GUICtrlCreateMenuItem("", $MenuItem1)
$MenuItem8 = GUICtrlCreateMenuItem("Exit                         "&@TAB&"Ctrl+X", $MenuItem1)
$MenuItem2 = GUICtrlCreateMenu("&Tools")
$MenuItem10 = GUICtrlCreateMenu("Import", $MenuItem2)
$MenuItem11 = GUICtrlCreateMenu("Scanned Certificates", $MenuItem10)
$MenuItem12 = GUICtrlCreateMenuItem("Primary", $MenuItem11)
$MenuItem13 = GUICtrlCreateMenuItem("Secondary", $MenuItem11)
$MenuItem14 = GUICtrlCreateMenu("Print", $MenuItem2)
$MenuItem15 = GUICtrlCreateMenuItem("Student File Information", $MenuItem14)
$MenuItem16 = GUICtrlCreateMenu("Certificates", $MenuItem14)
$MenuItem17 = GUICtrlCreateMenuItem("Primary", $MenuItem16)
$MenuItem18 = GUICtrlCreateMenuItem("Secondary", $MenuItem16)
$MenuItem3 = GUICtrlCreateMenu("&Help")
$MenuItem19 = GUICtrlCreateMenuItem("About...", $MenuItem3)
GUICtrlSetOnEvent(-1, "MenuAbout")
$MenuItem20 = GUICtrlCreateMenuItem("Help File", $MenuItem3)
$MenuItem21 = GUICtrlCreateMenuItem("Report A Bug", $MenuItem3)
GUISetBkColor(0xFFFFFF)
$Tab1 = GUICtrlCreateTab(176, 160, 457, 417, $TCS_HOTTRACK)
$TabSheet1 = GUICtrlCreateTabItem("Student Information")
$Group1 = GUICtrlCreateGroup("Student Information", 184, 192, 425, 377)
$Label1 = GUICtrlCreateLabel("Student Number:", 192, 224, 84, 17)
$Label2 = GUICtrlCreateLabel("First Name:", 192, 256, 57, 17)
$Label3 = GUICtrlCreateLabel("Middle Name:", 192, 288, 69, 17)
$Label4 = GUICtrlCreateLabel("Surname:", 192, 320, 49, 17)
$Label5 = GUICtrlCreateLabel("ID Number:", 192, 352, 58, 17)
$Label6 = GUICtrlCreateLabel("Age:", 192, 384, 26, 17)
$Label7 = GUICtrlCreateLabel("Gender:", 192, 416, 42, 17)
$Label8 = GUICtrlCreateLabel("Course Attending:", 192, 448, 88, 17)
$Label9 = GUICtrlCreateLabel("Year:", 192, 504, 29, 17)
$Label10 = GUICtrlCreateLabel("Block:", 192, 528, 34, 17)
$Input1 = GUICtrlCreateInput("Input1", 320, 224, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetTip(-1, "S")
$Input2 = GUICtrlCreateInput("Input2", 320, 256, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input3 = GUICtrlCreateInput("Input3", 320, 288, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input4 = GUICtrlCreateInput("Input4", 320, 320, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input5 = GUICtrlCreateInput("Input5", 320, 352, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input6 = GUICtrlCreateInput("Input6", 320, 384, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Combo1 = GUICtrlCreateCombo("", 320, 416, 161, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Male|Female")
$Input8 = GUICtrlCreateInput("Input8", 320, 496, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input9 = GUICtrlCreateInput("Input9", 320, 528, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Combo6 = GUICtrlCreateCombo("Combo6", 320, 448, 161, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
$Button2 = GUICtrlCreateButton("Add course", 320, 472, 163, 17)
GUICtrlSetColor(-1, 0x808000)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet2 = GUICtrlCreateTabItem("Course Information")
$Group3 = GUICtrlCreateGroup("Course Information", 192, 192, 425, 377)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Group4 = GUICtrlCreateGroup("", 200, 208, 201, 353)
$Label11 = GUICtrlCreateLabel("Date of First Register:", 208, 288, 106, 17)
$Date1 = GUICtrlCreateDate("2004/10/22 13:09:2", 208, 312, 186, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label12 = GUICtrlCreateLabel("Duration:", 208, 360, 47, 17)
$Input10 = GUICtrlCreateInput("Input10", 272, 360, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label13 = GUICtrlCreateLabel("Cost:", 208, 384, 28, 17)
$Input11 = GUICtrlCreateInput("Input11", 272, 384, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label14 = GUICtrlCreateLabel("Block:", 208, 408, 34, 17)
$Input12 = GUICtrlCreateInput("Input12", 272, 408, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label15 = GUICtrlCreateLabel("First Timer:", 208, 480, 55, 17)
$Input13 = GUICtrlCreateInput("Input13", 272, 480, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label16 = GUICtrlCreateLabel("Repeater:", 208, 504, 51, 17)
$Input14 = GUICtrlCreateInput("Input14", 272, 504, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label17 = GUICtrlCreateLabel("Attendance Per Block:", 208, 528, 111, 17)
$Input15 = GUICtrlCreateInput("Input15", 320, 528, 73, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label133 = GUICtrlCreateLabel("Course:", 208, 224, 47, 17)
$Combo7 = GUICtrlCreateCombo("Combo7", 208, 248, 185, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group5 = GUICtrlCreateGroup("", 408, 208, 201, 353)
$Label18 = GUICtrlCreateLabel("# Times In Level:", 416, 224, 86, 17)
$Input16 = GUICtrlCreateInput("Input16", 504, 224, 97, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label19 = GUICtrlCreateLabel("Level:", 416, 248, 33, 17)
$Input17 = GUICtrlCreateInput("Input17", 480, 248, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label20 = GUICtrlCreateLabel("Subject:", 416, 272, 43, 17)
$Input18 = GUICtrlCreateInput("Input18", 480, 272, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label21 = GUICtrlCreateLabel("Facilitator:", 416, 296, 52, 17)
$Input19 = GUICtrlCreateInput("Input19", 480, 296, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label22 = GUICtrlCreateLabel("Level:", 416, 360, 33, 17)
$Input20 = GUICtrlCreateInput("Input20", 480, 360, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label23 = GUICtrlCreateLabel("Subject:", 416, 384, 43, 17)
$Input21 = GUICtrlCreateInput("Input21", 480, 384, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label24 = GUICtrlCreateLabel("Facilitator:", 416, 408, 52, 17)
$Input22 = GUICtrlCreateInput("Input22", 480, 408, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label25 = GUICtrlCreateLabel("Level:", 416, 480, 33, 17)
$Input23 = GUICtrlCreateInput("Input23", 480, 480, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label26 = GUICtrlCreateLabel("Subject:", 416, 504, 43, 17)
$Input24 = GUICtrlCreateInput("Input24", 480, 504, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label27 = GUICtrlCreateLabel("Facilitator:", 416, 528, 52, 17)
$Input25 = GUICtrlCreateInput("Input25", 480, 528, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet3 = GUICtrlCreateTabItem("Personal Details")
$Group6 = GUICtrlCreateGroup("Personal Details", 184, 192, 441, 377)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Group7 = GUICtrlCreateGroup("", 192, 208, 193, 353)
$Label28 = GUICtrlCreateLabel("Initials:", 200, 224, 45, 17)
$Input26 = GUICtrlCreateInput("Input26", 200, 248, 169, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label29 = GUICtrlCreateLabel("Title:", 200, 272, 33, 17)
$Input27 = GUICtrlCreateInput("Input27", 200, 296, 169, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label30 = GUICtrlCreateLabel("Equity:", 200, 320, 43, 17)
$Input28 = GUICtrlCreateInput("Input28", 200, 344, 169, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label31 = GUICtrlCreateLabel("Gender:", 200, 392, 49, 17)
$Combo2 = GUICtrlCreateCombo("", 200, 416, 169, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Male|Female")
$Label32 = GUICtrlCreateLabel("Nationality:", 200, 448, 68, 17)
$Input29 = GUICtrlCreateInput("Input29", 200, 472, 169, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label33 = GUICtrlCreateLabel("Citizen Status:", 200, 504, 86, 17)
$Input30 = GUICtrlCreateInput("Input30", 200, 528, 169, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group8 = GUICtrlCreateGroup("", 392, 208, 209, 353)
$Label34 = GUICtrlCreateLabel("Date of Birth:", 400, 224, 80, 17)
$Date2 = GUICtrlCreateDate("2012/12/02 08:38:19", 400, 248, 186, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetCursor (-1, 0)
$Label35 = GUICtrlCreateLabel("Disability Description:", 400, 280, 127, 17)
$Edit1 = GUICtrlCreateEdit("", 400, 304, 185, 73, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Edit1")
$Label36 = GUICtrlCreateLabel("Home Language:", 400, 392, 100, 17)
$Input31 = GUICtrlCreateInput("Input31", 400, 416, 185, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label37 = GUICtrlCreateLabel("Alternative ID Type:", 400, 448, 118, 17)
$Input32 = GUICtrlCreateInput("Input32", 400, 472, 185, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label38 = GUICtrlCreateLabel("ID no:", 400, 504, 39, 17)
$Input33 = GUICtrlCreateInput("Input33", 400, 528, 185, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet4 = GUICtrlCreateTabItem("Contact Details")
$Group9 = GUICtrlCreateGroup("Contact Details", 184, 192, 441, 377)
$Group10 = GUICtrlCreateGroup("", 192, 208, 185, 321)
$Label39 = GUICtrlCreateLabel("Phone Number:", 200, 224, 78, 17)
$Input34 = GUICtrlCreateInput("Input34", 200, 248, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label40 = GUICtrlCreateLabel("Cell Number:", 200, 288, 64, 17)
$Input35 = GUICtrlCreateInput("Input35", 200, 312, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label41 = GUICtrlCreateLabel("Fax Number:", 200, 344, 64, 17)
$Input36 = GUICtrlCreateInput("Input36", 200, 368, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label42 = GUICtrlCreateLabel("Home Address:", 200, 400, 76, 17)
$Input37 = GUICtrlCreateInput("Input37", 200, 424, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label43 = GUICtrlCreateLabel("E-mail Address:", 200, 456, 76, 17)
$Input38 = GUICtrlCreateInput("Input38", 200, 488, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group11 = GUICtrlCreateGroup("", 400, 224, 201, 305)
$Label44 = GUICtrlCreateLabel("Postal Address:", 464, 248, 77, 17)
$Edit2 = GUICtrlCreateEdit("", 408, 280, 185, 193, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Edit2")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet6 = GUICtrlCreateTabItem("Employement Details")
$Group12 = GUICtrlCreateGroup("Employement Details:", 184, 192, 441, 377)
$Group13 = GUICtrlCreateGroup("", 192, 208, 177, 353)
$Radio1 = GUICtrlCreateRadio("Employed", 200, 224, 113, 17)
$Radio2 = GUICtrlCreateRadio("Unemployed", 200, 248, 113, 17)
$Label45 = GUICtrlCreateLabel("Employer:", 208, 280, 50, 17)
$Input39 = GUICtrlCreateInput("Input39", 208, 304, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label46 = GUICtrlCreateLabel("Manager:", 208, 344, 49, 17)
$Input40 = GUICtrlCreateInput("Input40", 208, 368, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label47 = GUICtrlCreateLabel("Job Title:", 208, 400, 47, 17)
$Input41 = GUICtrlCreateInput("Input41", 208, 424, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label48 = GUICtrlCreateLabel("Department:", 208, 456, 62, 17)
$Input42 = GUICtrlCreateInput("Input42", 208, 480, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label49 = GUICtrlCreateLabel("Province:", 208, 504, 49, 17)
$Combo3 = GUICtrlCreateCombo("Combo3", 208, 528, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet7 = GUICtrlCreateTabItem("Emergency Contact Details")
$Group14 = GUICtrlCreateGroup("Emergency Contact Details:", 184, 192, 441, 377)
$Group15 = GUICtrlCreateGroup("Next of Kin:", 192, 208, 177, 353)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Label50 = GUICtrlCreateLabel("Name:", 208, 232, 40, 17)
$Input43 = GUICtrlCreateInput("Input43", 208, 256, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label51 = GUICtrlCreateLabel("Relationship:", 208, 296, 78, 17)
$Input44 = GUICtrlCreateInput("Input44", 208, 320, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label52 = GUICtrlCreateLabel("Residential Address:", 208, 360, 120, 17)
$Input45 = GUICtrlCreateInput("Input45", 208, 384, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label53 = GUICtrlCreateLabel("Cell #:", 208, 424, 41, 17)
$Input46 = GUICtrlCreateInput("Input46", 208, 448, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label54 = GUICtrlCreateLabel("Home #:", 208, 488, 52, 17)
$Input47 = GUICtrlCreateInput("Input47", 208, 512, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group18 = GUICtrlCreateGroup("Medical Aid:", 384, 208, 153, 73)
$Radio3 = GUICtrlCreateRadio("Yes", 392, 224, 113, 17)
$Radio4 = GUICtrlCreateRadio("no", 392, 248, 113, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet8 = GUICtrlCreateTabItem("Guardian Contact Details")
$Group16 = GUICtrlCreateGroup("Guardian Conact Details:", 184, 192, 441, 377)
$Group17 = GUICtrlCreateGroup("", 192, 208, 169, 353)
$Label56 = GUICtrlCreateLabel("Name:", 200, 232, 35, 17)
$Input48 = GUICtrlCreateInput("Input48", 200, 256, 137, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label57 = GUICtrlCreateLabel("ID #:", 200, 288, 28, 17)
$Input49 = GUICtrlCreateInput("Input49", 200, 312, 137, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label58 = GUICtrlCreateLabel("Home Address::", 200, 344, 79, 17)
$Input50 = GUICtrlCreateInput("Input50", 200, 368, 137, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label59 = GUICtrlCreateLabel("Home #:", 200, 400, 45, 17)
$Input51 = GUICtrlCreateInput("Input51", 200, 424, 137, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label60 = GUICtrlCreateLabel("Cell #:", 200, 456, 34, 17)
$Input52 = GUICtrlCreateInput("Input52", 200, 480, 137, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group19 = GUICtrlCreateGroup("", 376, 216, 201, 337)
$Label55 = GUICtrlCreateLabel("Postal Address:", 424, 232, 77, 17)
$Edit3 = GUICtrlCreateEdit("", 384, 264, 185, 217, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Edit3")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet9 = GUICtrlCreateTabItem("Educational History")
$Group20 = GUICtrlCreateGroup("Educational History:", 184, 192, 441, 377)
$Group21 = GUICtrlCreateGroup("Primary", 192, 208, 145, 353)
$Label61 = GUICtrlCreateLabel("Highest Level Passed:", 200, 232, 110, 17)
$Input53 = GUICtrlCreateInput("Input53", 200, 256, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label62 = GUICtrlCreateLabel("Institution/School:", 200, 280, 90, 17)
$Input54 = GUICtrlCreateInput("Input54", 200, 304, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label63 = GUICtrlCreateLabel("Year Obtained:", 200, 328, 75, 17)
$Input55 = GUICtrlCreateInput("Input55", 200, 352, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label64 = GUICtrlCreateLabel("Subjects:", 200, 384, 48, 17)
$MyButton1 = GUICtrlCreateButton("View/Add", 200, 408, 124, 30, BitOR($BS_NOTIFY,$BS_FLAT))
$Label65 = GUICtrlCreateLabel("Certificates:", 200, 488, 59, 17)
$MyButton2 = GUICtrlCreateButton("View/Add", 200, 512, 124, 30, BitOR($BS_NOTIFY,$BS_FLAT))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group22 = GUICtrlCreateGroup("Secondary", 344, 208, 145, 353)
$Label66 = GUICtrlCreateLabel("Highest Level Passed:", 352, 232, 110, 17)
$Input56 = GUICtrlCreateInput("Input56", 352, 256, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label67 = GUICtrlCreateLabel("Institution/School:", 352, 280, 90, 17)
$Input57 = GUICtrlCreateInput("Input57", 352, 304, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label68 = GUICtrlCreateLabel("Year Obtained:", 352, 328, 75, 17)
$Input58 = GUICtrlCreateInput("Input58", 352, 352, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label69 = GUICtrlCreateLabel("Subjects:", 352, 384, 48, 17)
$MyButton3 = GUICtrlCreateButton("View/Add", 352, 408, 124, 30, BitOR($BS_NOTIFY,$BS_FLAT))
$Label70 = GUICtrlCreateLabel("Certificates:", 352, 488, 59, 17)
$MyButton4 = GUICtrlCreateButton("View/Add", 352, 512, 124, 30, BitOR($BS_NOTIFY,$BS_FLAT))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group23 = GUICtrlCreateGroup("Abet", 496, 208, 121, 177)
$Label71 = GUICtrlCreateLabel("Previous Abet Level:", 504, 232, 102, 17)
$Input59 = GUICtrlCreateInput("Input59", 504, 256, 105, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label72 = GUICtrlCreateLabel("Year Attended:", 504, 280, 75, 17)
$Input60 = GUICtrlCreateInput("Input60", 504, 304, 105, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label73 = GUICtrlCreateLabel("Block Attended:", 504, 328, 80, 17)
$Input61 = GUICtrlCreateInput("Input61", 504, 352, 105, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group24 = GUICtrlCreateGroup("N Levels", 496, 384, 121, 177)
$Label74 = GUICtrlCreateLabel("Subjects:", 504, 400, 48, 17)
$MyButton5 = GUICtrlCreateButton("View/Add", 504, 416, 108, 22, BitOR($BS_NOTIFY,$BS_FLAT))
$Label75 = GUICtrlCreateLabel("Level Attended:", 504, 440, 79, 17)
$Input62 = GUICtrlCreateInput("Input62", 504, 464, 105, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label76 = GUICtrlCreateLabel("Year Attended:", 504, 488, 75, 17)
$Input63 = GUICtrlCreateInput("Input63", 504, 512, 105, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet10 = GUICtrlCreateTabItem("Screening History")
$Group25 = GUICtrlCreateGroup("Screening History", 184, 192, 441, 377)
$Group26 = GUICtrlCreateGroup("RESULTS IF APPLICABLE", 192, 208, 425, 353)
$Group27 = GUICtrlCreateGroup("", 200, 224, 129, 321)
$Label77 = GUICtrlCreateLabel("Subjects:", 208, 240, 48, 17)
$MyButton6 = GUICtrlCreateButton("View/add", 208, 264, 116, 30, BitOR($BS_NOTIFY,$BS_FLAT))
$Label78 = GUICtrlCreateLabel("Level:", 208, 312, 33, 17)
$Input64 = GUICtrlCreateInput("Input64", 208, 336, 113, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label79 = GUICtrlCreateLabel("Date:", 208, 360, 30, 17)
$Date3 = GUICtrlCreateDate("2012/02/12 10:14:14", 208, 384, 114, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group28 = GUICtrlCreateGroup("", 336, 224, 129, 193)
$Label80 = GUICtrlCreateLabel("Subjects:", 344, 240, 48, 17)
$Label81 = GUICtrlCreateLabel("Level:", 344, 312, 33, 17)
$Label82 = GUICtrlCreateLabel("Date:", 344, 360, 30, 17)
$MyButton7 = GUICtrlCreateButton("View/Add", 344, 264, 108, 30, BitOR($BS_NOTIFY,$BS_FLAT))
$Input65 = GUICtrlCreateInput("Input65", 344, 336, 113, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Date4 = GUICtrlCreateDate("2012/02/12 10:24:44", 344, 384, 114, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group29 = GUICtrlCreateGroup("", 472, 224, 137, 321)
$Label84 = GUICtrlCreateLabel("Subjects:", 480, 240, 48, 17)
$MyButton8 = GUICtrlCreateButton("View/Add", 480, 264, 116, 30, BitOR($BS_NOTIFY,$BS_FLAT))
$Label85 = GUICtrlCreateLabel("Level:", 480, 312, 33, 17)
$Input66 = GUICtrlCreateInput("Input66", 480, 336, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label86 = GUICtrlCreateLabel("Date:", 480, 360, 30, 17)
$Date5 = GUICtrlCreateDate("2012/02/12 10:30:49", 480, 384, 122, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group30 = GUICtrlCreateGroup("Recommended Starting", 336, 416, 129, 129)
$Label83 = GUICtrlCreateLabel("Level:", 344, 440, 33, 17)
$Combo4 = GUICtrlCreateCombo("Combo4", 344, 472, 113, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet11 = GUICtrlCreateTabItem("Payment History")
$Group31 = GUICtrlCreateGroup("Payment History", 184, 192, 441, 377)
$Group32 = GUICtrlCreateGroup("", 192, 208, 417, 345, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label87 = GUICtrlCreateLabel("Course:", 200, 224, 40, 17)
$Label88 = GUICtrlCreateLabel("Level:", 200, 248, 33, 17)
$Input68 = GUICtrlCreateInput("Input68", 248, 248, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label89 = GUICtrlCreateLabel("Block:", 200, 272, 34, 17)
$Input69 = GUICtrlCreateInput("Input69", 248, 272, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label90 = GUICtrlCreateLabel("Price:", 200, 296, 31, 17)
$Input70 = GUICtrlCreateInput("Input70", 248, 296, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label91 = GUICtrlCreateLabel("Payment Type:", 200, 360, 75, 17)
$Combo5 = GUICtrlCreateCombo("Combo5", 200, 384, 169, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "EFT|Cash|Cheque")
$Label92 = GUICtrlCreateLabel("Person Responsible for Payment:", 200, 416, 160, 17)
$Input71 = GUICtrlCreateInput("Input71", 200, 440, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label93 = GUICtrlCreateLabel("Receipt#:", 200, 464, 51, 17)
$Input72 = GUICtrlCreateInput("Input72", 200, 488, 161, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label94 = GUICtrlCreateLabel("Payment Setup", 384, 224, 76, 17)
$Label95 = GUICtrlCreateLabel("Full Amount:", 384, 248, 62, 17)
$Input73 = GUICtrlCreateInput("Input73", 480, 248, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label96 = GUICtrlCreateLabel("Date:", 384, 272, 30, 17)
$Date6 = GUICtrlCreateDate("2012/02/12 10:39:1", 424, 272, 178, 21)
$Label97 = GUICtrlCreateLabel("Deposit Amount:", 384, 296, 82, 17)
$Input74 = GUICtrlCreateInput("Input74", 480, 296, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label98 = GUICtrlCreateLabel("Date:", 384, 320, 30, 17)
$Date7 = GUICtrlCreateDate("2012/02/12 10:39:57", 424, 320, 178, 21)
$Label99 = GUICtrlCreateLabel("Monthly Amount:", 384, 344, 83, 17)
$Input75 = GUICtrlCreateInput("Input75", 480, 344, 121, 21)
$Label100 = GUICtrlCreateLabel("Date:", 384, 368, 30, 17)
$Date8 = GUICtrlCreateDate("2012/02/12 10:41:25", 424, 368, 178, 21)
$Label101 = GUICtrlCreateLabel("PAYMENT RECORD", 384, 392, 105, 17)
$Label102 = GUICtrlCreateLabel("Total Owing:", 384, 416, 64, 17)
$Input76 = GUICtrlCreateInput("Input76", 480, 416, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label103 = GUICtrlCreateLabel("Paid to Date:", 384, 448, 66, 17)
$Input77 = GUICtrlCreateInput("Input77", 480, 448, 121, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label104 = GUICtrlCreateLabel("Amount outstanding:", 384, 488, 101, 17)
$Input78 = GUICtrlCreateInput("Input78", 488, 488, 113, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Combo8 = GUICtrlCreateCombo("Combo8", 245, 221, 129, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet12 = GUICtrlCreateTabItem("Comments")
$Group33 = GUICtrlCreateGroup("Comments", 184, 192, 441, 377)
$Group34 = GUICtrlCreateGroup("", 192, 208, 217, 353)
$Label105 = GUICtrlCreateLabel("Dropped:", 200, 224, 48, 17)
$Input79 = GUICtrlCreateInput("Input79", 256, 224, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label106 = GUICtrlCreateLabel("Reason:", 200, 248, 44, 17)
$Input80 = GUICtrlCreateInput("Input80", 256, 248, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label107 = GUICtrlCreateLabel("Year:", 200, 272, 29, 17)
$Input81 = GUICtrlCreateInput("Input81", 256, 272, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label108 = GUICtrlCreateLabel("Block:", 200, 296, 34, 17)
$Input82 = GUICtrlCreateInput("Input82", 256, 296, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label109 = GUICtrlCreateLabel("Date:", 200, 320, 30, 17)
$Date9 = GUICtrlCreateDate("2012/02/12 10:48:3", 256, 320, 146, 21)
$Label110 = GUICtrlCreateLabel("Condoned:", 200, 344, 56, 17)
$Input83 = GUICtrlCreateInput("Input83", 256, 344, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label111 = GUICtrlCreateLabel("Year:", 200, 368, 29, 17)
$Input84 = GUICtrlCreateInput("Input84", 256, 368, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label112 = GUICtrlCreateLabel("Block:", 200, 392, 34, 17)
$Input85 = GUICtrlCreateInput("Input85", 256, 392, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label113 = GUICtrlCreateLabel("Date:", 200, 416, 30, 17)
$Date10 = GUICtrlCreateDate("2012/02/12 10:49:25", 256, 416, 146, 21)
$Label114 = GUICtrlCreateLabel("Condoned:", 200, 440, 56, 17)
$Input86 = GUICtrlCreateInput("Input86", 256, 440, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label115 = GUICtrlCreateLabel("Year:", 200, 464, 29, 17)
$Input87 = GUICtrlCreateInput("Input87", 256, 464, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label116 = GUICtrlCreateLabel("Block:", 200, 488, 34, 17)
$Input88 = GUICtrlCreateInput("Input88", 256, 488, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label117 = GUICtrlCreateLabel("Date:", 200, 512, 30, 17)
$Date11 = GUICtrlCreateDate("2012/02/12 10:52:44", 256, 512, 146, 21)
$Label118 = GUICtrlCreateLabel("Condoned:", 200, 536, 56, 17)
$Input89 = GUICtrlCreateInput("Input89", 256, 536, 145, 21, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group35 = GUICtrlCreateGroup("", 424, 224, 185, 329)
$Label119 = GUICtrlCreateLabel("Allergies/Chronic Illness:", 440, 240, 119, 17)
$Edit4 = GUICtrlCreateEdit("", 440, 264, 145, 273, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetData(-1, "Edit4")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$TabSheet13 = GUICtrlCreateTabItem("History at Mogolo")
GUICtrlSetState(-1,$GUI_SHOW)
$Group36 = GUICtrlCreateGroup("History At Mogolo", 184, 192, 441, 377)
$Group37 = GUICtrlCreateGroup("", 192, 208, 425, 353)
$Label120 = GUICtrlCreateLabel("Comment:", 200, 224, 51, 17)
$Edit5 = GUICtrlCreateEdit("", 200, 248, 97, 193, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
GUICtrlSetData(-1, "Edit5")
$Label121 = GUICtrlCreateLabel("Date:", 200, 448, 30, 17)
$Date12 = GUICtrlCreateDate("2012/02/12 11:09:32", 200, 472, 98, 21)
$Label122 = GUICtrlCreateLabel("Facilitator:", 200, 504, 52, 17)
$Input90 = GUICtrlCreateInput("Input90", 200, 528, 97, 21)
$Label123 = GUICtrlCreateLabel("Comment:", 304, 224, 51, 17)
$Edit6 = GUICtrlCreateEdit("", 304, 248, 97, 193)
GUICtrlSetData(-1, "Edit6")
$Label124 = GUICtrlCreateLabel("Date:", 304, 448, 30, 17)
$Date13 = GUICtrlCreateDate("2012/02/12 11:10:50", 304, 472, 98, 21)
$Label125 = GUICtrlCreateLabel("Facilitator:", 304, 504, 52, 17)
$Input91 = GUICtrlCreateInput("Input91", 304, 528, 97, 21)
$Label126 = GUICtrlCreateLabel("Comment:", 408, 224, 51, 17)
$Edit7 = GUICtrlCreateEdit("", 408, 248, 97, 193)
GUICtrlSetData(-1, "Edit7")
$Label127 = GUICtrlCreateLabel("Date:", 408, 448, 30, 17)
$Date14 = GUICtrlCreateDate("2012/02/12 11:12:27", 408, 472, 98, 21)
$Label128 = GUICtrlCreateLabel("Facilitator:", 408, 504, 52, 17)
$Input92 = GUICtrlCreateInput("Input92", 408, 528, 97, 21)
$Label129 = GUICtrlCreateLabel("Comment:", 512, 224, 51, 17)
$Edit8 = GUICtrlCreateEdit("", 512, 248, 97, 193)
GUICtrlSetData(-1, "Edit8")
$Label130 = GUICtrlCreateLabel("Date:", 512, 448, 30, 17)
$Date15 = GUICtrlCreateDate("2012/02/12 11:13:46", 512, 472, 98, 21)
$Label131 = GUICtrlCreateLabel("Facilitator:", 512, 504, 52, 17)
$Input93 = GUICtrlCreateInput("Input93", 512, 528, 97, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateTabItem("")
$Pic1 = GUICtrlCreatePic("C:Usersac1dm4nDesktopProject Mogolo 1PicturesMogolo Label.jpg", 0, 8, 484, 140, BitOR($GUI_SS_DEFAULT_PIC,$SS_SUNKEN), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKWIDTH)
$Label132 = GUICtrlCreateLabel("Ease of Access", 16, 152, 92, 22)
GUICtrlSetFont(-1, 10, 800, 4, "Palatino Linotype")
$TreeView1 = GUICtrlCreateTreeView(8, 176, 161, 401, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$TreeView1_0 = GUICtrlCreateTreeViewItem("Global Students' Report", $TreeView1)
$TreeView1_1 = GUICtrlCreateTreeViewItem("Students", $TreeView1_0)
$TreeView1_2 = GUICtrlCreateTreeViewItem("Student Info Report", $TreeView1)
$TreeView1_3 = GUICtrlCreateTreeViewItem("Emergency Info", $TreeView1_2)
$TreeView1_4 = GUICtrlCreateTreeViewItem("Student Subject Reports", $TreeView1)
$TreeView1_5 = GUICtrlCreateTreeViewItem("Primary", $TreeView1_4)
$TreeView1_6 = GUICtrlCreateTreeViewItem("Subjects", $TreeView1_5)
$TreeView1_7 = GUICtrlCreateTreeViewItem("Certificates", $TreeView1_5)
$TreeView1_8 = GUICtrlCreateTreeViewItem("Secondary", $TreeView1_4)
$TreeView1_9 = GUICtrlCreateTreeViewItem("Subjects", $TreeView1_8)
$TreeView1_10 = GUICtrlCreateTreeViewItem("Certificates", $TreeView1_8)
$TreeView1_11 = GUICtrlCreateTreeViewItem("N Level", $TreeView1_4)
$TreeView1_12 = GUICtrlCreateTreeViewItem("Subjects", $TreeView1_11)
$TreeView1_13 = GUICtrlCreateTreeViewItem("Payment History Reports ", $TreeView1)
$TreeView1_14 = GUICtrlCreateTreeViewItem("Year", $TreeView1_13)
$TreeView1_15 = GUICtrlCreateTreeViewItem("2012", $TreeView1_14)
$TreeView1_16 = GUICtrlCreateTreeViewItem("2013", $TreeView1_14)
$TreeView1_17 = GUICtrlCreateTreeViewItem("2014", $TreeView1_14)
$TreeView1_18 = GUICtrlCreateTreeViewItem("2015", $TreeView1_14)
$TreeView1_19 = GUICtrlCreateTreeViewItem("2016", $TreeView1_14)
$TreeView1_20 = GUICtrlCreateTreeViewItem("Settings", $TreeView1_13)
$TreeView1_21 = GUICtrlCreateTreeViewItem("Calculation Method", $TreeView1_20)
$TreeView1_22 = GUICtrlCreateTreeViewItem("Custom Duration", $TreeView1_21)
$TreeView1_23 = GUICtrlCreateTreeViewItem("Yearly Method", $TreeView1_21)
$TreeView1_24 = GUICtrlCreateTreeViewItem("Printing Setup", $TreeView1)
$TreeView1_25 = GUICtrlCreateTreeViewItem("Page Setup", $TreeView1_24)
$Group2 = GUICtrlCreateGroup("Student Porfile Picture", 504, 0, 121, 145)
$Pic2 = GUICtrlCreatePic("C:Usersac1dm4nDesktopProject Mogolo 1Picturesface.jpg", 512, 16, 100, 92)
$Button1 = GUICtrlCreateButton("Set Student Picture", 512, 120, 99, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Dim $_1_AccelTable[5][2] = [["{F2}", $MenuItem4],["{F3}", $MenuItem5],["{F4}", $MenuItem6],["{F5}", $MenuItem7],["^x", $MenuItem8]]
GUISetAccelerators($_1_AccelTable)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Func Form1Close()
Exit
EndFunc
Func MenuSaveEvent()
$NBRString = GUICtrlRead($input1)
$NameString = GUICtrlRead($input2)
$MidNameStr = GUICtrlRead($input3)
$SurString = GUICtrlRead($input4)
$idNString = GUICtrlRead($input5)
$AgeString = GUICtrlRead($input6)
$GenderString = GUICtrlRead($Combo1)
$CourseString = GUICtrlRead($Combo7)

_SQLite_Startup()
_SQLite_Open("Student Database.db")
If FileExists(@ScriptDir & "Student Database.db") Then
_SQLite_Exec(-1, "INSERT INTO StudentInfo VALUES (" & _SQLite_FastEscape($NBRString) & "," & _SQLite_FastEscape($NameString) & "," & _SQLite_FastEscape($MidNameStr) & "," & _SQLite_FastEscape($SurString) & "," & _SQLite_FastEscape($idNString) & "," & _SQLite_FastEscape($AgeString) & "," & _SQLite_FastEscape($GenderString) & "," & _SQLite_FastEscape($CourseString) &") ;")
Else
_SQLite_Exec(-1, "CREATE TABLE StudentInfo (StudentNumber, Name, MiddleName, Surname, IDNumber, Age, Gender, CourseAttend);")
_SQLite_Exec(-1, "INSERT INTO StudentInfo VALUES (" & _SQLite_FastEscape($NBRString) & "," & _SQLite_FastEscape($NameString) & "," & _SQLite_FastEscape($MidNameStr) & "," & _SQLite_FastEscape($SurString) & "," & _SQLite_FastEscape($idNString) & "," & _SQLite_FastEscape($AgeString) & "," & _SQLite_FastEscape($GenderString) & "," & _SQLite_FastEscape($CourseString) &") ;")
EndIf
_SQLite_Shutdown()
  EndFunc
Func MenuAbout()
EndFunc


Func MenuOpen()
Local $aResult, $iRows, $iColumns, $iRval, $Read
_SQLite_Startup()
Local $hQuery, $aRow, $sMsg
$Read = GUICtrlRead($Input1)
_SQLite_Open("Student Database.db"); Open a :memory: database
If @error Then
    MsgBox(16, "SQLite Error", "Can't Load Database!")
    Exit -1
EndIf
; Query
_SQLite_QuerySingleRow(-1, "SELECT*" & $Read & "in StudentInfo WHERE  > " & $read & ";", $aRow) ; Select single row and single field !
MsgBox(4096, "One of the values for key > StudentNumber:", $aRow)
_SQLite_Close()
_SQLite_Shutdown()

EndFunc
While 1
Sleep(200)
;Student Database - Version 2.0.0.0.9001 SQL Build
WEnd

I've tried

_sql_fetchdata

And the answer to your question

Are you after getting data for a specific student by name?

Is yes but based on the student Number read from
Local $Read = Guictrlread($input1)

and thanks for the tip of the date of birth I'll definetly use it...

Edited by ac1dm4nner

[u]My dream is to have a dream...[/u]

Link to comment
Share on other sites

Sorry for that, but I don't live in the same timezone as you!

(And I've a life as well.)

First, _SQLite_QuerySingleRow returns an _array_ of columns, even if there is only one column (like the example of the help file shows).

Now, your query is malformed and causes an SQLite error to get raised, which you don't test for.

Depending on what you want to read, try:

_SQLite_QuerySingleRow(-1, "select * from StudentInfo WHERE StudentNumber = '" & $read & "';", $row)

but that's assuming that $read contains a value compatible in format with StudentNumber as stored in the DB. The schema you provide doesn't use SQLite types and is likely to cause surprises in some future. Note the single quotes around $read, as you seem to have been storing the value as a string (which may not be optimal at all).

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

ah ok thanks man, so what you're suggesting is I should assign a sqlite format type to the cells for the specific data or string for the table schema? Like Numberic, text, Boolean, datetime etc?

Thanks m8...

Edited by ac1dm4nner

[u]My dream is to have a dream...[/u]

Link to comment
Share on other sites

I've played around with the code so much, I had the code last night but I closed without saving by accident... it's so frustrating how one or two misplacements of char's could make my day so awful!!!!

[u]My dream is to have a dream...[/u]

Link to comment
Share on other sites

Here is a stripped down version focusing on SQLite part:

#include <SQLite.au3>
#include <SQLite.dll.au3>

_SQLite_Startup()
OnAutoItExitRegister("_SQLite_ShutDown")
_SQLite_Open("Student Database.db")
OnAutoItExitRegister("DbClose")
_SQLite_Exec(-1, "CREATE TABLE if not exists StudentInfo ( " & _
      "StudentNumber integer primary key, " & _
      "Name char, " & _
      "MiddleName char, " & _
      "Surname char, " & _
      "IDNumber char, " & _
      "BirthDate char, " & _
      "Gender char, " & _
      "CourseAttend char);")
Global $NBRString
Global $NameString
Global $MidNameStr
Global $SurString
Global $idNString
Global $BirthDateString
Global $GenderString
Global $CourseString
$NBRString = "12345"
$NameString = "Paul"
$MidNameStr = "Alan"
$SurString = "O'Connor"
$idNString = "874590466023"
$BirthDateString = "1997/08/17"
$GenderString = "M"
$CourseString = "If this is meant to store several courses, this design is flawed"
DBinsert()
$NBRString = "9876"
$NameString = "Sabrina"
$MidNameStr = "Julia"
$SurString = "Terence"
$idNString = "596103205478"
$BirthDateString = "1996/11/29"
$GenderString = "F"
$CourseString = "If this is meant to store several courses, this design is flawed"
DBinsert()
DBqueryStuNbr()
DBqueryStu90to98()
DBqueryFemale90to98()
DBqueryStuAll()
Func DBinsert()
; perform sanity checks on input data here
_SQLite_Exec(-1, "INSERT or ignore INTO StudentInfo VALUES (" & _
      Int($NBRString) & "," & _
      _SQLite_FastEscape($NameString) & "," & _
      _SQLite_FastEscape($MidNameStr) & "," & _
      _SQLite_FastEscape($SurString) & "," & _
      _SQLite_FastEscape($idNString) & "," & _
      _SQLite_FastEscape($BirthDateString) & "," & _
      _SQLite_FastEscape($GenderString) & "," & _
      _SQLite_FastEscape($CourseString) & ") ;")
EndFunc
Func DBqueryStuNbr()
Local $Read, $aRow
$Read = "012345"  ; this is an example input  ; GUICtrlRead($Input1)
; Query
_SQLite_QuerySingleRow(-1, "SELECT * from StudentInfo WHERE studentnumber = " & Int($Read) & ";", $aRow) ; Select single row
_ArrayDisplay($aRow)
EndFunc
Func DBqueryStu90to98()
Local $iRows, $iColumns, $aRow
; Query
_SQLite_GetTable2d(-1, "SELECT * from StudentInfo WHERE birthdate between '1990/01/01' and '1998/12/31';", $aRow, $iRows, $iColumns)
_ArrayDisplay($aRow)
EndFunc
Func DBqueryFemale90to98()
Local $iRows, $iColumns, $aRow
; Query
_SQLite_GetTable2d(-1, "SELECT * from StudentInfo WHERE gender like 'F' and birthdate between '1990/01/01' and '1998/12/31';", $aRow, $iRows, $iColumns)
_ArrayDisplay($aRow)
EndFunc
Func DBqueryStuAll()
Local $iRows, $iColumns, $aRow
; Query
_SQLite_GetTable2d(-1, "SELECT * from StudentInfo;", $aRow, $iRows, $iColumns)
_ArrayDisplay($aRow)
EndFunc
Func DbClose()
_SQLite_Close(-1)
EndFunc

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

ahh it was a little mistake I made, im not very used to autoit arrays

but here's the mistake I made

_SQLite_QuerySingleRow(-1, "select * from StudentInfo WHERE StudentNumber = '" & $read & "';", $row)
Msgbox(64, "", $Row[0])

The slight mistake I made was with the array returned not the code...

[u]My dream is to have a dream...[/u]

Link to comment
Share on other sites

  • 3 years later...

Post code and schema else it's difficult to guess what's pulling the brake. Also this thread is 3 years old...

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Should I start a new thread? Never done that.

Solution seems to be this:

SELECT COUNT(*) AS MYCOUNT FROM MYTABLE;

The MYCOUNT alias is now assigned as "column name" for purposes of the query and correctly returned by Autoit.

*SOLVED*

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...