Generate the auto generate number with current month and year. Its Should auto generate. Thanks in advance
gpriya govind
0
Newbie Poster
Recommended Answers
Jump to PostNot sure what you are looking for exactly but maybe this will help you.
Dim RandomClass As New Random() Dim RandomNumber As Integer Dim strStringPart As String = Month(Now).ToString & Year(Now).ToString Dim NewRandomNumber As Integer RandomNumber = RandomClass.Next(1000, 9999) NewRandomNumber = Int32.Parse(strStringPart & RandomNumber) 'NewRandomNumber contains 220135765 …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.