Dim 商品,i,temp
商品 = Array("jiu", "zhangyu", "luosifen", "laobie", "tudou", "liyu", "huangyu")
Function 判断打印优惠商品()
For i = 0 To UBound(商品)
'''TracePrint 商品(i)
temp = Mid(商品(i), 1, 1)''提取商品名第一个文字
''''TracePrint temp
If temp = "j" Then
TracePrint "我是优惠商品"&商品(i)
ElseIf temp = "z" Then
TracePrint "我是优惠商品"&商品(i)
ElseIf temp = "d" Then
TracePrint "我是优惠商品"&商品(i)
ElseIf temp = "f" Then
TracePrint "我是优惠商品"&商品(i)
ElseIf temp = "h" Then
TracePrint "我是优惠商品"&商品(i)
End If
Next
End Function
Call 判断打印优惠商品()