class StockVisuJob(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
# store the component context for later use
self.ctx = ctx
def trigger(self, args):
temp = args
temp.Split("&")
I suspect something is wrong with the string split??
[Solved] Processing input arguments
[Solved] Processing input arguments
Last edited by saleem145 on Tue Jul 31, 2012 11:42 pm, edited 1 time in total.
OpenOffice 3.4.0
Mac OS X 10.5.8
Mac OS X 10.5.8
Re: Processing input arguments
If args is a string, then
will create a list called MyArgs. The elements of MyArgs will be the text of temp split at the & characters. Notice that split starts with a lower case s.
Code: Select all
MyArgs = temp.split("&")
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
- Charlie Young
- Volunteer
- Posts: 1559
- Joined: Fri May 14, 2010 1:07 am
Re: Processing input arguments
Split should be split (lowercase), and I guess you wantsaleem145 wrote:class StockVisuJob(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
# store the component context for later use
self.ctx = ctx
def trigger(self, args):
temp = args
temp.Split("&")
I suspect something is wrong with the string split??
Code: Select all
temp = args.split("&")
Apache OpenOffice 4.1.1
Windows XP
Windows XP
Re: Processing input arguments
Yes I figured that one out....sorry for the dummy post....
OpenOffice 3.4.0
Mac OS X 10.5.8
Mac OS X 10.5.8