對於預編譯指令#Region #EndRegion,定義在能夠在class中定義spa
#Const SAPVER = 」60「
也能夠整個在Project 中定義。code
#If SAPVER = "46" Then Imports XXXX.VER46 #ElseIf SAPVER = "47" Then Imports XXXX.VER47 #ElseIf SAPVER = "60" Then Imports XXXX.VER60 #Else #Error 未找到相應版本的XXXX #End If