delphi4arab منتديات دلفي للعرب
undeclared identifier Result - نسخة قابلة للطباعة

+- delphi4arab منتديات دلفي للعرب (https://delphi4arab.net/forum)
+-- قسم : منتديات دلفي للعرب التعليمية (https://delphi4arab.net/forum/forumdisplay.php?fid=3)
+--- قسم : سؤال و جواب حول دلفي (https://delphi4arab.net/forum/forumdisplay.php?fid=15)
+--- الموضوع : undeclared identifier Result (/showthread.php?tid=8088)



undeclared identifier Result - ع الحليم - 13-08-2016

كيف أتخلص من هذا المشكل لأنه عند تجميع عند تجميع البرنامج تظهر undeclared identifier Result


RE: undeclared identifier Result - محمد عبد العزيز - 14-08-2016

السلام عليكم
ما هو الكود الذي كتبته وعند تجميعه يظهر الخطأ ؟



RE: undeclared identifier Result - ع الحليم - 14-08-2016

PHP كود :
at := 'AT' +  chr(13) + chr(10);
 
 Sleep(1000);
 
 try
    ComPort
.WriteStr(at);  
    try
      ComPort
.ReadStr(resp, ComPort.InputCount);    
    except
      Result 
:= '';
 
   end;
 
 Sleep(1000);
 
 except
    Result 
:= '';
 
 end;
 
 Sleep(1000);
 
 Result := resp; 



RE: undeclared identifier Result - محمد عبد العزيز - 14-08-2016

الكود ناقص،
ضع الكود من BEGIN الى END
ولا تنسى المتغيرات VAR وما قبلها
ملاحظة: اكتب مباشرة ولاتستخدم الالوان وحجم الخط