Exemple #1
0
        //////////////////////////////////////////////////////////
        ///////////////Navigation functions///////////////////////
        //////////////////////////////////////////////////////////

        /// <summary>
        /// Go to the first row in the dataset.
        /// </summary>
        /// <returns>False if current position doesn't change</returns>
        public bool First()
        {
            if (queryID <= 0)
            {
                return(false);
            }

            //Call SQL API function to move to the first position
            VistaDBAPI.ivsql_First(queryID);

            return(true);
        }
        //////////////////////////////////////////////////////////
        ///////////////Navigation functions///////////////////////
        //////////////////////////////////////////////////////////

        /// <summary>
        /// Go to the first row in the dataset.
        /// </summary>
        /// <returns>False if current position doesn't change</returns>
        public override bool First()
        {
            if (this.queryID == 0)
            {
                return(false);
            }

            //Call SQL API function to move to the first position
            VistaDBAPI.ivsql_First(this.queryID);

            return(true);
        }