Rafal Szul's Q&A profile
Visual Basic Check if type is numeric or not?
I have a question. In trying to do an if statement on a value thats suppose to be numeric, how do I test for that condition Like in a string test: If mystring <> "" then I want to accomplsih the same with an integer or double to see if it has a number assigned to it or not. Thanks, Tom Hi, You seem to have mixed up C# and VB in the code snippet! It should be as follows in VB: Dim number As Integer If (number = 0) Then MessageBox.Show( "number is zero!." ) Else MessageBox.Show( "number is not zero!." ) End If Regards, Vikram ...Show All
SQL Server Model Information
Is it possible to get hold of the fit parameters out of the prediction models in order to use them without going back to the database. E.g. With the linear fit model, y = ax + b, is it possible to get hold of a and b This way I could use the fit equation and parameters directly within my C# code, rather than making many costly connections back to the database. You can get all of the parameters from the model's content rowset. You can see the rowset by using the generic viewer (there's a viewer drop-down above the mining viewers) or by executing the query SELECT * FROM [My Model].CONTENT. At www. ...Show All
SQL Server Transfer SQL Server Objects Task doesn't work
Source Database: SQL Server 2000 Destination Database: SQL Server 2005 No matter what table, view, or stored proc I pick, it always says that it doesn't exist at the source. I know it exists because I am picking it from the list of tables, etc. that the GUI provides. Any suggestions Jonathan Allen This is a known issue (due to a bug in a component outside of Integration Services). There are no work arounds. There is a lot of community interested in getting this fixed. So, hopefully the fix will be made available soon. ...Show All
Visual Studio Express Editions Visual Express C++ documentation..
Hi, I'm not used to work with compilers and need some help with Visual C++ Express. Does there exist some documentation for dummies that explains some - if not - all the features I'm hoping for some free documentation! Cheers Thomas When you install the software it installs the MSDN for the Express product, this is the main source of documentation that you will need. The next source of documentation will be here and on the online MSDN site. Also I am moving this thread to the C++ Express forums as you will get better answers in there as other C++ users will be listening there. ...Show All
Visual Studio Team System Getting Detail Code Coverage Information
Hi, From Visual Stuidio IDE, I can see code coverage information showing which line has been covered by a test and which line not has not. But From TSFWarehouse, I can get only line count (i.e., how many lines has been covered in a test) information. My question is, how can I get detail information on code coverage, so that I can create custom display (or reporting) on code coverage, just like Visual Studio IDE. Thanks in advance, Syed Raihan. You'd have to go directly to the underlying code coverage data in the code coverage data file. We can't put all that data into the database as it would swamp ...Show All
SQL Server Nominal intrest in TSQL
Hi I have to make a calculation based on the Excel Nominal function to get the nomanal Interest Month Quarter Half year per year 2% = 0,16516% 0,49629% 0,99505% 2,00% 3% " 0,24663% 0,74171% 1,48892% 3,00% 4% " 0,32737% 0,98534% 1,98039% 4,00% 5% " 0,40741% 1,22722% 2,46951% 5,00% 6% " 0,48676% 1,46738% 2,95630% 6,00% 7% " 0,56541% 1,70585% 3,44080% 7,00% 8% " 0,64340% 1,94265% 3,92305% 8,0 ...Show All
.NET Development Unrecognized configuration section 'microsoft.web.services2'
Anyone has a clue about how to fix this error. I am using WSE 2.0 (Unrecognized configuration section 'microsoft.web.services2') Thank you. I got it. I had to add the below element to Web.config file. < configSections > < section name ="microsoft.web.services2" type ="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </ configSections > ...Show All
Visual C++ UNICODE file and RichEdit
How can I read a UNICODE file and insert it in a RichEdit (The file begin with FEFF). Please follow your other post at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=280937&SiteID=1 Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development POST fails on larger messages/slower connection
I have a webservice receiving encoded strings of a size usually between 1k and 20MB which will be sent by a special application. When the application is started, it sends about 1000 of these strings to to the server, checking response and sending again, if necessary. Im using Framework 1.1, no additional stuff (like WSE) installed. Only known users are allowed to access the webservice. The server is configured to handle these bigger requests by adding maxRequestLength="40960" and executionTimeout="3600" to its web.config httpRuntime-Node. To reduce the number of requests sent by the client, i set the PreAuthenticate-prope ...Show All
Visual Studio Release Build
I have just upgraded to VS 2005 Express Beta2 and I can't fine where the release build option is. And help points me to the wrong place. So where can I change my build option from debug to release Lukasz, Yes please do let the proper team know as i woul dlike those features (tha ti can customize the toolbar anyway i want , even for VB). I tried to find them too using customize and when you selected VB profile they are just not there. Strange that some functions are just totally gone depending on what profile you select and cant even customize further the toolbar. Thanks, Bruno ...Show All
Visual Basic I need help viewing my scripts
I may just be a idiot but i cant figure out how to veiw my compliled scripts so if anyone can help me i would be very thank full i just need to the finish product viewer or w.e ...Show All
Windows Forms Typed dataset in separate project
I started to ask about this in another thread, but it was in the wrong forum, so I'll ask here: I was able to add a datasource to a class library project, then reference that datasource via a windows forms project, but I was unable to successfully drag and drop a table on to a form. All the necessary controls were created for a databound form *except* the tableadapter (no error messages or anything). When I created the same datasource from scratch inside the windows project and drag/dropped the same table, everything worked fine. Any particular reason for this I'm using VB (2005). The gist of it is, I want to keep my data access code in ...Show All
Visual Studio Team System Load Test performance problem
I have a coded web test that has 36 requests, 100 or so dependant requests (mostly cached), and 20 or so extractions. There are about 45 seconds of total think time on three requests. I am running this under a load test, growing from 50 to 500 users at 50 user steps. My problem is that at 200 or 250 users, my test client CPU jumps from 10% to about 70%, and the requests/sec drop from 1500 to about 100. I don't get errors in my tests, but VSTestHost.exe starts using way too much CPU. As far as I can tell, my target is still returning valid reponses - the problem seems to be on the test client side. Th ...Show All
Windows Forms How to set DataGrid Cell Value
Im trying to set the DataGrid CurrentRow Cell value to what is contained in a text box txtMyValue.Text on my form I have tried the code below but it wont work Can anyone set me on the right path DataGrid1.CurrentCell.RowNumber, 0).value = txtMyValue.Text All three of these ways are correct. -mark Program Manager microsoft This post is provided "as-is" ...Show All
Windows Forms ToolStripRenderer
Hi, I am having this very weird problem.I have created a custom ToolStripButton and hosted it in the ToolStrip. After I change the apperance of the ToolStrip using Renderer,I can see the buttons,but i cannot view the separator.I dont know,but the separator do not show up.I can see all the other controls.But the separator never comes up. Thanks in advance Vishal Aggarwal public class baseRenderer : System.Windows.Forms. ToolStripRenderer { protected override void OnRenderToolStripBackground( ToolStripRenderEventArgs e) { SolidBrush transparentBrush = new SolidBrush ( Color .Transparent); ...Show All
