dimanche 14 juin 2015

SQL ID to Int32 - there has to be a quicker way (Swift)

Trying to turn a record ID into an Int32 and ending up with a verbose three line/layer trick to achieve the obvious. There must be a shorter way. Can someone put me out of my misery?

var XX = resultSet.stringForColumn("ID")
var XXX = XX.toInt()
recordNumberBack = Int32(XXX!)

Aucun commentaire:

Enregistrer un commentaire