vb.net - vb Could I make this script shorter? -


i have long script fix i'm wondering if make shorter.

if year = 1894 or year = 1895 or year = 1896 or year = 1897 or year = 1898 or year = 1899 fn1894()    if year = 1900 or year = 1901 or year = 1902 or year = 1903 or year = 1904 or year = 1905 or year = 1906 or year = 1907 or year = 1908 or year = 1909 fn1900() 

since years adjacent, try this:

if year >= 1894 , year <= 1899 fn1894()    if year >= 1900 , year <= 1909 fn1900() 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -