I have a table of Labels with the sequential RG incremented in the hand, as it zeros every day.
I have a Label registration screen where I pass the number of labels to be generated:
Vrg := Select MAX onde eu pego o maior RG.
qtETQ := quantidade de etiquetas, por exemplo 500 etiquetas digitada pelo usuario
i := 0
while i <= qtEtq do //loop de 500 vezes
begin
Vrg := Vrg+1
etiqueta.rg := Vrg
etiqueta.post
end
My question is:
If I have two screens open, duplicate labels can happen. Is there a way around this?