الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stringutil.lpad

Featured Replies

بتاريخ:

كيف يمكن كتابة هذه الامر     

 

RAW_ADD_H_ORDERNUM=stringUtil.lpad(row.getAttribute("OrderNo").toString(), 6, '0');

 

 

 

بتاريخ:

غير واضح

بتاريخ:
  • كاتب الموضوع

حاولت  استخدام    stringUtil.lpad  داخل كود جافا على هذا النحو                 RAW_ADD_H_ORDERNUM=stringUtil.lpad(row.getAttribute("OrderNo").toString(), 6, '0');

 

 

مثل هذه الدالة فى pl

 

LPAD(AddProdH.ORDER_NO,6,'0')

بتاريخ:

من أين أتيت بـ stringUtil

بتاريخ:
  • كاتب الموضوع

https://stackoverflow.com/questions/7970615/left-pad-zeroes-to-a-string-variable-in-java

 

 

Left pad zeroes to a string variable in java

You can use leftPad function of StringUtils
So, it will look like this:

StringUtils.leftPad(myString, 10,"0");
 
بتاريخ:

حسناً هذه دالة مساعدة من الخارج

ما المشكلة فيها؟

بتاريخ:
  • كاتب الموضوع

 

حاولت  استخدام    stringUtil.lpad  داخل كود جافا على هذا النحو                 RAW_ADD_H_ORDERNUM=stringUtil.lpad(row.getAttribute("OrderNo").toString(), 6, '0');

 

 

مثل هذه الدالة فى pl

 

LPAD(AddProdH.ORDER_NO,6,'0')

 

لا يقبل السطر يعطى خطأ  بيعترض على   فهل تحتاج لدوال مكتبية ؟

 

بتاريخ:

لا أعرف عن StringUtil لكن في جافا نستخدم علامتي تنصيص وليس واحدة مع النصوص

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.