Hello,
i have one question about patent register. I try to get application's register with python.
Everything is working great. But i have one question about Application number. At the response, i get the application number without (".digit").
At register page for example ; "15150367.9"
Response : "15150367"
How can i reach the full number like register?
Best Regards,
Mehmet Baturay
Application Number In Register Page
-
- Posts: 1298
- Joined: Thu Feb 22, 2007 5:32 pm
Re: Application Number In Register Page
Hi,
Unfortunately, we don't include the check digit into OPS. We only offer serial number, up to the digit.
Regards,
Vesna for OPS support
Unfortunately, we don't include the check digit into OPS. We only offer serial number, up to the digit.
Regards,
Vesna for OPS support
Re: Application Number In Register Page
Hi,
why do you not calculate the checkdigit yourself from the 8 digits of the application number?
A simple routine in VB.NET looks like this:
why do you not calculate the checkdigit yourself from the 8 digits of the application number?
A simple routine in VB.NET looks like this:
Code: Select all
Public Function CheckDigit(ByVal strAn As String) As String
Dim ret As Integer = 0
If strAn.Length <> 8 Then
Throw New Exception("Wrong input: " & strAn)
End If
Dim an(8) As Integer
For i = 1 To 8
an(i) = Val(Mid(strAn, i, 1))
If i Mod 2 = 0 Then an(i) = an(i) * 2
Next
Dim crosssum As Integer = 0
For i = 1 To 8
If an(i) >= 10 Then
an(i) = an(i) - 10
crosssum += 1
crosssum += an(i)
Else
crosssum += an(i)
End If
Next
ret = 10 - crosssum Mod 10
If ret = 10 Then ret = 0
Return Format(ret, "0")
End Function