0
我把一個字符串替換掉了,但是我想用它作爲一個真正的vb.net函數,有這種可能嗎?例如:使用字符串作爲vb函數
dim str as string = "my task"
dim func as string = "Replace(str, " ", "-")"
dim result as string = 'here I must to use func string to have into result "my-task"
幫我請
爲什麼你需要'dim func as string =「Replace(str,」「,」 - 「)」'? 'Dim result As String = str.Replace(「」,「 - 」)'會給你結果 –
只是看到這個 - http://hastebin.com/alubuxenak.vbs –
我不僅需要使用這個函數,而且更多另一個函數left(),replace(),mid()但是我把這一切全部放到一個字符串中 –