بتاريخ: 19 مارس 201115 سنة comment_210162 السلام عليكم ورحمه الله وبركاته انا كنت بدور فى المنتديات وبعديين لاقت واحد بعت عايز حل لمشكله قابلته والمشكلة كالتالى اخواني الاعزاء انا عندي مشروع عن تاجير السيارات وواجهتي مشكله عند رقم اللوحه حيث رقم اللوحه اول ثلاث خانات حروف واربع خانات ارقام مثال(6767ن ا ا)اريد ان اضع قيد على الtext item بحيث لايسمح للمستخدم ادخال رقم اللوحه بصوره خاطئه وانا الحمد لله ربنا هدانى لحلها وقولت اشارك حلها معاكم والحل كالتالى declare v1 number(10); v2 varchar2(3); v3 number(4); begin v1:=length(:t); if v1<7 then message('you have been entered number of character smaller than wanted'); message('you have been entered number of character smaller than wanted'); elsif v1>7 then message('you have been entered number of character longer than wanted'); message('you have been entered number of character longer than wanted'); else v2:=substr(:t,1,3); v3:=substr(:t,4); message('you have been entered correct number of character'); message('you have been entered correct number of character'); end if; exception when others then message('you must enter the first three letter character and the last four letter'); message('you must enter the fisrt three letter character and the last four letter'); end; حيث ان (t) هو اسم text itemبالتوفيق إن شاء الله تقديم بلاغ
بتاريخ: 19 مارس 201115 سنة comment_210164 تسلم ياباشا علي المجهود الرائعبس ياريت ممكن توضح لينا اكتر فكرة المشروع علشان نحاول نحاول نطبقه عملياوجزاك الله خيرا تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.