ما المقصود بـ $ Str ؟ اي هي اختصار ماذا ..و فيما تستخدم ...
ما المقصود $ Str ؟؟ ارجو المساعدة..
مغلق
بعد التحية ،،،
تستخدم في إرجاع الرقم أو تصويرة بالشكل الذي هو علية
مثال /
' Dim MyString ' MyString = Str(459) ' Returns " 459". MyString = Str(-459.65) ' Returns "-459.65". MyString = Str(459.001) ' Returns " 459.001".
وهنا شرح الدالة الموجود في MSDN .
Returns a Variant (String) representation of a number. Syntax Str(number) The required numberargument is aLong containing any validnumeric expression. Remarks When numbers are converted to strings, a leading space is always reserved for the sign of number. If number is positive, the returned string contains a leading space and the plus sign is implied. Use the Format function to convert numeric values you want formatted as dates, times, or currency or in other user-defined formats. Unlike Str, the Format function doesn't include a leading space for the sign of number. Note The Str function recognizes only the period (.) as a valid decimal separator. When different decimal separators may be used (for example, in international applications), use CStr to convert a number to a string.
v=val(text1.text)+val(text2.text)
label3.caption=Str$(v
هل التي تقصدها هي نفسها التي في هذا الكود....
يعني هي نفسه الـ String التي نستخدم لارجاع نص ...
شكرا....
تقريبا نعم .
بشكل عام الدوال التي تنتهي بـ $ تكون لها نفس وظيفة الدوال التي لا تنتهي بها، إلا أن صاحبة $ تكون أسرع في التنفيذ من الأخرى بدون $
الفرقة هي مرض الأمة الإسلامية
Do it with visual basic
اللهم اجعل كل كلمة أكتبها خالصة لوجهك وانفع بها المسلمين.
لتحويل الرقم إلى عبارة عن نص ( إي يتعرف الكميوتر على الأرقام علىأنها نص)
عكس الدالةval
في اليجول 6 يكتفى بكتابة str بدل من $str
والله أعلم
هذا الموضوع مغلق.