Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. plip1978

    net time as scheduled task

    Thanks, I thought I might end up writing a batch file.
  2. plip1978

    net time as scheduled task

    Hi, I'm having an issue with a network time sync. I currently have a scheduled task with sc.exe and the variables w32time task_started. However, I want to sync to a specific server. I am able to do this from the cmd line using > net time \\servername /set /yes, but I can't work out how to...
  3. plip1978

    string or float comparison errors

    Thanks everyone for your help! I've changed the method to this: def readPlanDataFromCSV(filename): # , rowNum, columnNum): #columnStart = '', columnEnd = ''): import csv tempFile = open(filename, "rb") reader = list(csv.reader(tempFile)) return reader And realised that...
  4. plip1978

    string or float comparison errors

    Thanks Bong! However, I'm getting this error: 'AttributeError: 'list' object has no attribute 'strip''. I guess the row object is a list. Will this method return a two dimensional array that I can index like Data[i][j]? Thanks, Phil.
  5. plip1978

    string or float comparison errors

    Thanks for the reply IPGuru! I use the two functions because they set different properties of the class. I want to set angles to two different items on a machine, so I've used two functions that (not in the example above, but in my actual class) are appropriately named. I realise that I could...
  6. plip1978

    string or float comparison errors

    Hi, I have a piece of code that performs the same test. It is a method inside a class: def setAngleA(self, newAngA): # set the gantry angle for that control point. if newAngA< 0 or newAngA> 360: print newAngA+ ' is not a valid angle.' else...
  7. plip1978

    Last Cell in Column Excel 2007 - Speed Up?

    I've always used the following code to find the last cell in a column: Public Function LastCellInColumn(sheetOfInterest As String) As Integer Sheets(sheetOfInterest).Select Range("A65536").End(xlUp).Select LastCellInColumn = ActiveCell.Row End Function Does anyone have any suggestions on...
  8. plip1978

    SharePoint 2010 foundation designer workflow multiple task creation

    Thanks ehaze. I have kind of sorted the problem by creating two workflows that run on the list. One had the 'if field1 is...' and the other has the field2 if statement. It's not very elegant, but it seems that the sharepoint foundation 2010 designer workflow is fairly limited anyway. Are there...
  9. plip1978

    SharePoint 2010 foundation designer workflow multiple task creation

    Hi, I've been trying to set up a workflow on a list using sharepoint designer 2010. I have two fields in my list that i want the workflow to create a task for when i change their status. For for field1 if i change from 'not received' to 'received' then create a task 'complete field1 work'. I...
  10. plip1978

    Sharepoint Foundation 2010 Quicklaunch views/permissions

    I've solved it! I deleted SiteB and there was still a link in the quicklink bar to that site. The link in the top bar was gone, but the quicklink one remained. Possibly it had been created somehow and hadn't been connected to the correct permissions. Anyway, I deleted that from the quicklink...
  11. plip1978

    Sharepoint Foundation 2010 Quicklaunch views/permissions

    Thanks for your quick reply ehaze. Yes, I've checked a test user and it says that the permissions are 'none' on SiteB. I'm tempted to just delete the site and start again. I haven't done much in that site, but I would like to know what has happened in case it happens again! Thanks again.
  12. plip1978

    Sharepoint Foundation 2010 Quicklaunch views/permissions

    I have recently set up standalone Sharepoint Foundation 2010. I've created a number of sites which I've added to the quicklaunch bar. I've recently added some new users and given them visitor permissions to the main (top level) site, and member permissions to SubSite A. The problem is that...
  13. plip1978

    VBA Type Declaration Character

    I take it you don't know the answer then...
  14. plip1978

    VBA Type Declaration Character

    Hi, I am looking at ways of optimising my vba code. I've noticed that a collegue uses type declaration characters on his numbers within his code, e.g. value = 10# - otherValue Can anyone tell me if there is any benefit to be gained from this approach? What is the default type of numbers used in...
  15. plip1978

    accessing class objects of class objects

    Sorry, just re-read your post, you say that at the top of your post already!
  16. plip1978

    accessing class objects of class objects

    So classProperty is an attribute that all instances of a particular class share? While an instance property is specific to that instance? Thanks again.
  17. plip1978

    accessing class objects of class objects

    Ok, apologies for not correcting the original code, I just cut and pasted it! I have this correct in my own code anyway. class Hairs: __molculesList = [] __totalHairs = int(0) __hairNumber = int(0) def __init__(self, obj, hairNum, totHairs): self.obj = obj...
  18. plip1978

    accessing class objects of class objects

    Hello, I have a class which contains a list: class Monkey: __hairsList = [] __totalHairs = int(0) __monkeyNum = int(0) def init(self, monkeyNum, totalHairs): self.__monkeyNum = monkeyNum self.__totalHairs = totalHairs self.getInitialHairs() def...

Part and Inventory Search

Back
Top