MyTetra Share
Делитесь знаниями!
параметры функций
Время создания: 16.03.2019 23:43
Текстовые метки: VBA, функции, переменные, параметры функций
Раздел: !Закладки - VBA - VBA управление кодами
Запись: xintrea/mytetra_db_adgaver_new/master/base/1516449158m01xa2th1m/text.html на raw.githubusercontent.com

Parameters

 
Function fullName(strFname As String, strLname As String) As String
    Dim strFirstName As String
    Dim strLastName As String
    Dim strFullName As String

    strFirstName = strFname
    strLastName = strLname

    strFullName = strFirstName & " " & strLastName

    fullName = strFullName
End Function
Sub getName()
    Dim strFirstName As String
    Dim strLastName As String
    Dim strFullName As String

    strFirstName = InputBox("Enter the First Name", "First Name")
    strLastName = InputBox("Enter the Last Name", "Last Name")

    strFullName = fullName(strFirstName, strLastName)
    MsgBox strFullName, , "Full Name"
End Sub

 
Так же в этом разделе:
 
MyTetra Share v.0.59
Яндекс индекс цитирования