23-01-18, 04:19 PM
23-01-18, 04:56 PM
هذة يعني انك تريد استخدام كائن لم تنشئة بالجملة New
هذا الكائن يحتاج أن تنشئة قبل أن تستخدمة
هذا الكائن يحتاج أن تنشئة قبل أن تستخدمة
23-01-18, 11:07 PM
(23-01-18, 04:56 PM)عبدالله الدوسري كتب : [ -> ]هذة يعني انك تريد استخدام كائن لم تنشئة بالجملة New
هذا الكائن يحتاج أن تنشئة قبل أن تستخدمة
أنا أستعمل داتا قريد فيو فقط
وأمرر القيم من خلال مصفوفة برامترات
23-01-18, 11:20 PM
إذن أحد القيم عبارة عن NULL
اعمل debugging للمشروع وشوف وين يظهر الخطأ
في أول سطر إعمل Breakpoint عشان يوقف الـdebuger عليها
وبعدين مشيه سطر سطر لين تظهر لك المشكلة
اعمل debugging للمشروع وشوف وين يظهر الخطأ
في أول سطر إعمل Breakpoint عشان يوقف الـdebuger عليها
وبعدين مشيه سطر سطر لين تظهر لك المشكلة
23-01-18, 11:32 PM
(23-01-18, 11:20 PM)عبدالله الدوسري كتب : [ -> ]إذن أحد القيم عبارة عن NULL
اعمل debugging للمشروع وشوف وين يظهر الخطأ
في أول سطر إعمل Breakpoint عشان يوقف الـdebuger عليها
وبعدين مشيه سطر سطر لين تظهر لك المشكلة
اسمحلي
عند ادراج بيانات جديدة لا تحدث المشكلة ولو كانت بعض خلايا الداتا قريد فارغة
إلا لما أقوم بتحديث البيانات فتكون خلية من الداتا قريد فيها بيانات أقوم بحذف البيانات مثلا تحدث المشكلة
23-01-18, 11:46 PM
ستجد تفاصيل عن الخطأ ,,
ارفقها هنا لنرى من اين مصدر الخطاء أو اي تفاصيل اخرى عنه
[attachment=16861]
ثم انسخ الـ stack trace وارفقة هنا
[attachment=16862]
ارفقها هنا لنرى من اين مصدر الخطاء أو اي تفاصيل اخرى عنه
[attachment=16861]
ثم انسخ الـ stack trace وارفقة هنا
[attachment=16862]
23-01-18, 11:48 PM
(23-01-18, 11:46 PM)عبدالله الدوسري كتب : [ -> ]ستجد تفاصيل عن الخطأ ,,
ارفقها هنا لنرى من اين مصدر الخطاء أو اي تفاصيل اخرى عنه
ثم انسخ الـ stack trace وارفقة هنا
at Inspecteur.Form2.DataGridView1_CellEndEdit(Object sender, DataGridViewCellEventArgs e) in H:\برامجي\برنامج وثائق المفتش\Inspecteur\Inspecteur\FRM\Form2.vb:line 121
at System.Windows.Forms.DataGridView.OnCellEndEdit(DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.EndEdit(DataGridViewDataErrorContexts context, DataGridViewValidateCellInternal validateCell, Boolean fireCellLeave, Boolean fireCellEnter, Boolean fireRowLeave, Boolean fireRowEnter, Boolean fireLeave, Boolean keepFocus, Boolean resetCurrentCell, Boolean resetAnchorCell)
at System.Windows.Forms.DataGridView.CommitEditForOperation(Int32 columnIndex, Int32 rowIndex, Boolean forCurrentCellChange)
at System.Windows.Forms.DataGridView.ScrollIntoView(Int32 columnIndex, Int32 rowIndex, Boolean forCurrentCellChange)
at System.Windows.Forms.DataGridView.TabToNextCell()
at System.Windows.Forms.DataGridView.ProcessTabKey(Keys keyData)
at System.Windows.Forms.DataGridView.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Inspecteur.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
24-01-18, 12:13 AM
PHP كود :
If String.IsNullOrEmpty(DataGridView1.Rows(0).Cells(1).Value) Then
PR(0) = ""
Else
PR(0) = New OleDb.OleDbParameter("@PROF", OleDb.OleDbType.VarChar) With {.Value = DataGridView1.Rows(0).Cells(1).Value.ToString}
End If
ثابت على الرقم صفر
تأكد من الكود
24-01-18, 06:59 PM
بارك الله فيك أخي
row ثابت على 0 لأني آخذ البيانات من الصف الأول
الكود يعمل بشكل جيد لما استعمل مفتاح المسافة في الحذف لكن لما استعمل مفتاح delete يظهر الخطأ
أقصد الكود قبل أن ادخل تعديلك
row ثابت على 0 لأني آخذ البيانات من الصف الأول
الكود يعمل بشكل جيد لما استعمل مفتاح المسافة في الحذف لكن لما استعمل مفتاح delete يظهر الخطأ
أقصد الكود قبل أن ادخل تعديلك