19/05/2023: A causa di un errore sono stati cancellati, insieme ad account creati da bot, alcuni account legittimi. Si prega di leggere qui: https://www.gambas-it.org/smf/index.php?topic=9733.0
Type mismatch: wanted Object, got integer instead
DIM Msede AS NEW String[]sql = "select * from databasesedi order by iddatabasesedi" MyRS = MODMain.MyConn.Exec(sql) IF MyRS.Available THEN Msede.Clear FOR EACH MyRS Msede.Add(MyRS!sede) NEXT ENDIFSELECT Msede CASE 0 Label11.Caption = Msede[0] CASE 1 Label12.Caption = Msede[1] CASE 2 Label13.Caption = Msede[2] CASE 3 Label14.Caption = Msede[3] CASE 4 Label15.Caption = Msede[4] CASE 5 Label16.Caption = Msede[5] CASE 6 Label17.Caption = Msede[6] CASE 7 Label18.Caption = Msede[7] CASE 8 Label19.Caption = Msede[8] CASE 9 Label20.Caption = Msede[9] CASE 10 Label21.Caption = Msede[10] END SELECT
SELECT Msede 'questo e' un object string[] CASE 0 'qua gli chiedi se Object = integer Label11.Caption = Msede[0]
Dim Nx As IntegerFor Nx = 0 to Msede.Max SELECT Nx CASE 0 Label11.Caption = Msede[0] CASE 1 Label12.Caption = Msede[1] CASE 2 Label13.Caption = Msede[2] CASE 3 Label14.Caption = Msede[3] CASE 4 Label15.Caption = Msede[4] CASE 5 Label16.Caption = Msede[5] CASE 6 Label17.Caption = Msede[6] CASE 7 Label18.Caption = Msede[7] CASE 8 Label19.Caption = Msede[8] CASE 9 Label20.Caption = Msede[9] CASE 10 Label21.Caption = Msede[10] END SELECTNEXT
DIM Nx AS Integer FOR Nx = 0 TO MyRS.Max MyRS.MoveTo(Nx) SELECT Nx CASE 0 Label11.Caption = MyRS["sede"] CASE 1 Label12.Caption = MyRS["sede"] CASE 2 Label13.Caption = MyRS["sede"] CASE 3 Label14.Caption = MyRS["sede"] CASE 4 Label15.Caption = MyRS["sede"] CASE 5 Label16.Caption = MyRS["sede"] CASE 6 Label17.Caption = MyRS["sede"] CASE 7 Label18.Caption = MyRS["sede"] CASE 8 Label19.Caption = MyRS["sede"] CASE 9 Label20.Caption = MyRS["sede"] CASE 10 Label21.Caption = MyRS["sede"] END SELECT NEXT