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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.