Esempio n. 1
0
		public static bool ConvertToBool(string val) {
			bool bReturn=false;
			try {
				if (val=="true") bReturn=true;
				else if (val=="yes") bReturn=true;
				else if (RString.IsNumeric(val,true,false)&&Convert.ToInt32(val)!=0) bReturn=true;
			}
			catch (Exception exn) {
				RReporting.ShowExn(exn,"ConvertToBool(string)");
			}
			return bReturn;
		}