Пример #1
0
        /// <summary>
        /// Go to the next row in dataset
        /// </summary>
        /// <returns>False if current position doesn't change</returns>
        public bool Next()
        {
            if (queryID <= 0)
            {
                return(false);
            }

            //Call SQL API function to move to the next position
            // VistaDBAPI.ivsql_MoveBy(queryID, 1);
            VistaDBAPI.ivsql_Next(queryID);

            return(true);
        }
Пример #2
0
        /// <summary>
        /// Go to the next row in dataset
        /// </summary>
        /// <returns>False if current position doesn't change</returns>
        public override bool Next()
        {
            if (this.queryID == 0)
            {
                return(false);
            }

            if (this.startTraversing)
            {
                this.startTraversing = !First();
                return(this.startTraversing);
            }

            //Call SQL API function to move to the next position

            VistaDBAPI.ivsql_Next(this.queryID);

            return(true);
        }