• @ccc your right. When I made the body of the function I was imagining 3 dials with the numbers 0 through 9 and as they rotate when first dial hit 9 the next dial would click over to 1 and the first dial change to 0. Like an odometer. I figured it out but I see now all I need is <999 += 1.

    I was watching a video and thinking of what you recommended and came up with this

    def patient_id_gen(): ''' generates patient id one at a time as patient object is created ''' prefix = 'AD' for i in range(1000,9999): yield f"{prefix}{i}"
  • @mikael thanks for the feedback. I always appreciate it. I see now how checking the list the way I am isn’t going to work. The master list will have every patient who’s ever been at the hospital and the current list will only have current patients. That along with how I was storing them by name. With all this in mind I will try to figure something else out and let you know how it goes. Thanks

  • @cvp that was exactly what I needed. I thought label is what should be used but had no success sending my string. Turns out I was only missing the .text - Thank you!

Internal error.

Oops! Looks like something went wrong!