Topic: changing to uppercase direct entry in tablegrid
I share here what I have used as a solution to convert filled text fields directly through the tablegrid into uppercase. Insertion or change of record.
SQLexecute(' CREATE TRIGGER IF NOT EXISTS [nome_categoria_upper_insert] AFTER INSERT ON [tbl_categorias] '+
' BEGIN '+
' UPDATE '+
' [tbl_categorias] '+
' SET '+
' [nome_categoria] = UPPER ([nome_categoria]) '+
' WHERE '+
' [rowid] = [NEW].[rowid]; '+
' END; ')
SQLexecute(' CREATE TRIGGER IF NOT EXISTS [nome_categoria_upper_insert] AFTER UPDATE ON [tbl_categorias] '+
' BEGIN '+
' UPDATE '+
' [tbl_categorias] '+
' SET '+
' [nome_categoria] = UPPER ([nome_categoria]) '+
' WHERE '+
' [rowid] = [NEW].[rowid]; '+
' END; ')