السلام عليكم ورحمة الله ..
عندي مشكلة طلعتني عن طوري ..
عندي حقل أستخدمة كرقم فاتوره بدلالة التاريخ والوقت (بحيث لايتكرر):
txtBox1.Text = Now.Year & Now.Month & Now.Day & Now.Hour & Now.Minute & Now.Second
وعند تحويله إلى Integer :
OrdInfNo = CInt(txtBox1.Text)
تظهر هذه الرسالة :
اقتباسArithmetic operation resulted in an overflow.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OverflowException: Arithmetic operation resulted in an overflow.
علما بأن تحويل التاريخ مع الساعة لا توجد به أي مشكلة ..
المشكلة في تحويل الدقائق والثواني ..
فما الحل .؟؟؟؟