Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import uno
- def vstup(harok,pozicia):
- doc = XSCRIPTCONTEXT.getDocument()
- bunka = doc.Sheets[0][pozicia].getString()
- return bunka
- def vystup(harok,pozicia,text):
- doc = XSCRIPTCONTEXT.getDocument()
- bunka = doc.Sheets[harok][pozicia]
- bunka.setString(text)
- return
- def main():
- a = vstup(0,'A1')
- b = vstup(0,'B1')
- c = int(a) + int(b)
- vystup(0,'D1',str(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement