Example #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dr"></param>
        /// <param name="campo"></param>
        /// <returns></returns>
        public IntN IntN(string qry, SqlCeTransaction dbTrans)
        {
            // Get Int32
            SqlCeCommand cmd = null;
            IntN r = new IntN();

            try
            {
                cmd = new SqlCeCommand(qry, Con, dbTrans);
                r.V = (int)cmd.ExecuteScalar();
            }
            catch (Exception ex)
            {
                FE.Show(ex.Message + " sql: " + qry, "Erro executando Bd.IntN", ex.StackTrace);
            }
            return r;
        }
Example #2
0
 public static string SN(IntN entradaASerTradada)
 {
     if (entradaASerTradada.Iniciada)
         return entradaASerTradada.V.ToString();
     else
         return "NULL";
 }