Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of Right$(string, 3)

Tags:

.net

vb.net

I was reading through some source code and came across what looks like a call to a function:

Right$(string, 3)

I can understand this is just simple string manipulation, but what is the meaning of the $ symbol?

like image 877
m.edmondson Avatar asked Dec 21 '22 06:12

m.edmondson


1 Answers

$ has no meaning in context of Right function. In ancient VB Right$ was a function in new VB it is Right but you can also use Right$ (for backward compatibility)

Right$("hasan", 3) and Right("hasan", 3) are same in VB.NET

It is merely a convention used to name String related functions.

like image 123
Muhammad Hasan Khan Avatar answered Feb 13 '23 08:02

Muhammad Hasan Khan