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 Rhinorhino 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: *

  • Users: plip1978
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. plip1978

    Adding same value to a list

    Hi, I want to add the same value to a list: singlevalue = 12 numberOfElements = 60 tempList = [singleValue for i in xrange(numberOfElements)] This code seems to work, but my IDE reports (quite rightly!) that the variable i is unused. Is there a tidier way to approach this? Thanks in advance.
  9. plip1978

    Dynamically create objects

    Hello, I am new to Python programming so please excuse what may be a simple question: I have created a class which contains a list of other classes, e.g. class Monkey: hairsList = [] totalHairs = int(0) def __init__(self, totalHairs): self.hairsList = self.getHairs()...
  10. plip1978

    SQL Multiple new columns

    Hi all, I'm trying to create new columns based on the elements within a column. I have two tables, the first is like this: Tasks: Key | Tree | Duty | Done_by | ----------------------------- 2 | 2 | Top | NULL | 3 | 2 | Plan | Bill | 4 | 2 | Done | Jane | 5 | 3 |...
  11. plip1978

    problem with excel worksheets.cells() want more than 257 rows looped!

    Hi, I hope someone can help. The following code breaks at i=257 (assume the condition is true at cell(1, 857) for example), can anyone tell me why? Also is there a way around this? Worksheets(sheetName).Activate For i = 1 To 1000 If Worksheets(sheetName).Cells(1, i).Value = checkValue Then...
  12. plip1978

    Searching and creating worksheets

    Can anyone suggest why the following code doesn't work? I want to search for a worksheet with the "username_temp" and if it doesn't exist then create a new worksheet. It works sometimes, but when I've used it once, then logout and login at another terminal it tries to create a new sheet and then...

Part and Inventory Search

Back
Top