what is the meaning of the dollar sign after a method name in vb.net
like this:
Replace$("EG000000", "0", "")
The dollar sign indicates a string will be returned instead of a variant.
In this article Use the following rules when you name procedures, constants, variables, and arguments in a Visual Basic module: You must use a letter as the first character. You can't use a space, period (.), exclamation mark (!), or the characters @, &, $, # in the name. Name can't exceed 255 characters in length.
In Interpolated Strings, the dollar sign ($) is used to tell the C# compiler that the string following it is to be interpreted as an Interpolated String. The curly braces encapsulate the values (of the variables) to include in the text.
Old type notifier - see this
Some other old ones:
& -> Long % -> Integer # -> Double ! -> Single @ -> Decimal $ -> String
Still exist in VB.Net for the sake of backward compatibility...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With