| XML Kiosk |
| Technologie | XAS.Technology | Version | V 6.0.1 |
| Dernière modification | Mercredi 25 Août 2010 | Par | Zaïr BEZGHICHE |
| Dernière vérification | Dimanche 12 Septembre 2010 | Par | Support France |
| Thème | Administration des comptes, (Web, Web Services, PDA, WidGet, Fat Client) | Fonction | CHECKMOD.checkCanadianPostalCode |
| Prototype |
| Function checkCanadianPostalCode (postalCode As String) As Integer |
| Usage | |||
| Administration-des-comptes.checkCanadianPostalCode(...) | |||
| HTTP (GET,POST) | SOAP WSDL | SOAP REST | XML-RPC |
| Format de sortie | |||
| XML | HTML | TEXT | EXCEL(CSV) |
| Code Source - développement open source |
| Function checkCanadianPostalCode (postalCode As String) As Integer |
Function checkCanadianPostalCode (postalCode As String) As Integer
XasTrace "checkCanadianPostalCode"
checkCanadianPostalCode = True
If Len(postalCode) <> 6 Then
checkCanadianPostalCode = False
XasTrace "Bad character length"
Exit Function
End If
If Asc(Mid(postalCode, 1, 1)) < 65 Or Asc(Mid(postalCode, 1, 1)) > 90 Then
checkCanadianPostalCode = False
XasTrace "Bad character 1"
XasTrace CStr(Asc(Mid(postalCode, 1, 1)))
Exit Function
End If
If Asc(Mid(postalCode, 2, 1)) < 48 Or Asc(Mid(postalCode, 2, 1)) > 57 Then
checkCanadianPostalCode = False
XasTrace "Bad character 2"
Exit Function
End If
If Asc(Mid(postalCode, 3, 1)) < 65 Or Asc(Mid(postalCode, 3, 1)) > 90 Then
checkCanadianPostalCode = False
XasTrace "Bad character 3"
Exit Function
End If
If Asc(Mid(postalCode, 4, 1)) < 48 Or Asc(Mid(postalCode, 4, 1)) > 57 Then
checkCanadianPostalCode = False
XasTrace "Bad character 4"
Exit Function
End If
If Asc(Mid(postalCode, 5, 1)) < 65 Or Asc(Mid(postalCode, 5, 1)) > 90 Then
checkCanadianPostalCode = False
XasTrace "Bad character 5"
Exit Function
End If
If Asc(Mid(postalCode, 6, 1)) < 48 Or Asc(Mid(postalCode, 6, 1)) > 57 Then
checkCanadianPostalCode = False
XasTrace "Bad character 6"
Exit Function
End If
End Function
|
| Références XAS.Technology |
| XasTrace , Len , Asc , Mid , Cstr , |
| Audience |
| Cette documentation est destinée aux personnes s'intéressant aux systèmes d'information collaboratifs. Les Webservices, les architectures collabortives et distribuées, les moteurs transactionnelles et les concepts de programmation orientés objet. |
| XAS Services - Zaïr BEZGHICHE - Copyright 1991-2011 tous droits réservés- Powered by XAS.Technology |