io mi stupisco quasi sempre ;-) per strada mi son perso l'indicazione che il documento sta su vivoscuola.it Il giorno 02 dicembre 2009 23.56, gino perna <gino@xxxxxxxxxxxx> ha scritto: > 1 ! > > Ma ti stupisci? > > Immagina quanto tempo si possa impiegare per fare il "debug"! > > --- > ------------------------------------------------------------------------- > Gino Perna - Enginsoft SpA > Via della Stazione 27 - Fraz. Mattarello - 38123 Trento - ITALY > Tel +39 0461 915391 Fax +39 0461 979201 > ------------------------------------------------------------------------- > ------------------------------ > *From: * marco cassisa <marco.cassisa@xxxxxxxxx> > *Date: *Wed, 2 Dec 2009 23:46:29 +0100 > *To: *<linuxtrent@xxxxxxxxxxxxx> > *Subject: *[Linuxtrent] Eppur si muove - PAT e openoffice > > > Ciao > > riporto in vita questo thread [che creò (ingiustamente, IMHO) alcuni > attriti] solo perché ho voglia di scherzare. > Pezzo di codice trovato in una macro di un documento (in formato .doc: lo > avrà convertito automaticamente OO?): > > sub eliminaValoreSeAltroV > rem ---------------------------------------------------------------------- > rem define variables > > oSheet = ThisComponent.Sheets.getByName("2008-2009") > substituted=0 > > for k = 1 to 258 > > oCell = oSheet.getCellByPosition(7,k) > if oCell.getString() = "" then > oSheet.getCellByPosition(9,k).setString("") > substituted=substiduted+1 > end if > > next > print substituted > > > end sub > > secondo voi che valore avrà alla fine substituted? > > > aloha > > marco >