PDA

View Full Version : local variable named 'e' cannot be declared



faramarz_s
شنبه 29 شهریور 1382, 09:12 صبح
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0136: A local variable named 'e' cannot be declared in this scope because it would give a different meaning to 'e', which is already used in a 'parent or current' scope to denote something else

Source Error:



Line 103: Message.InnerHtml = "<b>Record Added</b><br>" + insertCmd;
Line 104: }
Line 105: catch (SqlException e)
Line 106: {
Line 107: if (e.Number == 2627)

Vahid_Nasiri
شنبه 29 شهریور 1382, 14:39 عصر
بجای e بنویسید eheh مشکل حل می شود. :wink: (شوخی نکردم جدی بود! :lol: )

faramarz_s
شنبه 29 شهریور 1382, 20:52 عصر
در مورد مفهوم این اهه و کاربردهایش توضیح می فرمایید؟

Vahid_Nasiri
یک شنبه 30 شهریور 1382, 01:04 صبح
:lol:
مفهوم خاصی ندارد. از آن برای نمایش خطاها در اینجا استفاده می کنیم. شما بنویسید oho و یا ehen‌ و یا ...... هر چی. 8)