المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : وضع علامه عشرية في الأنبوت بعد رقمين


محمد سامر
02-07-2019, 10:40 AM
السلام عليكم ورحمة الله وبركاته
اريد وضع علامه عشرية في الأنبوت بعد رقمين
مثال : 25.4%
بمعنى: اي رقم يتم كتابته في الأنبوت بعد رقمين يتم وضع العلامه العشريه

عبود عبود
02-07-2019, 09:07 PM
السلام عليكم ورحمة الله وبركاته

ممكن تستخدم String.Mid

مارجوم،
02-07-2019, 10:41 PM
change the code on the button of this example
http://www.abc4web.net/vb/showthread.php?t=38154

new code

;(percent = Math.Round ((XX / XX) * 100, 1
;(Paragraph.SetText ("Paragraph1", percent


https://i.postimg.cc/QVGzDPWC/Cattura.png

محمد سامر
03-07-2019, 07:32 AM
الكود لا يقبل علامة النسبة المئوية ... في قاعدة If... كما في المثال 60%... فما الحل ؟؟؟

if String.ToNumber(Label.GetText("Lab_1__100%")) >= 60% then

Label.SetVisible("Lab_NAGEH", true);
Label.SetVisible("Lab_RASEB", false);
else
Label.SetVisible("Lab_NAGEH", false);
Label.SetVisible("Lab_RASEB", true);
end

محمد سامر
03-07-2019, 07:34 AM
change the code on the button of this example
http://www.abc4web.net/vb/showthread.php?t=38154

new code

;(percent = Math.Round ((XX / XX) * 100, 1
;(Paragraph.SetText ("Paragraph1", percent


https://i.postimg.cc/QVGzDPWC/Cattura.png

---------------------------------------------------
الكود لا يقبل علامة النسبة المئوية ... في قاعدة If... كما في المثال 60%... فما الحل ؟؟؟
The code does not accept the percentage sign ... in the base If ... as in example 60% ... what is the solution ???


if String.ToNumber(Label.GetText("Lab_1__100%")) >= 60% then

Label.SetVisible("Lab_NAGEH", true);
Label.SetVisible("Lab_RASEB", false);
else
Label.SetVisible("Lab_NAGEH", false);
Label.SetVisible("Lab_RASEB", true);
end

مارجوم،
03-07-2019, 05:35 PM
https://i.postimg.cc/DZ23wXRW/Cattura.png




the code is written in xButton
here is the example already modified for your needs




MEGA.NZ
https://mega.nz/#!5FphiKoQ!1VsQiWILcrlB8XZWklcs-50mYbfbQZq0S62ikllzFH8

محمد سامر
03-07-2019, 08:04 PM
https://i.postimg.cc/DZ23wXRW/Cattura.png




the code is written in xButton
here is the example already modified for your needs




MEGA.NZ
المحتوى المخفي لايقتبس





I understand the example
But I want to know .. How can I write 60% in the conditional IF rule ... because when you type it so happens a line ??? What is the right way to write it
if String.ToNumber(Label.GetText("Lab_1__100%")) >= 60% then

مارجوم،
03-07-2019, 10:28 PM
https://i.postimg.cc/ydhqrS76/Cattura.png


https://i.postimg.cc/c4BH8rYS/Cattura.png

محمد سامر
04-07-2019, 03:19 AM
https://i.postimg.cc/ydhqrS76/Cattura.png


https://i.postimg.cc/c4BH8rYS/Cattura.png


Please ... Can I view and upload this file

محمد سامر
04-07-2019, 09:35 AM
https://i.postimg.cc/ydhqrS76/Cattura.png

يظهر لي رسالة خطآ ؟؟؟؟
https://i.postimg.cc/c4BH8rYS/Cattura.png

http://www.abc4web.net/vb/attachment.php?attachmentid=3632&stc=1&d=1562225672

مارجوم،
04-07-2019, 05:38 PM
https://i.postimg.cc/vmDTGcNK/Cattura.png


Percentage and Total + Sum Percentage IAQGroup AMS8 example



MEGA.NZ
https://mega.nz/#!pNAUGQxZ!EG7CpOKw0bqDHlSyGQq3EF64Ty5C01qdgbbS40U Vvrw

محمد سامر
07-07-2019, 02:13 AM
شكرا جزيلا
عاجز عن الشكر