Finding the next missing alpha letter

  • Thread starter Thread starter NachoShaw
  • Start date Start date
N

NachoShaw

Guest
Hey

Thought this would have been more simple than it appears to be (at least for me). I have a list of letters that we assign to folders. we dont want to leave any gaps and sometimes within projects, folders get reassigned leaving the letter empty which we would like to fill.

Im collecting the folder letters into a datatable for me to use in a gridcontrol and when i go to create a new folder, i'd like to look and see if there are any gaps. If there are, take the next available letter-

  • Folder A
  • Folder B
  • Folder D
  • Folder G

in the list, C, E, F are missing so the next folder letter i would need is C

is there a reasonable straight forward approach to this? I have tried using the letter number equivalent but struggled



Thanks



I am here to ask questions and learn from others. Cor Ligthert DO NOT REPLY TO ANY OF MY POSTS!!

Continue reading...
 
Back
Top