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. BTon15

    Alter date value in Text Box

    I have a Text Box on my ASP.Net page with a mask of 99/99/9999, and it should only accept a Date. I want to be able to type in only a 0 as a shortcut and have some Javascript change the value to the current date. I'm using the OnBlur event on my page to call the Javascript function...
  2. BTon15

    Alter date value in Text Box

    I have a Text Box on my ASP.Net page with a mask of 99/99/9999, and it should only accept a Date. I want to be able to type in only a 0 as a shortcut and have some Javascript change the value to the current date. I'm using the OnBlur event on my page to call the Javascript function...
  3. BTon15

    Finding filename using lsof

    This only seems to be showing me the filesystems that the files are open in, not the actual filenames.
  4. BTon15

    Finding filename using lsof

    I have a large C program running on AIX that seems to be consistently leaving an additional 2 files open after processing its input. There are several calls to tempnam and corresponding calls to unlink to remove the temp files after use. It looks like I've maybe missed a couple of unlinks...
  5. BTon15

    Escaping backslash char in string

    Thanks guys - that works great. I was sure I had already tried that before, but maybe I couldn't see the wood for the trees!
  6. BTon15

    Escaping backslash char in string

    Hopefully this is really simple for somebody out there: I want to build a string that I'm going to pass to the system() function command to do a Unix sed. I want my string to look like this: -e '/\[SECTION\]/d' i.e. I want my sed to remove a line that contains [SECTION] The sed works fine...
  7. BTon15

    Excel - Fill Color based on contents of Cell

    Thanks guys, I have this working now using Conditional Formatting as you suggested.
  8. BTon15

    Excel - Fill Color based on contents of Cell

    As I said I'm new to Excel - I've had a look at Conditional formatting but can't work out what I need to do. Any help to get me started with my problem would be greatly appreciated.
  9. BTon15

    Excel - Fill Color based on contents of Cell

    I'm new to VBA in Excel and I'm trying to do something that sounds simple to me, but I can't work out how to do it. I want to fill the colour of each row in my worksheet based on the contents of one of my columns. e.g. if column D contains "Paid", I want the row to be coloured green. If column...
  10. BTon15

    Question on free()

    Thanks for all your help guys. It turned out that I was doing malloc(strlen(str1)) followed by a strcpy() to copy str1 into my new area of memory. Of course I should have been doing malloc(strlen(str1)+1). It was all working ok until I tried to free the memory, but I guess that was just by...
  11. BTon15

    Question on free()

    I've declared a local variable as char* in my function (non-static) and then I've done malloc() to reserve some memory for it. I then use the variable and return from my function. If I don't free() the memory, will it be deallocated anyway since it is only in scope within the function? I seem...
  12. BTon15

    Sorting addresses in Excel

    Thanks guys - this works just as I wanted.
  13. BTon15

    Sorting addresses in Excel

    I have a spreadsheet with a list of names and addresses. The addresses are of the form: 42 High Street 12 Bank Road 8 High Street ... Is there an easy way to sort the column in Excel so that they are ordered alphabetically? e.g. I want to see the row with Bank Road before the ones for High...
  14. BTon15

    Passing UserControl as param into Sub

    The problem is that my User Controls are all different, so I can't pass in my parameter with type UserControlName. I'm trying to write a generic module that will work for all my User Controls, so was trying to pass the parameter with type Control, or Variant, or Object or something similar, but...
  15. BTon15

    Passing UserControl as param into Sub

    Thanks for your reply. However, what I'm trying to do is pass a User Control as the parameter, not a form. I have a form with several tabs, each one containing a User Control which holds text boxes, combos, etc. I want to do a Save only for the tab that I'm currently on, not the whole form...
  16. BTon15

    Passing UserControl as param into Sub

    I'm trying to write a generic Sub to build up a string of all the data I've typed into my text boxes, combos, etc since I last did a Save. Most of my controls are held within user controls, so I'd like to call my new Sub like this - sChangeString = GetChangeString (Me) I've created my Sub...
  17. BTon15

    Saving Rich Text Box contents to a file

    That's great. Thanks very much.
  18. BTon15

    Saving Rich Text Box contents to a file

    I'm writing a Text File Viewer program and need to be able to load a text file into a rich text box, and also save the contents of the rich text box back to the file after the user has done an edit. I have no problems loading the file in via RichTextBox.FileName Does anyone know the best way...
  19. BTon15

    Word Automation and watermarks

    I'm doing Word Automation from VB6 (using Word 2000) and need to display a watermark in my Word doc, but only under certain circumstances. Does anyone know if Word watermarks can be made visible/hidden programmatically from VB, or do I need to use 2 templates (one with a watermark and one...
  20. BTon15

    Making a form "always on top" / form persistance

    I've found a better way of doing this in case anybody's interested. See Microsoft Knowledge Base Article - 184297.

Part and Inventory Search

Back
Top