i have Database MS-SQL and also screen is designed in indusoft. the screen script is written to read a table from the database and only read the last/latest row inserted in which there are 2 columns to be read. following some examples i written the as below:-
'Variables available on this screen can be declared and initialized here. Dim sql, numCur, numRows, Row,txt
'This procedure is executed continuously while this screen is open. Sub Screen_WhileOpen()
sql ="SELECT * FROM aztitechCrowdCam207" numCur=$DBCursorOpenSQL("CrowdCamDB",sql) numRows=$DBCursorRowCount(numCur) $DBCursorClose(numCur)
in the above script,i can read the number of rows in the table, then the idea is to pass the number of rows value as an argument/parameter into the DBselect command, for now as u can see i just manually set is as "CamEntryNbr","ID=5","") and this is fixed, the ID field refers to the row number, so how do i pass the numRows as the argument, so that on each loop if the numRows count if is being updated, i can update the screen with the last inserted row's infomation. My main concern is i just need to read the info on the last inserted rows.