假设我具有以下MS Access 2016功能:
Public Function TestFunction(ByVal strTest As String) As String
是否有一种类似于以下方法的函数调用方法:
strReturn = TestFunction(If a = 1 Then "Apple" Else "Orange")
我想编写尽可能紧凑的东西,并避免为调用编写多行,例如:
If a = 1 Then strArg = "Apple" Else strArg = Orange
strReturn = TestFunction(strArg)