Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alphabetical sort of characters within a string.
#37
Pete wrote:

a$ = "uncopyrightable"
For i = 1 To 26
    If InStr(LCase$(a$), Chr$(96 + i)) Then Print Chr$(96 + i);
Next


Ok, very short.
But, if the word has the same letter twice (or more), some of them are lost if the final result must have the same length.
Why not yes ?
Reply


Messages In This Thread
RE: Alphabetical sort of characters within a string. - by euklides - 04-26-2024, 07:23 AM



Users browsing this thread: 1 Guest(s)