Hello guys,
am trying to generate unique integer using the method shown, but it throws an exception. is there any other way i can generate this value that would be unique in every call?
Source Error: Line 27: (Trim$(txtProductName.Text) <> vbNullString) And (Trim$(txtManufacturer.Text) <> vbNullString) And _ Line 28: (Msds_file.HasFile <> False) And (Cert_file.HasFile <> False) Then Line 29: Dim ProductID As Integer = Convert.ToInt32(Format(Now, "ddMMyyhms")) Line 30: Dim sMsds As String = "M" & ProductID Line 31: Dim sCert As String = "C" & ProductID Source File: J:\RAC\MSDS\main\admin\upload.aspx Line: 29


Sign In
Create Account


Back to top









