Hamish_NZ's Q&A profile
Visual FoxPro use the reccount
hello all I use "set filter to" and want to know how much record is match the filter condition. I use the "reccount()" but it return the result is not I want. it is all the record count Hi, i think you will need to use COUNT command instead. RECCOUNT() is not affected by SET FILTER. ...Show All
Visual Studio 2008 (Pre-release) child XAML as like Child window.
I am a begginer Avalon programmer. I am learning this, and I noticed it is different with MFC program. I am trying to make a simple preogram, It need to include a child window, the child window will change dinamically. SO I need to make a main window (Main.XAML / Main.XAML.CS) and it need to include Subwindow (sub.XAML / sub.XAML.CS) . How can I make this. I can add some controll or Other element. but How can I add other XAML . Are you talking about a MDI Window MDI windows will not be available in WPF, atleast in V 1. You can read more about it here http://blogs.msdn.com/nickkramer/archive/2005/07/08/436329.aspx ...Show All
Visual Studio Team System Recommendations for organization of code within classes
The Design Guidelines have been a great help and I am glad to see that FxCop helps enforce them. Do you, or does Microsoft have, any guidelines or recommendations on the formatting or organization of code within classes For example, I prefer to order my code in my classes surrounded by regions as such: Constructors Constants Private Member Variables Public Propeties Private Methods Etc. Any guidance or help is greatly appreciated. Doug Ramirez Frank: Thanks for your response. With regards to organizing groups of class members into their own regions, that is usually ...Show All
SQL Server i created a login in SQL SERVER 2005 EXPRESS, but cant login...
create login dave with password='abc', default_database=tempdb when i use this account to login my sql2005, i got Msg 18452, Level 14, State 1, Server DAVID-398113F7C\SQLEXPRESS, Line 1 Login failed for user 'dave'. The user is not associated with a trusted SQL Serv er connection. why Try posting on the SQL Server SMO/DMO forum with the text of the error and a description of the steps you took before you received it. There might be something wrong with your installation though. Have you tried installing on a different machine or reinstalling Did you get any errors during the initial installation Thanks Laurentiu ...Show All
SQL Server Is there a way to add items to the report bar?
Can you add items like buttons, menu items to the report bar, say like next to the View Report button I'd like to add a button or link to take the user back to a menu selection for the reports. In that same vein, can someone link me to a tutorial on how to use SQL Reporting Services from within your ASP.NET web project Thanks for any help. Did you ever figure this out I have the same question. Thanks, Duncan ...Show All
Windows Forms RootComponentDesigner Add component
Hi, I noticed when you add an SqlDataAdapter from the toolbox to a component design surface it calls the wizard. I can't reproduce this using code. I'm using the following in a Designer: Note the Configure wizard is only called when my code explicitelly launches the designer verb, but in this way the SqlAdapter's commands don't get assigned unique names (ie they are named sqlSelectCommand instead of sqlSelectCommand1, and adding another adapter to the same component throws an exception since there's already an "sqlSelectCommand" in the root component). Shouldn't the wizard ...Show All
Windows Forms Create an event for the close button on the title bar
Hello, I am using VS 2003. Lets say for example we have just a simple form and at the top of the form we have the default minimize, maximize and close button. How would I create an event for when if the user clicks the close button at the top of the form before the window closed it would perform an operation For example, if the user clicked the close button at the top, it would print a message box saying "Are you sure you want to close" or something of that nature. I simply just want to be able to execute some code when the user clicks that close button. Thanks. ~zero sorry this code i was sending to some other ...Show All
.NET Development lock synchronization error using NetworkStream
Hello! I'm having a problem with using NetworkStream::BeginWrite() method. I've implemented a class CClient which contains a method SendMessage() which uses BeginWrite() method. The code is like this: void CClient::SendMessage(String^ message_) { //we convert the data from String to byte array: Monitor::Enter(sentData); sentData = Text::Encoding::ASCII->GetBytes(message_); Monitor::Exit(sentData); //we start writing data to the stream; tcpClient->GetStream()->BeginWrite(sentData, 0, sentData->Length, gcnew AsyncCallback( this , &CClient::SendData), nullptr ); } //... ...Show All
SQL Server Join tables, count problems
Hi, I have the following problem: I want to join 2 tables but the table that I want to join on has duplicates of the same record. This is what my query looks like: SELECT a.account, e.account AS Expr1, COUNT(e.ord_status) AS SentOrders, MONTH(e.datetime_added) AS Month, YEAR(e.datetime_added) AS Year FROM executionreports AS e INNER JOIN accounts AS a ON e.account = a.account WHERE (e.ord_status = '0') GROUP BY a.account, e.account, MONTH(e.datetime_added), YEAR(e.datetime_added) ORDER BY Expr1 and the output looks like this: 1AA 1AA 328 4 2006 1CC 1CC 45 3 2006 1CD 1CD 8 4 2006 1MA 1MA 1167 3 2006 1MA 1MA 8 ...Show All
SQL Server MDX based report parameters misbehave when inter-dependent
Hello, We have problems when creating report parameters on AS based queries. If the parameters are inter-dependent (one dropdown is filled by a query depending on the value of a previous parameter selection), then if the depending parameter is set to <Select a value> and then the first one's value is changed we get a strange error message: Value cannot be null. Parameter name: value This erorr doesn't occur in preview mode ! It is easily repoducible on the ADV works cube with the graphical query designer: Just drag [Measures].[Reseller Extended Amount] [Sales Territory].[Sales Territory].[Sales Territory Region] to the mai ...Show All
Windows Forms Help me designer has Bugs bugs bugs
For some reason whenever I use certain controls in Visual Studio 2005 the designer will not reload the form and I get Initialization errors in the designer. Ive downloaded the TaskVision app to see if it was something that I was doing, but I am unable to view any complex forms in that project either.. One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The designer cannot process the code at line 58, please see the Task List for details. The code within the method 'InitializeCompone ...Show All
Visual FoxPro checking RTF control for EMPTY ()
I have trouble checking programmatically that RTF.textRTF is empty. If it is visually empty to the viewer the function EMPTY (RTF.textRTF) returns .F. If I use an assignment m.memVar = RTF.textRTF I can print it out as a set of strings (about 3) of formatting characters. It is after the control was filled with some text and subsequently that text was deleted (manually) in the control window. How can a test be done to verify that the control is empty Thanks. The presence of additional formatting characters also creates another problem. If I want to encrypt the content of RTF.textRTF those characters get in the encryption and when ...Show All
Smart Device Development Embeddable database or DBF Library?
I have been using the Pocket Access database format for my applications as they do not need SQL Server and the customers do not need SQL Server / MSDE on their desktop. I don't feel that XML is a valid option for a database but I may be wrong. Any alternatives to Pocket Access and or SQL Server would be appreciated. I was wondering if anyone had seen a DBF library in C# that can be used in the Compact Framework. Thanks in advance for ANY help or suggestions. Most every app I have syncs with the desktop. Export files just are sloppy in my opinion. Thanks for the idea though, I will look into it but for me it ...Show All
Visual Studio Team System Work Item question
I'm in the process of working with work items. I've been using the 'Authoring Work Items Type' document to make some changes, but the documentation does not seem to be complete. I would like more information on field elements within the work item schema. I've also looked online, but a lot of the content still seems to be incomplete. Is there a place someone can guide me to thanks, aaron User names are stored internally in the form of domain\user, so try the following: <DEFAULT from="value" value="domain\aaron" />, replacing "domain" with the actual domain name. Please note that the user must be k ...Show All
Visual C++ Can't define Indexer property
After recompiling the following code with VS 2005 Beta 2, an C# assembly can't calling the indexer. //C++: [System::Reflection::DefaultMember( "Parameter" )] public __gc class NativeObjectConfigurator : public System::Collections::ArrayList { public : __property ParameterInfo* get_Parameter( int index); __property ParameterInfo* get_Parameter(System::String* name); }; //C#: NativeObjectConfigurator no = new NativeObjectConfigurator(); ParameterInfo pi = no["ApplFlags"]; error CS1502: The best overloaded method match for 'System.Collections.ArrayList.this[int]' has some invalid arguments error CS ...Show All
