mhmd mahmod
16-05-2015, 08:25 PM
فى الكود ده
Function Sum ( ByVal First as single , ByVal Second as single) As Decimal
Dim Total As single
Total = First + Second
Return Total
End Function
هل هنا نوع بيان القيمة الراجعة هيكون Single
اللى هو فى الاعلان عن المتغير Total
ام هتكون Decimal اللى هو نوع بيان الدالة
بمعنى أصح لما يجي سؤال كده
Function Sum ( ByVal First as single , ByVal Second as single) As Integer
يبقى نوع بيان القيمة الراجعة ايه بالظبط ؟؟؟
Function Sum ( ByVal First as single , ByVal Second as single) As Decimal
Dim Total As single
Total = First + Second
Return Total
End Function
هل هنا نوع بيان القيمة الراجعة هيكون Single
اللى هو فى الاعلان عن المتغير Total
ام هتكون Decimal اللى هو نوع بيان الدالة
بمعنى أصح لما يجي سؤال كده
Function Sum ( ByVal First as single , ByVal Second as single) As Integer
يبقى نوع بيان القيمة الراجعة ايه بالظبط ؟؟؟