what is the meaning of the dollar sign after a method name in vb.net

前端 未结 3 1874
南旧
南旧 2020-12-05 02:12

what is the meaning of the dollar sign after a method name in vb.net

like this:

Replace$(\"EG000000\", \"0\", \"\")
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 02:56

    What Heinzi said and to clear up the type character business

        Dim s$ = "FooBar" 'dim s as String = "FooBar"
    
        Dim r As String
        Stop
    
        r = Replace$(s, "Bar", "")
        '.Net equivalent
        r = s.Replace("Bar", "")
    

提交回复
热议问题