Hi again, thinking about that snippet:
> Do you see any sense in making a helper service concentrating on this > kind of tasks? > > Another use case is filling a Rowset for posting to the db. In a > Calc-makro I'm using something similar and have to carry it around as a > library: > > > ' Umwandlung des Werts aus der Zelle in den passenden Spaltentyp > ' fehlende Typen bitte ergänzen! > sub doUpdateValue(aRowSet as object, colnum as integer, ntype as > integer, value) > select case ntype > case com.sun.star.sdbc.DataType.BIT > aRowSet.updateBoolean(colnum, value) > case com.sun.star.sdbc.DataType.INTEGER, _ > com.sun.star.sdbc.DataType.SMALLINT, _ > com.sun.star.sdbc.DataType.TINYINT, _ > com.sun.star.sdbc.DataType.BIGINT > aRowSet.updateInt(colnum, value) > case com.sun.star.sdbc.DataType.FLOAT > aRowSet.updateFloat(colnum, value) > ... and so on and on and on ... > > So I think demanding a "locale converter service" from and to the > current locale for base would be a good thing. It has nothing to do with localization but type conversion. But it *is* a frequently repeated task (at least on my side ;). So it could be a combined service for transforming GUI or document centric types and localized values between their representations or there may be one service for each task ... Please comment, anyone who's intersted! Regards, Marc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
