VB Code:
Dim dCost As Double
Dim sSize As String ' set this to a value of small, medium, or large
depending on which option button is selected
Dim sOutput As String 'we use this string to contain the output
' Insert the cost calculation here as showed earlier
' Set the sSize variable to a value of SMALL, MEDIUM or LARGE here depending on the value of the option buttons
sOutput = "A " & sSize " pizza with " & UBound(Split(txtItems.Text, ",")) + 1 & _
" items to be delivered to " & txtAddress.Text & " " & txtSteet.Text & _
" " & txtAvenue.Text & " at a cost of $" & _
Format(dCost, "###0.00")
MsgBox sOutput 'or asign it sOutput to a TextBox or whatever you want
I hope this make any sense to you.