بتاريخ: 11 أبريل 200619 سنة comment_66100 بسم الله الرحمن الرحيماستخدمت global variable عند التنقل بين formsثم استخدمت menus للانتقال بين formsفعندما انتقل الى احد form تظهر هذة الرسالةfrm-40815:variable golbal.guser_id dose not existولكن قمت بالدخول الى نفس هذا form بدون القوائم لايوجد مشكلةبعض الاشخاص قال لي استخدم parameter بدل من golbal ولكن انا لا اعرف كيف تستخدم رجوا المساعدة تقديم بلاغ
بتاريخ: 11 أبريل 200619 سنة comment_66105 السلام عليكم المشكلة انك حاولت ان تستخدم global variable بدون ان تعطى له قيمة ابتدائيةوللتغلب على هذا الامر استخدم DEFAULT_VALUECopies an indicated value to an indicated variable if the variable's current value is NULL. If the variable's current value is not NULL, DEFAULT_VALUE does nothing. وهذا مثال /* ** Built-in: DEFAULT_VALUE ** Example: Make sure a Global variable is defined by ** assigning some value to it with Default_Value */ BEGIN /* ** Default the value of GLOBAL.Command_Indicator if it is ** NULL or does not exist. */ Default_Value('***','global.command_indicator'); /* ** If the global variable equals the string we defaulted ** it to above, then it must have not existed before */ IF :Global.Command_Indicator = '***' THEN Message('You must call this screen from the Main Menu'); RAISE Form_Trigger_Failure; END IF; END; تقديم بلاغ
بتاريخ: 11 أبريل 200619 سنة كاتب الموضوع comment_66111 شكرا لك على الاستجابة جزاك الله كل خير تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.