Advertisement
Guest User

Untitled

a guest
Feb 13th, 2023
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. Function RSoundex(FullString As String) As String
  2. '**************************************************************
  3. '**************************************************************
  4. 'WRITTEN
  5. '2021-Apr-29
  6. '**************************************************************
  7. 'PURPOSE
  8. 'Convert the passed string to the Russell Soundex value:
  9. '* Non-initial vowels, W, and H all act as dividers
  10. '* Consecutive consonants with the same Soundex values are
  11. ' treated as one instance
  12. '* The Soundex value is the initial letter plus up to three
  13. ' digits
  14. '**************************************************************
  15. 'PROJECT
  16. '-NONE-
  17. '**************************************************************
  18. 'CLIENT
  19. '-NONE-
  20. '**************************************************************
  21. 'CHANGE HISTORY
  22. '-NONE-
  23. '**************************************************************
  24. 'ARGUMENTS
  25. 'FullString String Name to simplify
  26. '**************************************************************
  27. 'RETURN
  28. 'String Russell Soundex value for passed string
  29. '**************************************************************
  30. 'VARIABLES
  31. 'sSdxC String Soundex value for sCurr
  32. 'sSdxP String Soundex value for sPrev
  33. '**************************************************************
  34. 'CONSTANTS
  35. '-NONE-
  36. '**************************************************************
  37. 'CALLED BY
  38. 'Query invocation
  39. '**************************************************************
  40. 'CALLS
  41. 'SoundexValue
  42. '**************************************************************
  43.  
  44. Function SoundexValue(SourceChar As String) As String
  45. '**************************************************************
  46. '**************************************************************
  47. 'WRITTEN
  48. '2021-Apr-29
  49. '**************************************************************
  50. 'PURPOSE
  51. 'Return the Russell Soundex value for the passed letter
  52. '**************************************************************
  53. 'PROJECT
  54. '-NONE-
  55. '**************************************************************
  56. 'CLIENT
  57. '-NONE-
  58. '**************************************************************
  59. 'CHANGE HISTORY
  60. '-NONE-
  61. '**************************************************************
  62. 'ARGUMENTS
  63. 'SourceChar String Letter to convert to Soundex number
  64. '**************************************************************
  65. 'RETURN
  66. 'String Soundex value for passed letter
  67. '**************************************************************
  68. 'VARIABLES
  69. '-NONE-
  70. '**************************************************************
  71. 'CONSTANTS
  72. '-NONE-
  73. '**************************************************************
  74. 'CALLED BY
  75. 'RSoundex
  76. '**************************************************************
  77. 'CALLS
  78. '-NONE-
  79. '**************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement