the columns are of type double.
kani98
Posts
-
get difference between two double precision columns -
get difference between two double precision columnsI am trying to compute the difference between two double precision columns, start_time and stop_time. I used this select statement: Select (stop_time - start_time) AS Duration From table; The result I get back is a column name Duration with empty cells. What should be the correct syntax? Thanks.
-
search for files using only the file extensionHi there, is there a C# method that will allow me to search for all the files of a specific extension and then delete them? I know there is an Exists method, but what do I pass into the method? What I have available are the path to the files and its extension.
-
get path to client desktopCan you tell what class or function I need to use to get the "Save As" dialog box to pop up when the save button is press in ASP.Net using C#? Thanks.
-
get path to client desktopI am developing an ASP.Net web application using C#. The application will display information on the page in a Datagrid. The application will have a "Save" button that will allow the user to save the information in the Datagrid into a CSV file on the client's desktop. I tried using Server.MapPath(), but all I get are paths on the server. Is there a C# function I can call to give the path to the client's desktop or do I need to use some Javascript function? Thanks.
-
Highlight a listview columnI have a Windows listview control with 15 columns. Is there a way for me to highlight a specific column in the listview? Can I also move the highlight by scrolling left and right on the listview? Thanks.
-
get screen resolutionCan you point me to an example of storing the resolution in hidden fields set to run server-side?
-
get screen resolutionI have a ASP.Net web application using C#, is there a way for me to get the PC screen resolution? I think I have to use javascript for this, but I don't know the syntax. If I have to use javascript, how do I get the value from the javascript variable into a C# variable? Thanks.
-
Create new thread with ASP.Net using C#Is there a way for me to create a new thread with ASP.Net using C#?
-
automatically generate a text file from the serverI have an ASP.Net web application in C# that needs to generate a text file automatically every hour. Is there a way for me to automatically generate the text file without any user interaction on the server or through a client? Is there a timer function that I can called? Thanks.
-
Enable editing of source file while program is runningSometimes when I am stepping through the code and find a problem, I like to start fixing it there.
-
Enable editing of source file while program is runningI have created a C# windows form application in VS 2005 and when I tried to edit the source file when the program is running, I get a message saying "Changes are not allowed while code is running or if the option 'Break all processes when one process breaks' is disabled. The option can be enabled in Tools, Options, Debugging." I tried enabling and disabling this option, but I still get this message and can't edit my source file while the program is running. Is there an option that I can enable or disable in VS 2005 that will allow me to edit the source file while the program is running?
-
check for decimal in numerical stringIs there a C/C++ funciton that will remove a character from a string? I want to remove the decimal from the input string. If someone enter 1.23, I want to use only 1.2, remove the decimal making it 12.
-
check for decimal in numerical stringI have an input box that a user can enter in 4 characters like 1.34. I need to check if there is a decimal in the input string and truncate everything after the tenth place. Is there a C/C++ function that I can use for this? Thanks
-
edit box font colorIs there a way for me to set the font color of a Win32 edit box? I know I can set the font type by sending a WM_SETFONT message, but I can't find anything about setting the font color. Any help is appreciated.
-
Listview horizontal scroll barHi Mark, thanks for the help, ListView_Scroll() solved the problem I asked. Now I have another problem, when I press the left or right arrow on the scrollbar, I don't receive any WM_HSCROLL messages. I need to check when the thumb is at the far right and the right arrow is press I need to check for newer data and when the thumb is at the far left and the left arrow is press to retrieve older data. Any suggestion why I am not receiving any WM_HSCROLL messages?
-
Listview horizontal scroll barI have a Listview window with 10 columns. Data are display in the column going left to right with the newest data at the right most column. A horizontal scrollbar is automatically displayed at the bottom and the thumb of the scrollbar is at the left side. I want to put the thumb of the scrollbar to the right side so the when you go to that window you see the newest data first. I tried using GetScrollInfo() but I keep on getting "The window does not have scroll bars." from GetLastError(). I tried using SetScrollInfo() and passing in different values for nPos of the SCROLLINFO structure to see if it would move the thumb, but it doesn't seem to work. Does anyone know how you I get the thumb of the scrollbar to be at the right side?
-
Listview header spanning 2 rowsI am not creating an MFC app, just a windows app. I am using the LVCOLUMN structure to create my listview.
-
Listview header spanning 2 rowsI tried that and it didn't work.
-
Listview header spanning 2 rowsIs there a way for me to create a listview hearder spanning 2 rows using C/C++. If there is, then I would appreciate it if someone can provide me with some code snippit.