[Linuxtrent] Eppur si muove - PAT e openoffice

  • From: marco cassisa <marco.cassisa@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Wed, 2 Dec 2009 23:46:29 +0100

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

Other related posts: