object lngRecordsAffected = null;//? type match which in c#
adoConn.Execute(SQL_Query, out lngRecordsAffected, 1);
plID_Index = -1;
Int32 Affected = 0;
Int32.TryParse(lngRecordsAffected.ToString(), out Affected);
if(Affected>0)
{
RecordSet = adoConn.Execute(SQL_QueryResult, out lngRecordsAffected, 1);
if(RecordSet.EOF == false)//query ok
{
object ValueObject = RecordSet.Fields["MaxID"].Value;
//object ValueObject = RecordSet.Fields[0].Value;//adoRS.Fields["lastname"].Value :MaxID
Int32.TryParse(ValueObject.ToString(), out plID_Index);
}
RecordSet.Close();
}