From jwcolby at colbyconsulting.com Wed May 2 10:21:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:21:23 -0400 Subject: [dba-VB] VB.Net - using an outside DLL Message-ID: <006101c78ccd$8bc36050$657aa8c0@m6805> I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed May 2 10:29:43 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 08:29:43 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006101c78ccd$8bc36050$657aa8c0@m6805> Message-ID: <0JHF009HW71PEG10@vms048.mailsrvcs.net> In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:54:59 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:54:59 -0400 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <0JHF009HW71PEG10@vms048.mailsrvcs.net> References: <006101c78ccd$8bc36050$657aa8c0@m6805> <0JHF009HW71PEG10@vms048.mailsrvcs.net> Message-ID: <006701c78cd2$3d9b57c0$657aa8c0@m6805> SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Wed May 2 12:09:15 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 10:09:15 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006701c78cd2$3d9b57c0$657aa8c0@m6805> Message-ID: <0JHF00FCKBO1F4D0@vms044.mailsrvcs.net> Yes it doesn't matter where you place ICSharpCode.Sharplib.DLL because when you create a reference for this DLL in your project you will be asked for its location. After you point VS.NET to the correct location it will place a copy of that DLL in the same BIN folder where VS.NET will place your application DLL or EXE after it compiles and links it. -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, May 02, 2007 8:55 AM To: ebarro at verizon.net; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - using an outside DLL SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon May 7 04:13:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 07 May 2007 11:13:55 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ------------------------------------------------------------------------------- FREE VIDEO How to use the BackgroundWorker Control ------------------------------------------------------------------------------- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor From jwcolby at colbyconsulting.com Mon May 7 07:00:39 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 7 May 2007 08:00:39 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000901c7909f$555e9450$657aa8c0@m6805> Gustav, Thanks for the link. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 07, 2007 5:14 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ---------------------------------------------------------------------------- --- FREE VIDEO How to use the BackgroundWorker Control ---------------------------------------------------------------------------- --- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Mon May 7 15:17:35 2007 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 07 May 2007 16:17:35 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000601c790e4$c0fae5c0$2f01a8c0@Kermit> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From gustav at cactus.dk Mon May 7 17:08:38 2007 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 08 May 2007 00:08:38 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi Doris That sounds like two very good examples. /gustav >>> mikedorism at verizon.net 07-05-07 22:17 >>> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From jwcolby at colbyconsulting.com Tue May 8 15:48:11 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 16:48:11 -0400 Subject: [dba-VB] Redeem your voucher Message-ID: <011e01c791b2$32acf370$657aa8c0@m6805> Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Tue May 8 16:17:05 2007 From: ebarro at verizon.net (Eric Barro) Date: Tue, 08 May 2007 14:17:05 -0700 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue May 8 17:16:27 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 08 May 2007 15:16:27 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ00JF6TO5SI22@l-daemon> Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:05:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:05:12 -0400 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Message-ID: <000001c791cd$b85219e0$657aa8c0@m6805> LOL, yea, that's probably it. Though I am normally ranting about SQL Server or Access. I don't know enough about Visual studio to rant about it YET. Maybe they thought if I couldn't redeem my voucher I would never get good enough to rant about it? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, May 08, 2007 5:17 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] [AccessD] Redeem your voucher Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:06:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:06:23 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <0JHQ00JF6TO5SI22@l-daemon> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> Message-ID: <000101c791cd$e246ea50$657aa8c0@m6805> The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:21:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:21:17 -0400 Subject: [dba-VB] Interesting for you kung fu masters? Message-ID: <000201c791cf$f7351f20$657aa8c0@m6805> www.sql-server-performance.com/vg_database_comparison_sp.asp John W. Colby Colby Consulting www.ColbyConsulting.com From bheid at sc.rr.com Tue May 8 21:06:33 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 8 May 2007 22:06:33 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <000101c791cd$e246ea50$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> <000101c791cd$e246ea50$657aa8c0@m6805> Message-ID: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 21:51:03 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 22:51:03 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon><000101c791cd$e246ea50$657aa8c0@m6805> <006e01c791de$aaad9ba0$2c01a8c0@bhxp> Message-ID: <000301c791e4$e3413160$657aa8c0@m6805> Yea, I did that. Luckily I already have a copy, with a copy of SQL Server 2005, both of which I picked up at the coming out party. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 08, 2007 10:07 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 16:08:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:08:07 -0400 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <007601c7927e$248a5a90$657aa8c0@m6805> I am looking at how to do in VB.Net what in VBA would be str = trim(mid(str,intStartPos, intLen)) I can do this (I think) in two steps using: private mstr as string mstr = lstrRecord.SubString(intStartPos,intWidth) mstr = mstr.Trim(mstr.ToCharArray) Given what I know about VB.Net (not very darned much) is this the best way? I see where the string builder can do the substring part but it does not have a trim method. John W. Colby Colby Consulting www.ColbyConsulting.com From chizotz at mchsi.com Wed May 9 16:23:53 2007 From: chizotz at mchsi.com (Ron Allen) Date: Wed, 09 May 2007 21:23:53 +0000 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does not > have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ebarro at verizon.net Wed May 9 16:36:36 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 09 May 2007 14:36:36 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM From jwcolby at colbyconsulting.com Wed May 9 16:46:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:46:10 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> Message-ID: <007b01c79283$75b70c10$657aa8c0@m6805> Done. Thanks guys. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 09, 2007 5:37 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Wed May 9 16:48:30 2007 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 9 May 2007 14:48:30 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = > 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the best > way? > > I see where the string builder can do the substring part but it does not > > have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed May 9 16:57:51 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:57:51 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> Message-ID: <007d01c79285$174d0e20$657aa8c0@m6805> It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 17:20:12 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 15:20:12 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <007d01c79285$174d0e20$657aa8c0@m6805> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> <007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 18:20:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 16:20:32 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 3:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 20:16:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 21:16:44 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: <000801c792a0$e0be50a0$657aa8c0@m6805> OK, I understand. I always thought of the methods as just returning a value, but in .Net even variables are objects which have methods. Makes perfect sense. Thanks for stating it that way though, else I would have spent the next few years with a complete misconception of what was really happening. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 7:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu May 10 07:02:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 10 May 2007 08:02:24 -0400 Subject: [dba-VB] VB.Net - XML comments Message-ID: <000d01c792fb$1743bbb0$657aa8c0@m6805> I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Thu May 10 08:11:52 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 10 May 2007 06:11:52 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 10 08:46:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 May 2007 09:46:53 -0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Message-ID: <20070510134705.51A7CBC95@smtp-auth.no-ip.com> No, I meant what application will reach into these files and generate a documentation book using the xml comments. That is the purpose of these xml tags, to create a document. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, May 10, 2007 9:12 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - XML comments Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From chizotz at mchsi.com Thu May 10 10:43:35 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 15:43:35 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071543.26026.46433DA6000C264F000065AA219791336303010CD2079C080C03BF969B019607080C@mchsi.com> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Thu May 10 11:07:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 May 2007 18:07:22 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron I don't see that menu item. How is it added? /gustav >>> chizotz at mchsi.com 10-05-2007 17:43 >>> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From chizotz at mchsi.com Thu May 10 12:54:52 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 17:54:52 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the > help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and generate a > > documentation book using the xml comments. That is the purpose of these xml > > tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > > solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with just the > > content"? > > > > You can use regular expressions to strip off XML or HTML tags. This is the > > syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has anyone > > ever found / used something that yanks the comments out to see what they > > look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From martyconnelly at shaw.ca Thu May 10 13:05:14 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 11:05:14 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: References: Message-ID: <46435EDA.8040004@shaw.ca> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Thu May 10 13:03:07 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 10 May 2007 11:03:07 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> References: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: I just found a comment that the feature was removed from 2005. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=106905&SiteId=1 for some more information. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Thursday, May 10, 2007 10:55 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and > in the help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and > > generate a documentation book using the xml comments. That is the > > purpose of these xml tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and > > problem solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with > > just the content"? > > > > You can use regular expressions to strip off XML or HTML tags. This > > is the syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has > > anyone ever found / used something that yanks the comments out to > > see what they look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Thu May 10 16:44:37 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 01:44:37 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <002001c7934c$68575560$6401a8c0@nant> Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Thu May 10 17:32:02 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 May 2007 15:32:02 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <0JHU0090KJPVIVQ0@l-daemon> Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Thu May 10 17:42:08 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 00:42:08 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron and Marty It's VS2005 Standard. /gustav >>> martyconnelly at shaw.ca 10-05-07 20:05 >>> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 10 19:19:47 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 17:19:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> References: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <4643B6A3.1040604@shaw.ca> Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Fri May 11 06:08:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:08:07 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHU0090KJPVIVQ0@l-daemon> Message-ID: <000c01c793bc$a7f0cf60$6401a8c0@nant> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Fri May 11 06:40:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:40:59 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <4643B6A3.1040604@shaw.ca> Message-ID: <001f01c793c1$3f3927b0$6401a8c0@nant> Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 07:29:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 14:29:26 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Shamil et al XAML (Avalon) is perhaps the most interesting part: Consistent presentation model by using XAML, the declarative presentation language used in Windows Vista*based applications. Controls, visual designs, media, and other elements can be presented with full design fidelity in both Silverlight and Windows*based applications. /gustav >>> shamil at users.mns.ru 11-05-2007 13:08 >>> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Fri May 11 09:46:47 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 07:46:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000c01c793bc$a7f0cf60$6401a8c0@nant> Message-ID: <0JHV004BTSUEX2F2@l-daemon> Hi Shamil: Had not heard of the product yet but will check it out. It will have to go a long way to match the market penetration that FLASH currently has but I am sure it will default with IE. Have a good weekend Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fhtapia at gmail.com Fri May 11 10:56:02 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 11 May 2007 08:56:02 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: heheheh... ...}:-> oops did I say that out-loud? what browser are you using... On 5/8/07, JWColby wrote: > > Well, I watched the two videos, filled out the required feedback report > and > now I have received my highly coveted voucher for my free* copy of Visual > Studio 2005 Standard Edition. > > *Other than having to pay shipping and handling (which is fine) I also > have > to get the web page to ACCEPT my voucher (which ain't happening). The old > endless loop, comes right back to the same page and asks for the voucher > again. I even tried using MS POS Explorer to no avail. > > I wonder if anyone at MS has noticed that no one is redeeming their > vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. > > Sigh. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From accessd at shaw.ca Fri May 11 11:09:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 09:09:31 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <001f01c793c1$3f3927b0$6401a8c0@nant> Message-ID: <0JHV006MLWO9L4Z2@l-daemon> And of course the Open-Source community is in the running: http://news.com.com/8301-10784_3-9714669-7.html Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:41 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 11:22:18 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 18:22:18 +0200 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Message-ID: Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav From cfoust at infostatsystems.com Fri May 11 11:26:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 09:26:24 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: References: Message-ID: Yep, we keep our VS up to date. I think it took all morning to install that thing, and we had it on DVD! Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4 C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Fri May 11 11:29:13 2007 From: ebarro at verizon.net (Eric Barro) Date: Fri, 11 May 2007 09:29:13 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: Message-ID: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 11:56:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 12:56:56 -0400 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> Message-ID: <20070511165656.11640BCB4@smtp-auth.no-ip.com> >And when they reach SP4 it's time to come out with a new version (of the bugs). ROTFL. So true. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Friday, May 11, 2007 12:29 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VS2005 Service Pack 1 (not for Express) No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 16:46:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 17:46:04 -0400 Subject: [dba-VB] Clearing the debug window before writing to it Message-ID: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 11 16:49:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 14:49:45 -0700 Subject: [dba-VB] Clearing the debug window before writing to it In-Reply-To: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> References: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> Message-ID: I don't bother. When I need to use it, I just right click and clear all. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 11, 2007 2:46 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Clearing the debug window before writing to it When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 21:19:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 22:19:36 -0400 Subject: [dba-VB] VB.Net - Raw data file transform Message-ID: <20070512021936.5A940BDA4@smtp-auth.no-ip.com> Well guys, I have ported the application that transformed my raw data into a pipe delimited "csv" file - from VBA in Access to VB.NET. Preliminary results VERY crudely timed show about 10K records / second, up from about 1K records / second in VBA. I really need to find a timer class for timing code in order to get precise timings on this. As it stands now however, it looks like without any further optimizations, my raw data transform would be the bottleneck, running at 9.7K records / sec, with the SQL Server BULK INSERT running at 15K records / second. If I can get these two processes running in threads so that they process independently, I am now in a position to go pushbutton and import a 100 million record file in ~10K seconds / 166.6 minutes / 2.7 hours. Given that I will soon have the pieces to run unattended this is an acceptable rate for me. This process took days of handholding manual labor to make happen (learning stuff all the way of course) Thanks to all who have helped my in getting the ADO happening out in VB.Net, as well as the Sproc happening in SQL Server. I still have a long way to go to get a complete app in VB.Net and SQL Server. The piece I just ported does the open / parse / strip / write to move the raw fixed width file to pipe delimited. Phase 2 begins immediately. The next piece will automate running the BULK INSERT Sproc from VB.Net, given a set of pipe delimited csv files in a directory and an existing destination table in SQL Server. Once that piece is running, I will need to learn how to run each piece in a separate thread. When both pieces are running simultaneously, I will need to reassess the speed of each piece. I am using a dual proc AMD XP 3800 with 4 gb RAM so hopefully each thread will run on a different proc, though I don't know that. From the little I know I assume there is a way to set the processor affinity of a thread. So much to learn, so little time. But this is just an awesome start and I am happy with the speed gain of the transform process achieved by moving to VB.Net. Again thanks to all who contributed. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:09:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:09:46 -0400 Subject: [dba-VB] VB.Net - seeing the messagebox Message-ID: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:40:12 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:40:12 -0400 Subject: [dba-VB] VB.Net - Progress Bars Message-ID: <20070512134012.472BABCCA@smtp-auth.no-ip.com> I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Sat May 12 09:33:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 12 May 2007 18:33:01 +0400 Subject: [dba-VB] VB.Net - Progress Bars In-Reply-To: <20070512134012.472BABCCA@smtp-auth.no-ip.com> Message-ID: <000201c794a2$9a8a34b0$6401a8c0@nant> John, I think you'd better currently use custom events as you do in VBA using WithEvents. You can even do more "tricks": VB.NET (.NET Framework) generalizes this idea of custom events and their sinking - read about the concept of delegates and how to handle them. If you're thinking about making your program multi-threaded then you will have to solve some more complicated issues related to the fact that the calls from worker threads can't in general case result in form's properties or form controls' properties updates, IOW an event raised in a worker thread can't/shouldn't be processed by the main thread running the form... Here is where delegates can sole the issue or BackgroundWorker component (http://www.codeguru.com/columns/vb/article.php/c10755/ )... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:40 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Progress Bars I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 14 10:05:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 May 2007 08:05:09 -0700 Subject: [dba-VB] VB.Net - seeing the messagebox In-Reply-To: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> References: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> Message-ID: John, When we put timers in, we generally show the result in the status bar at the bottom of the main form window. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 6:10 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 14 23:29:20 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 00:29:20 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread Message-ID: <20070515042921.87A07BE97@smtp-auth.no-ip.com> I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Tue May 15 05:58:44 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 14:58:44 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070514211654.ACBB8BD9F@smtp-auth.no-ip.com> Message-ID: <000001c796e0$01736950$6401a8c0@nant> Hello John, Have a look at this article: http://www.codeproject.com/tools/windowspy.asp?df=100&forumid=152014&exp=0&s elect=1363031 What you need is a SetWindowPos WinApi call with WS_EX_TOPMOST parameter. You can find more info on google using SetWindowPos WS_EX_TOPMOST as search criteria... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 1:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Well... Yea, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, IOW you wanted to have a message box/form "flying" on top of all the other windows but not blocking nor your VB.NET application nor other processes? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 14, 2007 11:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Shamil, Nope, I didn't try that. It doesn't sound like something I want to do either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, Did you try to use MsgBoxStyle.SystemModal ? (Be careful it stops all the running processes as it's written in docs): Dim msg As String Dim title As String Dim style As MsgBoxStyle Dim response As MsgBoxResult msg = "Do you want to continue?" ' Define message. style = MsgBoxStyle.DefaultButton2 Or _ MsgBoxStyle.Critical Or _ MsgBoxStyle.YesNo Or _ MsgBoxStyle.SystemModal title = "MsgBox Demonstration" ' Define title. ' Display message. response = MsgBox(msg, style, title) If response = MsgBoxResult.Yes Then ' User chose Yes. ' Perform some action. Else ' Perform some other action. End If -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:10 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue May 15 07:23:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 16:23:07 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515111543.6D5DABDDA@smtp-auth.no-ip.com> Message-ID: <000901c796eb$cbe51f20$6401a8c0@nant> <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 15 07:35:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 08:35:49 -0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <000901c796eb$cbe51f20$6401a8c0@nant> Message-ID: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Shamil, I understand that they still exist, however everything I have read says that .NET is trying to wrap them and present them as properties of .NET objects, thus allowing you to avoid having to make such API calls directly. Obviously everything hasn't been wrapped yet. Thanks for the references. I am adding them to my browser bookmarks. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, May 15, 2007 8:23 AM To: 'Access-D - VB' Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue May 15 07:56:48 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 May 2007 22:56:48 +1000 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> References: <000901c796eb$cbe51f20$6401a8c0@nant>, <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Message-ID: <4649AE10.10214.1D1BA1AD@stuart.lexacorp.com.pg> Just found the .Net 2.0 version: http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.topmost(VS.80).aspx On 15 May 2007 at 8:35, jwcolby wrote: > Shamil, > > I understand that they still exist, however everything I have read says that > .NET is trying to wrap them and present them as properties of .NET objects, > thus allowing you to avoid having to make such API calls directly. Obviously > everything hasn't been wrapped yet. > > Thanks for the references. I am adding them to my browser bookmarks. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Tuesday, May 15, 2007 8:23 AM > To: 'Access-D - VB' > Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox > > <<< > They are all about avoiding programming to API calls. > >>> > John, > > I'd think that WinAPI calls are forever because they drive MS Windows > internally and there is no any signs this will change any time soon... > > Have a look at: > > http://www.pinvoke.net/ and > > http://www.pinvoke.net/default.aspx/user32.SetWindowPos > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 15, 2007 3:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VB.Net - seeing the messagebox > > I have to wonder if .NET doesn't have this built-in somehow. They are all > about avoiding programming to API calls. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and > problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox > > If the MB isn't working, how about displaying a custom form and setting > it's z-order to "TOPMOST" with the SetWindowPos API call. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From James at fcidms.com Tue May 15 08:52:19 2007 From: James at fcidms.com (James Barash) Date: Tue, 15 May 2007 09:52:19 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread In-Reply-To: <20070515042921.87A07BE97@smtp-auth.no-ip.com> Message-ID: <009601c796f8$44d16d60$800101df@fci.local> John: If you have the time here is a fairly thorough discussion of threading in VB.net with a set of classes (I know you like those) to facilitate exactly the type of threading you are trying to do. By the way, codeproject.com is an excellent resource for code samples for just about everything related to .Net. http://www.codeproject.com/vb/net/VBthreadingwrapper.asp If you want the quick and dirty approach: http://msdn2.microsoft.com/en-us/library/ywkkz4s1(VS.80).aspx Good luck. James Barash -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 12:29 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net moving to a background worker thread I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 17 15:41:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 May 2007 16:41:49 -0400 Subject: [dba-VB] Visual Studio Projects Location Message-ID: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Thu May 17 15:50:28 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 May 2007 13:50:28 -0700 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: We use SourceSafe, so I can't recommend another source control system. We never put our projects in My Documents because of the obvious problems with that. What we do is create a directory for each solution being developed on our local drives (you could use a server too) and within that structure, we create folders for our various projects that are components of the solution. There's no magic about My Documents (except maybe how to make installers stop defaulting to that!!). I can use VPN to log into my office machine over the internet and work on the stuff if I need to. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 1:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu May 17 16:21:34 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 17 May 2007 17:21:34 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: <001f01c798c9$5cbbabc0$2f01a8c0@Kermit> We have been using Subversion for about a year now. I don't know what is involved in setting it up but I do know that it is free open source product. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 4:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at gmail.com Thu May 17 18:48:16 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 17 May 2007 19:48:16 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: On 5/17/07, jwcolby wrote: > On another note, I assume that Visual Studio Standard does not have Visual > Source Safe? Is anyone else using a cheap / free source control system that > they recommend? CVS (Concurrent Version System) and Subversion are the 2 most popular. Both are Free Open Source and should be able to handle .net files although there may not be a plugin to allow access directly from the vs.net interface. That you'll have to investigate. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Fri May 18 08:34:15 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 09:34:15 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing Message-ID: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> I just thought you might be interested in some numbers, transferring a large file from system to system on a network. Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. Both systems run Comodo personal firewall (software firewall) with specific rules allowing transfers from/to any other computer within my internal network. Both systems use an Areca 1220 dedicated RAID controller, and both systems use Seagate 7200.10 drives in the arrays. The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit switch between the systems. I am transferring a 120 gbyte SQL Server database file (dbf). When the transfer started it "settled down" after a couple of seconds saying it would take 48 minutes to transfer the file, which indicates about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read speed to be about 450 mbyte / sec for these arrays, so that is most likely the write speed of the Raid5 destination array. Write speed for these arrays is just slightly worse than the write speed of any single disk. Using task manager to simply view the network usage, the network seems to be using about 40% capacity on average. Again, using task manager, the CPU usage for the two cores shows core one swinging between 0 and 40%with a rough average around 20%. Core two is swinging between 60% and 80%. When the work is steady (and there are places where both cores, but particularly core 2 varies wildly), the "average" is reported as around 40%, as displayed in the CPU Usage. All of this usage being on the transmitting system. The task reporting most usage time is system idle, then explorer. System two (the receiving system) shows almost no Core 1 usage and Core 2 swinging wildly, but again averaging around 40% or so usage, both cores combined, per the CPU Usage display. John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Fri May 18 18:26:35 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 16:26:35 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> References: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> Message-ID: you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large > file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific > rules allowing transfers from/to any other computer within my internal > network. Both systems use an Areca 1220 dedicated RAID controller, and > both > systems use Seagate 7200.10 drives in the arrays. The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch > between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When the > transfer started it "settled down" after a couple of seconds saying it > would > take 48 minutes to transfer the file, which indicates about 2.5 gigabytes > / > minute, 42 mb / second. Testing has shown the read speed to be about 450 > mbyte / sec for these arrays, so that is most likely the write speed of > the > Raid5 destination array. Write speed for these arrays is just slightly > worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems to > be > using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core one > swinging between 0 and 40%with a rough average around 20%. Core two is > swinging between 60% and 80%. When the work is steady (and there are > places > where both cores, but particularly core 2 varies wildly), the "average" is > reported as around 40%, as displayed in the CPU Usage. All of this usage > being on the transmitting system. The task reporting most usage time is > system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and Core 2 > swinging wildly, but again averaging around 40% or so usage, both cores > combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Fri May 18 20:34:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 21:34:13 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: Message-ID: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> I think you have to use something. It works for me and I have so many systems that I have to standardize on something. I have had as many as three different software firewalls running on various machines at the same time and it is just a mess. Comodo is easy to get working, free (FOREVER according to their website;) and appears to do a good job. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific rules allowing transfers from/to any other computer within my > internal network. Both systems use an Areca 1220 dedicated RAID > controller, and both systems use Seagate 7200.10 drives in the arrays. > The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When > the transfer started it "settled down" after a couple of seconds > saying it would take 48 minutes to transfer the file, which indicates > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the > read speed to be about 450 mbyte / sec for these arrays, so that is > most likely the write speed of the > Raid5 destination array. Write speed for these arrays is just > slightly worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems > to be using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core > one swinging between 0 and 40%with a rough average around 20%. Core > two is swinging between 60% and 80%. When the work is steady (and > there are places where both cores, but particularly core 2 varies > wildly), the "average" is reported as around 40%, as displayed in the > CPU Usage. All of this usage being on the transmitting system. The > task reporting most usage time is system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and > Core 2 swinging wildly, but again averaging around 40% or so usage, > both cores combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 18 22:08:30 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 13:08:30 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> References: , <20070519013411.E3E61BC74@smtp-auth.no-ip.com> Message-ID: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many as > three different software firewalls running on various machines at the same > time and it is just a mess. Comodo is easy to get working, free (FOREVER > according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > > > On 5/18/07, jwcolby wrote: > > > > I just thought you might be interested in some numbers, transferring a > > large file from system to system on a network. > > > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > > Both systems run Comodo personal firewall (software firewall) with > > specific rules allowing transfers from/to any other computer within my > > internal network. Both systems use an Areca 1220 dedicated RAID > > controller, and both systems use Seagate 7200.10 drives in the arrays. > > The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. > > There is a gigabit switch between the systems. > > > > I am transferring a 120 gbyte SQL Server database file (dbf). When > > the transfer started it "settled down" after a couple of seconds > > saying it would take 48 minutes to transfer the file, which indicates > > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read > > speed to be about 450 mbyte / sec for these arrays, so that is most likely > > the write speed of the Raid5 destination array. Write speed for these > > arrays is just slightly worse than the write speed of any single disk. > > > > Using task manager to simply view the network usage, the network seems to > > be using about 40% capacity on average. > > > > Again, using task manager, the CPU usage for the two cores shows core one > > swinging between 0 and 40%with a rough average around 20%. Core two is > > swinging between 60% and 80%. When the work is steady (and there are > > places where both cores, but particularly core 2 varies wildly), the > > "average" is reported as around 40%, as displayed in the CPU Usage. All > > of this usage being on the transmitting system. The task reporting most > > usage time is system idle, then explorer. > > > > System two (the receiving system) shows almost no Core 1 usage and > > Core 2 swinging wildly, but again averaging around 40% or so usage, > > both cores combined, per the CPU Usage display. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Fri May 18 22:32:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 23:32:46 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> Message-ID: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> And it appears to work well... http://www.pcworld.idg.com.au/index.php/id;159719021 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 18, 2007 11:09 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many > as three different software firewalls running on various machines at > the same time and it is just a mess. Comodo is easy to get working, > free (FOREVER according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > From fhtapia at gmail.com Sat May 19 00:00:45 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 22:00:45 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> Message-ID: I'm glad its working for you. I had read either that article or a similar one when I tried that fw on my laptop. It turned out not to be a good product for me because I am also using a cisco VPN and that fw simply caused my system to freeze or not connect. Other than that it seemed like a fair fw. Btw sunbelt does offer a fw for servers but I see your point it is not gratis :) http://www.google.com/gwt/n?hl=en&q=sunbelt+kerio+firewall+%2B+server&source=m&ei=rIJORviNGKOsogLUosKLAg&sa=X&oi=blended&ct=res&cd=2&rd=1&u=http%3A%2F%2Fwww.sunbelt-software.com%2FBusiness%2FSunbelt-Server-Firewall%2F On 5/18/07, jwcolby wrote: > And it appears to work well... > > http://www.pcworld.idg.com.au/index.php/id;159719021 > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, May 18, 2007 11:09 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT: FYI-System Transfer timing > > And it runs on Server OSs, unlike Sunbelt Kerio. > > On 18 May 2007 at 21:34, jwcolby wrote: > > > I think you have to use something. It works for me and I have so many > > systems that I have to standardize on something. I have had as many > > as three different software firewalls running on various machines at > > the same time and it is just a mess. Comodo is easy to get working, > > free (FOREVER according to their website;) and appears to do a good job. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > > Tapia > > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com > Subject: > > Re: [dba-VB] OT: FYI-System Transfer timing > > > > you sure love your comodo :) > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From stuart at lexacorp.com.pg Sat May 19 01:01:28 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 16:01:28 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg>, <20070519033244.D7A72BDDB@smtp-auth.no-ip.com>, Message-ID: <464E92B8.8667.3C956F0@stuart.lexacorp.com.pg> I don't know the price of the Kerio server firewall, but the fact that they don't give any indication of pricing on their website makes me think that it will be very expensive :-( On 18 May 2007 at 22:00, Francisco Tapia wrote: > it seemed like a fair fw. Btw sunbelt does offer a fw for servers but > I see your point it is not gratis :) > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Mon May 21 13:53:27 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 May 2007 14:53:27 -0400 Subject: [dba-VB] VB.Net - using the new() constructor Message-ID: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Tue May 22 10:51:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 22 May 2007 08:51:34 -0700 Subject: [dba-VB] VB.Net - using the new() constructor In-Reply-To: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> References: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Message-ID: Depends on what specifically you're doing. New returns an initialized instance of the class, so if you test to see if it's Nothing, that's one way (if it IS nothing, it failed). Using a try/catch block in the calling routine is another way, since any exception will bubble up to it. We use both techniques in our shop because we also event log the exceptions. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 21, 2007 11:53 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using the new() constructor Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu May 24 19:20:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:20:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings Message-ID: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Group, I am wanting to test the value of a field from a data source. If it is NULL or "" then do one thing, otherwise do another. Here is my vb.net code: If IsDBNull(Fields("MAddress2").Value) Or (Fields("MAddress2").Value = "") Then Me.txtMailAddress.DataField = "=MAddress1" Else Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + ", " + Chr(34) + " + MAddress2" End If The error message is " Operator '=' is not defined for type 'DBNull' and string "". What is the correct syntax for this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From davidmcafee at gmail.com Thu May 24 19:41:29 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:41:29 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Here's a function I wrote (actually I wrote it for C#, but crossed it over to vb.net) Public Function IsNull(ByVal strInput As String, ByVal strReplace As String) As String 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is known as Nz() If (strInput Is Nothing) Then Return strReplace Else If strInput = "" Then Return strReplace Else Return strInput End If End If End Function On 5/24/07, David Emerson wrote: > > Group, > > I am wanting to test the value of a field from a data source. If it > is NULL or "" then do one thing, otherwise do another. Here is my vb.netcode: > > If IsDBNull(Fields("MAddress2").Value) Or > (Fields("MAddress2").Value = "") Then > Me.txtMailAddress.DataField = "=MAddress1" > Else > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > ", " + Chr(34) + " + MAddress2" > End If > > The error message is " > > Operator '=' is not defined for type 'DBNull' and string "". > > What is the correct syntax for this? > > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From newsgrps at dalyn.co.nz Thu May 24 19:52:22 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:52:22 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.co m> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Message-ID: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it over >to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is >known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From davidmcafee at gmail.com Thu May 24 19:58:46 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:58:46 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241758n73420435l769b7925aeff2fe5@mail.gmail.com> I tried these before, but they dont work when an empty string is passed: ' These two IsNull functions dont work when an empty string is passed, so I used my own version above 'Public Function IsNull2(ByVal strInput As String, ByVal strReplace As String) As String ' If (strInput.Equals(System.DBNull.Value)) Then ' Return strReplace ' End If 'End Function 'Public Function IsNull3(ByVal strInput As String, ByVal strReplace As String) As String ' If (IsDBNull(strInput)) Then ' Return strReplace ' End If 'End Function On 5/24/07, David Emerson wrote: > > Thanks David, > > I originally had a similar syntax but was hoping that there was an > shorter method. > > David > > At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > over > >to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > is > >known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri May 25 09:32:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:32:10 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 09:52:27 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:52:27 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 11:20:31 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 09:20:31 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: Oops! Make that the AndAlso operator . That's what I get for multitasking! If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > 0 Then Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:52 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 11:59:34 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 12:59:34 -0400 Subject: [dba-VB] Visual Studio Trust Message-ID: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 25 12:16:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 10:16:29 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> References: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> Message-ID: Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:46:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:46:02 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:56:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:56:53 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Message-ID: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 13:14:19 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 11:14:19 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> References: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> Message-ID: ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 13:23:06 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 14:23:06 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525182306.01297BD21@smtp-auth.no-ip.com> It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-bca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 14:57:53 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 12:57:53 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525182306.01297BD21@smtp-auth.no-ip.com> References: <20070525182306.01297BD21@smtp-auth.no-ip.com> Message-ID: Haven't had to deal with it because it's someone else's headache. I knew about the file identifiers in XP but never knew the specifics and had forgotten most of the rest. Never head of ZoneStripper before. We use the Xceed libraries for zipping and unzipping in our apps, so it must be handled there. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 11:23 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-b ca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Fri May 25 15:54:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 26 May 2007 08:54:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <20070525205500.QPTP23876.fep02.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Charlotte, much appreciated. David At 26/05/2007, you wrote: >Oops! Make that the AndAlso operator . That's what I get for >multitasking! > > If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > >0 Then > >Charlotte > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:52 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >And once you have tested the IsNull, you can use the OrElse operator to >check for an empty string like this: > >If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 >Then > >The AndAlso and OrElse operators are a treasure because they only >evaluate that part of the expression if the first part succeeds. > >Charlote Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:32 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >If you're using a typed dataset, string and some other data types have >an IsNull property that you can test. Cast the record as a >row of the appropriate datatype to use it. Then you should be able to >use something like addrRow.IsMAddress2Null to check it. > >Charlotte Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Thursday, May 24, 2007 5:52 PM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >Thanks David, > >I originally had a similar syntax but was hoping that there was an >shorter method. > >David > >At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > >over to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace > >As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > > >is known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 26 06:58:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 26 May 2007 07:58:50 -0400 Subject: [dba-VB] Work with SQL Server and Express edition Message-ID: <20070526115852.05722BE26@smtp-auth.no-ip.com> I want to work with express edition databases as the data source for some of my VB.Net projects, but full SQL Server databases for others. How do I go about doing this? I started with express edition on my new laptop simply because I installed Visual studio first and it installed Express edition. Then I went out and found / installed the Express edition Management Studio. When I tried to install SQL Server Standard Edition, it basically told me there was nothing to do, and did not install Standard Edition Management Studio, which I need. What do I need to do now? John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Wed May 30 10:35:17 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 30 May 2007 08:35:17 -0700 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: <20070526115852.05722BE26@smtp-auth.no-ip.com> References: <20070526115852.05722BE26@smtp-auth.no-ip.com> Message-ID: I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for some > of > my VB.Net projects, but full SQL Server databases for others. How do I go > about doing this? I started with express edition on my new laptop simply > because I installed Visual studio first and it installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told me > there was nothing to do, and did not install Standard Edition Management > Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Wed May 30 11:11:29 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 30 May 2007 12:11:29 -0400 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: Message-ID: <20070530161129.F4081BD38@smtp-auth.no-ip.com> It turns out that you can have the Standard and Express Edition engines running side by side on the same machine. I just did something wrong (can't remember what now). I did end up uninstalling, installing SQL Server Standard Edition, then reinstalling SQL Express edition, and now both engines are visible and usable. What I did not do was attempt to reinstall the express edition management studio. There is no point really and besides that version is crippled. For some reason the Express edition engine is much more forgiving of the database file not being available as the engine service starts. With Standard Edition it acts as if the database file is unattached, and yet you can still see the icon etc. You have to go delete it and then attach the data file to get the database back. If you try to use it before doing that stuff, for example from my billing database in access, the attempts to access the data just hangs access until the timeout occurs. With Express edition OTOH, the express edition service starts on bootup. The data file is not available, it is on an encrypted drive which is not yet mounted. And yet when I mount the encrypted drive and then open the billing program, the links "just work". It is almost as if Express edition has a "mount on demand" functionality. That makes sense of course given Express edition's stated purpose in life. It would be nice if Standard Edition would attempt to mount a dismounted drive in the same manner. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 30, 2007 11:35 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Work with SQL Server and Express edition I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for > some of my VB.Net projects, but full SQL Server databases for others. > How do I go about doing this? I started with express edition on my > new laptop simply because I installed Visual studio first and it > installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told > me there was nothing to do, and did not install Standard Edition > Management Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:21:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:21:23 -0400 Subject: [dba-VB] VB.Net - using an outside DLL Message-ID: <006101c78ccd$8bc36050$657aa8c0@m6805> I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed May 2 10:29:43 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 08:29:43 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006101c78ccd$8bc36050$657aa8c0@m6805> Message-ID: <0JHF009HW71PEG10@vms048.mailsrvcs.net> In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:54:59 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:54:59 -0400 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <0JHF009HW71PEG10@vms048.mailsrvcs.net> References: <006101c78ccd$8bc36050$657aa8c0@m6805> <0JHF009HW71PEG10@vms048.mailsrvcs.net> Message-ID: <006701c78cd2$3d9b57c0$657aa8c0@m6805> SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Wed May 2 12:09:15 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 10:09:15 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006701c78cd2$3d9b57c0$657aa8c0@m6805> Message-ID: <0JHF00FCKBO1F4D0@vms044.mailsrvcs.net> Yes it doesn't matter where you place ICSharpCode.Sharplib.DLL because when you create a reference for this DLL in your project you will be asked for its location. After you point VS.NET to the correct location it will place a copy of that DLL in the same BIN folder where VS.NET will place your application DLL or EXE after it compiles and links it. -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, May 02, 2007 8:55 AM To: ebarro at verizon.net; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - using an outside DLL SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon May 7 04:13:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 07 May 2007 11:13:55 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ------------------------------------------------------------------------------- FREE VIDEO How to use the BackgroundWorker Control ------------------------------------------------------------------------------- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor From jwcolby at colbyconsulting.com Mon May 7 07:00:39 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 7 May 2007 08:00:39 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000901c7909f$555e9450$657aa8c0@m6805> Gustav, Thanks for the link. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 07, 2007 5:14 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ---------------------------------------------------------------------------- --- FREE VIDEO How to use the BackgroundWorker Control ---------------------------------------------------------------------------- --- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Mon May 7 15:17:35 2007 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 07 May 2007 16:17:35 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000601c790e4$c0fae5c0$2f01a8c0@Kermit> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From gustav at cactus.dk Mon May 7 17:08:38 2007 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 08 May 2007 00:08:38 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi Doris That sounds like two very good examples. /gustav >>> mikedorism at verizon.net 07-05-07 22:17 >>> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From jwcolby at colbyconsulting.com Tue May 8 15:48:11 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 16:48:11 -0400 Subject: [dba-VB] Redeem your voucher Message-ID: <011e01c791b2$32acf370$657aa8c0@m6805> Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Tue May 8 16:17:05 2007 From: ebarro at verizon.net (Eric Barro) Date: Tue, 08 May 2007 14:17:05 -0700 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue May 8 17:16:27 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 08 May 2007 15:16:27 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ00JF6TO5SI22@l-daemon> Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:05:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:05:12 -0400 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Message-ID: <000001c791cd$b85219e0$657aa8c0@m6805> LOL, yea, that's probably it. Though I am normally ranting about SQL Server or Access. I don't know enough about Visual studio to rant about it YET. Maybe they thought if I couldn't redeem my voucher I would never get good enough to rant about it? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, May 08, 2007 5:17 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] [AccessD] Redeem your voucher Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:06:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:06:23 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <0JHQ00JF6TO5SI22@l-daemon> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> Message-ID: <000101c791cd$e246ea50$657aa8c0@m6805> The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:21:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:21:17 -0400 Subject: [dba-VB] Interesting for you kung fu masters? Message-ID: <000201c791cf$f7351f20$657aa8c0@m6805> www.sql-server-performance.com/vg_database_comparison_sp.asp John W. Colby Colby Consulting www.ColbyConsulting.com From bheid at sc.rr.com Tue May 8 21:06:33 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 8 May 2007 22:06:33 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <000101c791cd$e246ea50$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> <000101c791cd$e246ea50$657aa8c0@m6805> Message-ID: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 21:51:03 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 22:51:03 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon><000101c791cd$e246ea50$657aa8c0@m6805> <006e01c791de$aaad9ba0$2c01a8c0@bhxp> Message-ID: <000301c791e4$e3413160$657aa8c0@m6805> Yea, I did that. Luckily I already have a copy, with a copy of SQL Server 2005, both of which I picked up at the coming out party. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 08, 2007 10:07 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 16:08:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:08:07 -0400 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <007601c7927e$248a5a90$657aa8c0@m6805> I am looking at how to do in VB.Net what in VBA would be str = trim(mid(str,intStartPos, intLen)) I can do this (I think) in two steps using: private mstr as string mstr = lstrRecord.SubString(intStartPos,intWidth) mstr = mstr.Trim(mstr.ToCharArray) Given what I know about VB.Net (not very darned much) is this the best way? I see where the string builder can do the substring part but it does not have a trim method. John W. Colby Colby Consulting www.ColbyConsulting.com From chizotz at mchsi.com Wed May 9 16:23:53 2007 From: chizotz at mchsi.com (Ron Allen) Date: Wed, 09 May 2007 21:23:53 +0000 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does not > have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ebarro at verizon.net Wed May 9 16:36:36 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 09 May 2007 14:36:36 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM From jwcolby at colbyconsulting.com Wed May 9 16:46:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:46:10 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> Message-ID: <007b01c79283$75b70c10$657aa8c0@m6805> Done. Thanks guys. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 09, 2007 5:37 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Wed May 9 16:48:30 2007 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 9 May 2007 14:48:30 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = > 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the best > way? > > I see where the string builder can do the substring part but it does not > > have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed May 9 16:57:51 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:57:51 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> Message-ID: <007d01c79285$174d0e20$657aa8c0@m6805> It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 17:20:12 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 15:20:12 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <007d01c79285$174d0e20$657aa8c0@m6805> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> <007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 18:20:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 16:20:32 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 3:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 20:16:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 21:16:44 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: <000801c792a0$e0be50a0$657aa8c0@m6805> OK, I understand. I always thought of the methods as just returning a value, but in .Net even variables are objects which have methods. Makes perfect sense. Thanks for stating it that way though, else I would have spent the next few years with a complete misconception of what was really happening. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 7:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu May 10 07:02:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 10 May 2007 08:02:24 -0400 Subject: [dba-VB] VB.Net - XML comments Message-ID: <000d01c792fb$1743bbb0$657aa8c0@m6805> I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Thu May 10 08:11:52 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 10 May 2007 06:11:52 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 10 08:46:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 May 2007 09:46:53 -0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Message-ID: <20070510134705.51A7CBC95@smtp-auth.no-ip.com> No, I meant what application will reach into these files and generate a documentation book using the xml comments. That is the purpose of these xml tags, to create a document. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, May 10, 2007 9:12 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - XML comments Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From chizotz at mchsi.com Thu May 10 10:43:35 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 15:43:35 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071543.26026.46433DA6000C264F000065AA219791336303010CD2079C080C03BF969B019607080C@mchsi.com> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Thu May 10 11:07:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 May 2007 18:07:22 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron I don't see that menu item. How is it added? /gustav >>> chizotz at mchsi.com 10-05-2007 17:43 >>> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From chizotz at mchsi.com Thu May 10 12:54:52 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 17:54:52 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the > help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and generate a > > documentation book using the xml comments. That is the purpose of these xml > > tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > > solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with just the > > content"? > > > > You can use regular expressions to strip off XML or HTML tags. This is the > > syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has anyone > > ever found / used something that yanks the comments out to see what they > > look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From martyconnelly at shaw.ca Thu May 10 13:05:14 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 11:05:14 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: References: Message-ID: <46435EDA.8040004@shaw.ca> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Thu May 10 13:03:07 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 10 May 2007 11:03:07 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> References: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: I just found a comment that the feature was removed from 2005. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=106905&SiteId=1 for some more information. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Thursday, May 10, 2007 10:55 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and > in the help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and > > generate a documentation book using the xml comments. That is the > > purpose of these xml tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and > > problem solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with > > just the content"? > > > > You can use regular expressions to strip off XML or HTML tags. This > > is the syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has > > anyone ever found / used something that yanks the comments out to > > see what they look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Thu May 10 16:44:37 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 01:44:37 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <002001c7934c$68575560$6401a8c0@nant> Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Thu May 10 17:32:02 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 May 2007 15:32:02 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <0JHU0090KJPVIVQ0@l-daemon> Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Thu May 10 17:42:08 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 00:42:08 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron and Marty It's VS2005 Standard. /gustav >>> martyconnelly at shaw.ca 10-05-07 20:05 >>> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 10 19:19:47 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 17:19:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> References: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <4643B6A3.1040604@shaw.ca> Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Fri May 11 06:08:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:08:07 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHU0090KJPVIVQ0@l-daemon> Message-ID: <000c01c793bc$a7f0cf60$6401a8c0@nant> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Fri May 11 06:40:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:40:59 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <4643B6A3.1040604@shaw.ca> Message-ID: <001f01c793c1$3f3927b0$6401a8c0@nant> Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 07:29:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 14:29:26 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Shamil et al XAML (Avalon) is perhaps the most interesting part: Consistent presentation model by using XAML, the declarative presentation language used in Windows Vista*based applications. Controls, visual designs, media, and other elements can be presented with full design fidelity in both Silverlight and Windows*based applications. /gustav >>> shamil at users.mns.ru 11-05-2007 13:08 >>> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Fri May 11 09:46:47 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 07:46:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000c01c793bc$a7f0cf60$6401a8c0@nant> Message-ID: <0JHV004BTSUEX2F2@l-daemon> Hi Shamil: Had not heard of the product yet but will check it out. It will have to go a long way to match the market penetration that FLASH currently has but I am sure it will default with IE. Have a good weekend Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fhtapia at gmail.com Fri May 11 10:56:02 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 11 May 2007 08:56:02 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: heheheh... ...}:-> oops did I say that out-loud? what browser are you using... On 5/8/07, JWColby wrote: > > Well, I watched the two videos, filled out the required feedback report > and > now I have received my highly coveted voucher for my free* copy of Visual > Studio 2005 Standard Edition. > > *Other than having to pay shipping and handling (which is fine) I also > have > to get the web page to ACCEPT my voucher (which ain't happening). The old > endless loop, comes right back to the same page and asks for the voucher > again. I even tried using MS POS Explorer to no avail. > > I wonder if anyone at MS has noticed that no one is redeeming their > vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. > > Sigh. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From accessd at shaw.ca Fri May 11 11:09:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 09:09:31 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <001f01c793c1$3f3927b0$6401a8c0@nant> Message-ID: <0JHV006MLWO9L4Z2@l-daemon> And of course the Open-Source community is in the running: http://news.com.com/8301-10784_3-9714669-7.html Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:41 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 11:22:18 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 18:22:18 +0200 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Message-ID: Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav From cfoust at infostatsystems.com Fri May 11 11:26:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 09:26:24 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: References: Message-ID: Yep, we keep our VS up to date. I think it took all morning to install that thing, and we had it on DVD! Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4 C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Fri May 11 11:29:13 2007 From: ebarro at verizon.net (Eric Barro) Date: Fri, 11 May 2007 09:29:13 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: Message-ID: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 11:56:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 12:56:56 -0400 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> Message-ID: <20070511165656.11640BCB4@smtp-auth.no-ip.com> >And when they reach SP4 it's time to come out with a new version (of the bugs). ROTFL. So true. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Friday, May 11, 2007 12:29 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VS2005 Service Pack 1 (not for Express) No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 16:46:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 17:46:04 -0400 Subject: [dba-VB] Clearing the debug window before writing to it Message-ID: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 11 16:49:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 14:49:45 -0700 Subject: [dba-VB] Clearing the debug window before writing to it In-Reply-To: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> References: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> Message-ID: I don't bother. When I need to use it, I just right click and clear all. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 11, 2007 2:46 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Clearing the debug window before writing to it When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 21:19:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 22:19:36 -0400 Subject: [dba-VB] VB.Net - Raw data file transform Message-ID: <20070512021936.5A940BDA4@smtp-auth.no-ip.com> Well guys, I have ported the application that transformed my raw data into a pipe delimited "csv" file - from VBA in Access to VB.NET. Preliminary results VERY crudely timed show about 10K records / second, up from about 1K records / second in VBA. I really need to find a timer class for timing code in order to get precise timings on this. As it stands now however, it looks like without any further optimizations, my raw data transform would be the bottleneck, running at 9.7K records / sec, with the SQL Server BULK INSERT running at 15K records / second. If I can get these two processes running in threads so that they process independently, I am now in a position to go pushbutton and import a 100 million record file in ~10K seconds / 166.6 minutes / 2.7 hours. Given that I will soon have the pieces to run unattended this is an acceptable rate for me. This process took days of handholding manual labor to make happen (learning stuff all the way of course) Thanks to all who have helped my in getting the ADO happening out in VB.Net, as well as the Sproc happening in SQL Server. I still have a long way to go to get a complete app in VB.Net and SQL Server. The piece I just ported does the open / parse / strip / write to move the raw fixed width file to pipe delimited. Phase 2 begins immediately. The next piece will automate running the BULK INSERT Sproc from VB.Net, given a set of pipe delimited csv files in a directory and an existing destination table in SQL Server. Once that piece is running, I will need to learn how to run each piece in a separate thread. When both pieces are running simultaneously, I will need to reassess the speed of each piece. I am using a dual proc AMD XP 3800 with 4 gb RAM so hopefully each thread will run on a different proc, though I don't know that. From the little I know I assume there is a way to set the processor affinity of a thread. So much to learn, so little time. But this is just an awesome start and I am happy with the speed gain of the transform process achieved by moving to VB.Net. Again thanks to all who contributed. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:09:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:09:46 -0400 Subject: [dba-VB] VB.Net - seeing the messagebox Message-ID: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:40:12 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:40:12 -0400 Subject: [dba-VB] VB.Net - Progress Bars Message-ID: <20070512134012.472BABCCA@smtp-auth.no-ip.com> I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Sat May 12 09:33:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 12 May 2007 18:33:01 +0400 Subject: [dba-VB] VB.Net - Progress Bars In-Reply-To: <20070512134012.472BABCCA@smtp-auth.no-ip.com> Message-ID: <000201c794a2$9a8a34b0$6401a8c0@nant> John, I think you'd better currently use custom events as you do in VBA using WithEvents. You can even do more "tricks": VB.NET (.NET Framework) generalizes this idea of custom events and their sinking - read about the concept of delegates and how to handle them. If you're thinking about making your program multi-threaded then you will have to solve some more complicated issues related to the fact that the calls from worker threads can't in general case result in form's properties or form controls' properties updates, IOW an event raised in a worker thread can't/shouldn't be processed by the main thread running the form... Here is where delegates can sole the issue or BackgroundWorker component (http://www.codeguru.com/columns/vb/article.php/c10755/ )... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:40 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Progress Bars I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 14 10:05:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 May 2007 08:05:09 -0700 Subject: [dba-VB] VB.Net - seeing the messagebox In-Reply-To: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> References: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> Message-ID: John, When we put timers in, we generally show the result in the status bar at the bottom of the main form window. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 6:10 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 14 23:29:20 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 00:29:20 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread Message-ID: <20070515042921.87A07BE97@smtp-auth.no-ip.com> I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Tue May 15 05:58:44 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 14:58:44 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070514211654.ACBB8BD9F@smtp-auth.no-ip.com> Message-ID: <000001c796e0$01736950$6401a8c0@nant> Hello John, Have a look at this article: http://www.codeproject.com/tools/windowspy.asp?df=100&forumid=152014&exp=0&s elect=1363031 What you need is a SetWindowPos WinApi call with WS_EX_TOPMOST parameter. You can find more info on google using SetWindowPos WS_EX_TOPMOST as search criteria... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 1:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Well... Yea, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, IOW you wanted to have a message box/form "flying" on top of all the other windows but not blocking nor your VB.NET application nor other processes? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 14, 2007 11:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Shamil, Nope, I didn't try that. It doesn't sound like something I want to do either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, Did you try to use MsgBoxStyle.SystemModal ? (Be careful it stops all the running processes as it's written in docs): Dim msg As String Dim title As String Dim style As MsgBoxStyle Dim response As MsgBoxResult msg = "Do you want to continue?" ' Define message. style = MsgBoxStyle.DefaultButton2 Or _ MsgBoxStyle.Critical Or _ MsgBoxStyle.YesNo Or _ MsgBoxStyle.SystemModal title = "MsgBox Demonstration" ' Define title. ' Display message. response = MsgBox(msg, style, title) If response = MsgBoxResult.Yes Then ' User chose Yes. ' Perform some action. Else ' Perform some other action. End If -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:10 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue May 15 07:23:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 16:23:07 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515111543.6D5DABDDA@smtp-auth.no-ip.com> Message-ID: <000901c796eb$cbe51f20$6401a8c0@nant> <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 15 07:35:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 08:35:49 -0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <000901c796eb$cbe51f20$6401a8c0@nant> Message-ID: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Shamil, I understand that they still exist, however everything I have read says that .NET is trying to wrap them and present them as properties of .NET objects, thus allowing you to avoid having to make such API calls directly. Obviously everything hasn't been wrapped yet. Thanks for the references. I am adding them to my browser bookmarks. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, May 15, 2007 8:23 AM To: 'Access-D - VB' Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue May 15 07:56:48 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 May 2007 22:56:48 +1000 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> References: <000901c796eb$cbe51f20$6401a8c0@nant>, <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Message-ID: <4649AE10.10214.1D1BA1AD@stuart.lexacorp.com.pg> Just found the .Net 2.0 version: http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.topmost(VS.80).aspx On 15 May 2007 at 8:35, jwcolby wrote: > Shamil, > > I understand that they still exist, however everything I have read says that > .NET is trying to wrap them and present them as properties of .NET objects, > thus allowing you to avoid having to make such API calls directly. Obviously > everything hasn't been wrapped yet. > > Thanks for the references. I am adding them to my browser bookmarks. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Tuesday, May 15, 2007 8:23 AM > To: 'Access-D - VB' > Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox > > <<< > They are all about avoiding programming to API calls. > >>> > John, > > I'd think that WinAPI calls are forever because they drive MS Windows > internally and there is no any signs this will change any time soon... > > Have a look at: > > http://www.pinvoke.net/ and > > http://www.pinvoke.net/default.aspx/user32.SetWindowPos > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 15, 2007 3:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VB.Net - seeing the messagebox > > I have to wonder if .NET doesn't have this built-in somehow. They are all > about avoiding programming to API calls. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and > problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox > > If the MB isn't working, how about displaying a custom form and setting > it's z-order to "TOPMOST" with the SetWindowPos API call. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From James at fcidms.com Tue May 15 08:52:19 2007 From: James at fcidms.com (James Barash) Date: Tue, 15 May 2007 09:52:19 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread In-Reply-To: <20070515042921.87A07BE97@smtp-auth.no-ip.com> Message-ID: <009601c796f8$44d16d60$800101df@fci.local> John: If you have the time here is a fairly thorough discussion of threading in VB.net with a set of classes (I know you like those) to facilitate exactly the type of threading you are trying to do. By the way, codeproject.com is an excellent resource for code samples for just about everything related to .Net. http://www.codeproject.com/vb/net/VBthreadingwrapper.asp If you want the quick and dirty approach: http://msdn2.microsoft.com/en-us/library/ywkkz4s1(VS.80).aspx Good luck. James Barash -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 12:29 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net moving to a background worker thread I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 17 15:41:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 May 2007 16:41:49 -0400 Subject: [dba-VB] Visual Studio Projects Location Message-ID: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Thu May 17 15:50:28 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 May 2007 13:50:28 -0700 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: We use SourceSafe, so I can't recommend another source control system. We never put our projects in My Documents because of the obvious problems with that. What we do is create a directory for each solution being developed on our local drives (you could use a server too) and within that structure, we create folders for our various projects that are components of the solution. There's no magic about My Documents (except maybe how to make installers stop defaulting to that!!). I can use VPN to log into my office machine over the internet and work on the stuff if I need to. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 1:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu May 17 16:21:34 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 17 May 2007 17:21:34 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: <001f01c798c9$5cbbabc0$2f01a8c0@Kermit> We have been using Subversion for about a year now. I don't know what is involved in setting it up but I do know that it is free open source product. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 4:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at gmail.com Thu May 17 18:48:16 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 17 May 2007 19:48:16 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: On 5/17/07, jwcolby wrote: > On another note, I assume that Visual Studio Standard does not have Visual > Source Safe? Is anyone else using a cheap / free source control system that > they recommend? CVS (Concurrent Version System) and Subversion are the 2 most popular. Both are Free Open Source and should be able to handle .net files although there may not be a plugin to allow access directly from the vs.net interface. That you'll have to investigate. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Fri May 18 08:34:15 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 09:34:15 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing Message-ID: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> I just thought you might be interested in some numbers, transferring a large file from system to system on a network. Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. Both systems run Comodo personal firewall (software firewall) with specific rules allowing transfers from/to any other computer within my internal network. Both systems use an Areca 1220 dedicated RAID controller, and both systems use Seagate 7200.10 drives in the arrays. The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit switch between the systems. I am transferring a 120 gbyte SQL Server database file (dbf). When the transfer started it "settled down" after a couple of seconds saying it would take 48 minutes to transfer the file, which indicates about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read speed to be about 450 mbyte / sec for these arrays, so that is most likely the write speed of the Raid5 destination array. Write speed for these arrays is just slightly worse than the write speed of any single disk. Using task manager to simply view the network usage, the network seems to be using about 40% capacity on average. Again, using task manager, the CPU usage for the two cores shows core one swinging between 0 and 40%with a rough average around 20%. Core two is swinging between 60% and 80%. When the work is steady (and there are places where both cores, but particularly core 2 varies wildly), the "average" is reported as around 40%, as displayed in the CPU Usage. All of this usage being on the transmitting system. The task reporting most usage time is system idle, then explorer. System two (the receiving system) shows almost no Core 1 usage and Core 2 swinging wildly, but again averaging around 40% or so usage, both cores combined, per the CPU Usage display. John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Fri May 18 18:26:35 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 16:26:35 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> References: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> Message-ID: you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large > file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific > rules allowing transfers from/to any other computer within my internal > network. Both systems use an Areca 1220 dedicated RAID controller, and > both > systems use Seagate 7200.10 drives in the arrays. The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch > between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When the > transfer started it "settled down" after a couple of seconds saying it > would > take 48 minutes to transfer the file, which indicates about 2.5 gigabytes > / > minute, 42 mb / second. Testing has shown the read speed to be about 450 > mbyte / sec for these arrays, so that is most likely the write speed of > the > Raid5 destination array. Write speed for these arrays is just slightly > worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems to > be > using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core one > swinging between 0 and 40%with a rough average around 20%. Core two is > swinging between 60% and 80%. When the work is steady (and there are > places > where both cores, but particularly core 2 varies wildly), the "average" is > reported as around 40%, as displayed in the CPU Usage. All of this usage > being on the transmitting system. The task reporting most usage time is > system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and Core 2 > swinging wildly, but again averaging around 40% or so usage, both cores > combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Fri May 18 20:34:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 21:34:13 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: Message-ID: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> I think you have to use something. It works for me and I have so many systems that I have to standardize on something. I have had as many as three different software firewalls running on various machines at the same time and it is just a mess. Comodo is easy to get working, free (FOREVER according to their website;) and appears to do a good job. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific rules allowing transfers from/to any other computer within my > internal network. Both systems use an Areca 1220 dedicated RAID > controller, and both systems use Seagate 7200.10 drives in the arrays. > The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When > the transfer started it "settled down" after a couple of seconds > saying it would take 48 minutes to transfer the file, which indicates > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the > read speed to be about 450 mbyte / sec for these arrays, so that is > most likely the write speed of the > Raid5 destination array. Write speed for these arrays is just > slightly worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems > to be using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core > one swinging between 0 and 40%with a rough average around 20%. Core > two is swinging between 60% and 80%. When the work is steady (and > there are places where both cores, but particularly core 2 varies > wildly), the "average" is reported as around 40%, as displayed in the > CPU Usage. All of this usage being on the transmitting system. The > task reporting most usage time is system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and > Core 2 swinging wildly, but again averaging around 40% or so usage, > both cores combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 18 22:08:30 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 13:08:30 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> References: , <20070519013411.E3E61BC74@smtp-auth.no-ip.com> Message-ID: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many as > three different software firewalls running on various machines at the same > time and it is just a mess. Comodo is easy to get working, free (FOREVER > according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > > > On 5/18/07, jwcolby wrote: > > > > I just thought you might be interested in some numbers, transferring a > > large file from system to system on a network. > > > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > > Both systems run Comodo personal firewall (software firewall) with > > specific rules allowing transfers from/to any other computer within my > > internal network. Both systems use an Areca 1220 dedicated RAID > > controller, and both systems use Seagate 7200.10 drives in the arrays. > > The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. > > There is a gigabit switch between the systems. > > > > I am transferring a 120 gbyte SQL Server database file (dbf). When > > the transfer started it "settled down" after a couple of seconds > > saying it would take 48 minutes to transfer the file, which indicates > > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read > > speed to be about 450 mbyte / sec for these arrays, so that is most likely > > the write speed of the Raid5 destination array. Write speed for these > > arrays is just slightly worse than the write speed of any single disk. > > > > Using task manager to simply view the network usage, the network seems to > > be using about 40% capacity on average. > > > > Again, using task manager, the CPU usage for the two cores shows core one > > swinging between 0 and 40%with a rough average around 20%. Core two is > > swinging between 60% and 80%. When the work is steady (and there are > > places where both cores, but particularly core 2 varies wildly), the > > "average" is reported as around 40%, as displayed in the CPU Usage. All > > of this usage being on the transmitting system. The task reporting most > > usage time is system idle, then explorer. > > > > System two (the receiving system) shows almost no Core 1 usage and > > Core 2 swinging wildly, but again averaging around 40% or so usage, > > both cores combined, per the CPU Usage display. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Fri May 18 22:32:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 23:32:46 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> Message-ID: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> And it appears to work well... http://www.pcworld.idg.com.au/index.php/id;159719021 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 18, 2007 11:09 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many > as three different software firewalls running on various machines at > the same time and it is just a mess. Comodo is easy to get working, > free (FOREVER according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > From fhtapia at gmail.com Sat May 19 00:00:45 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 22:00:45 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> Message-ID: I'm glad its working for you. I had read either that article or a similar one when I tried that fw on my laptop. It turned out not to be a good product for me because I am also using a cisco VPN and that fw simply caused my system to freeze or not connect. Other than that it seemed like a fair fw. Btw sunbelt does offer a fw for servers but I see your point it is not gratis :) http://www.google.com/gwt/n?hl=en&q=sunbelt+kerio+firewall+%2B+server&source=m&ei=rIJORviNGKOsogLUosKLAg&sa=X&oi=blended&ct=res&cd=2&rd=1&u=http%3A%2F%2Fwww.sunbelt-software.com%2FBusiness%2FSunbelt-Server-Firewall%2F On 5/18/07, jwcolby wrote: > And it appears to work well... > > http://www.pcworld.idg.com.au/index.php/id;159719021 > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, May 18, 2007 11:09 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT: FYI-System Transfer timing > > And it runs on Server OSs, unlike Sunbelt Kerio. > > On 18 May 2007 at 21:34, jwcolby wrote: > > > I think you have to use something. It works for me and I have so many > > systems that I have to standardize on something. I have had as many > > as three different software firewalls running on various machines at > > the same time and it is just a mess. Comodo is easy to get working, > > free (FOREVER according to their website;) and appears to do a good job. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > > Tapia > > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com > Subject: > > Re: [dba-VB] OT: FYI-System Transfer timing > > > > you sure love your comodo :) > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From stuart at lexacorp.com.pg Sat May 19 01:01:28 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 16:01:28 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg>, <20070519033244.D7A72BDDB@smtp-auth.no-ip.com>, Message-ID: <464E92B8.8667.3C956F0@stuart.lexacorp.com.pg> I don't know the price of the Kerio server firewall, but the fact that they don't give any indication of pricing on their website makes me think that it will be very expensive :-( On 18 May 2007 at 22:00, Francisco Tapia wrote: > it seemed like a fair fw. Btw sunbelt does offer a fw for servers but > I see your point it is not gratis :) > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Mon May 21 13:53:27 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 May 2007 14:53:27 -0400 Subject: [dba-VB] VB.Net - using the new() constructor Message-ID: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Tue May 22 10:51:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 22 May 2007 08:51:34 -0700 Subject: [dba-VB] VB.Net - using the new() constructor In-Reply-To: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> References: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Message-ID: Depends on what specifically you're doing. New returns an initialized instance of the class, so if you test to see if it's Nothing, that's one way (if it IS nothing, it failed). Using a try/catch block in the calling routine is another way, since any exception will bubble up to it. We use both techniques in our shop because we also event log the exceptions. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 21, 2007 11:53 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using the new() constructor Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu May 24 19:20:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:20:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings Message-ID: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Group, I am wanting to test the value of a field from a data source. If it is NULL or "" then do one thing, otherwise do another. Here is my vb.net code: If IsDBNull(Fields("MAddress2").Value) Or (Fields("MAddress2").Value = "") Then Me.txtMailAddress.DataField = "=MAddress1" Else Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + ", " + Chr(34) + " + MAddress2" End If The error message is " Operator '=' is not defined for type 'DBNull' and string "". What is the correct syntax for this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From davidmcafee at gmail.com Thu May 24 19:41:29 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:41:29 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Here's a function I wrote (actually I wrote it for C#, but crossed it over to vb.net) Public Function IsNull(ByVal strInput As String, ByVal strReplace As String) As String 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is known as Nz() If (strInput Is Nothing) Then Return strReplace Else If strInput = "" Then Return strReplace Else Return strInput End If End If End Function On 5/24/07, David Emerson wrote: > > Group, > > I am wanting to test the value of a field from a data source. If it > is NULL or "" then do one thing, otherwise do another. Here is my vb.netcode: > > If IsDBNull(Fields("MAddress2").Value) Or > (Fields("MAddress2").Value = "") Then > Me.txtMailAddress.DataField = "=MAddress1" > Else > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > ", " + Chr(34) + " + MAddress2" > End If > > The error message is " > > Operator '=' is not defined for type 'DBNull' and string "". > > What is the correct syntax for this? > > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From newsgrps at dalyn.co.nz Thu May 24 19:52:22 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:52:22 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.co m> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Message-ID: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it over >to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is >known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From davidmcafee at gmail.com Thu May 24 19:58:46 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:58:46 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241758n73420435l769b7925aeff2fe5@mail.gmail.com> I tried these before, but they dont work when an empty string is passed: ' These two IsNull functions dont work when an empty string is passed, so I used my own version above 'Public Function IsNull2(ByVal strInput As String, ByVal strReplace As String) As String ' If (strInput.Equals(System.DBNull.Value)) Then ' Return strReplace ' End If 'End Function 'Public Function IsNull3(ByVal strInput As String, ByVal strReplace As String) As String ' If (IsDBNull(strInput)) Then ' Return strReplace ' End If 'End Function On 5/24/07, David Emerson wrote: > > Thanks David, > > I originally had a similar syntax but was hoping that there was an > shorter method. > > David > > At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > over > >to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > is > >known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri May 25 09:32:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:32:10 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 09:52:27 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:52:27 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 11:20:31 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 09:20:31 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: Oops! Make that the AndAlso operator . That's what I get for multitasking! If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > 0 Then Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:52 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 11:59:34 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 12:59:34 -0400 Subject: [dba-VB] Visual Studio Trust Message-ID: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 25 12:16:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 10:16:29 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> References: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> Message-ID: Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:46:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:46:02 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:56:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:56:53 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Message-ID: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 13:14:19 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 11:14:19 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> References: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> Message-ID: ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 13:23:06 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 14:23:06 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525182306.01297BD21@smtp-auth.no-ip.com> It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-bca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 14:57:53 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 12:57:53 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525182306.01297BD21@smtp-auth.no-ip.com> References: <20070525182306.01297BD21@smtp-auth.no-ip.com> Message-ID: Haven't had to deal with it because it's someone else's headache. I knew about the file identifiers in XP but never knew the specifics and had forgotten most of the rest. Never head of ZoneStripper before. We use the Xceed libraries for zipping and unzipping in our apps, so it must be handled there. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 11:23 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-b ca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Fri May 25 15:54:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 26 May 2007 08:54:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <20070525205500.QPTP23876.fep02.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Charlotte, much appreciated. David At 26/05/2007, you wrote: >Oops! Make that the AndAlso operator . That's what I get for >multitasking! > > If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > >0 Then > >Charlotte > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:52 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >And once you have tested the IsNull, you can use the OrElse operator to >check for an empty string like this: > >If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 >Then > >The AndAlso and OrElse operators are a treasure because they only >evaluate that part of the expression if the first part succeeds. > >Charlote Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:32 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >If you're using a typed dataset, string and some other data types have >an IsNull property that you can test. Cast the record as a >row of the appropriate datatype to use it. Then you should be able to >use something like addrRow.IsMAddress2Null to check it. > >Charlotte Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Thursday, May 24, 2007 5:52 PM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >Thanks David, > >I originally had a similar syntax but was hoping that there was an >shorter method. > >David > >At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > >over to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace > >As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > > >is known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 26 06:58:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 26 May 2007 07:58:50 -0400 Subject: [dba-VB] Work with SQL Server and Express edition Message-ID: <20070526115852.05722BE26@smtp-auth.no-ip.com> I want to work with express edition databases as the data source for some of my VB.Net projects, but full SQL Server databases for others. How do I go about doing this? I started with express edition on my new laptop simply because I installed Visual studio first and it installed Express edition. Then I went out and found / installed the Express edition Management Studio. When I tried to install SQL Server Standard Edition, it basically told me there was nothing to do, and did not install Standard Edition Management Studio, which I need. What do I need to do now? John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Wed May 30 10:35:17 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 30 May 2007 08:35:17 -0700 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: <20070526115852.05722BE26@smtp-auth.no-ip.com> References: <20070526115852.05722BE26@smtp-auth.no-ip.com> Message-ID: I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for some > of > my VB.Net projects, but full SQL Server databases for others. How do I go > about doing this? I started with express edition on my new laptop simply > because I installed Visual studio first and it installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told me > there was nothing to do, and did not install Standard Edition Management > Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Wed May 30 11:11:29 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 30 May 2007 12:11:29 -0400 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: Message-ID: <20070530161129.F4081BD38@smtp-auth.no-ip.com> It turns out that you can have the Standard and Express Edition engines running side by side on the same machine. I just did something wrong (can't remember what now). I did end up uninstalling, installing SQL Server Standard Edition, then reinstalling SQL Express edition, and now both engines are visible and usable. What I did not do was attempt to reinstall the express edition management studio. There is no point really and besides that version is crippled. For some reason the Express edition engine is much more forgiving of the database file not being available as the engine service starts. With Standard Edition it acts as if the database file is unattached, and yet you can still see the icon etc. You have to go delete it and then attach the data file to get the database back. If you try to use it before doing that stuff, for example from my billing database in access, the attempts to access the data just hangs access until the timeout occurs. With Express edition OTOH, the express edition service starts on bootup. The data file is not available, it is on an encrypted drive which is not yet mounted. And yet when I mount the encrypted drive and then open the billing program, the links "just work". It is almost as if Express edition has a "mount on demand" functionality. That makes sense of course given Express edition's stated purpose in life. It would be nice if Standard Edition would attempt to mount a dismounted drive in the same manner. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 30, 2007 11:35 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Work with SQL Server and Express edition I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for > some of my VB.Net projects, but full SQL Server databases for others. > How do I go about doing this? I started with express edition on my > new laptop simply because I installed Visual studio first and it > installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told > me there was nothing to do, and did not install Standard Edition > Management Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:21:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:21:23 -0400 Subject: [dba-VB] VB.Net - using an outside DLL Message-ID: <006101c78ccd$8bc36050$657aa8c0@m6805> I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed May 2 10:29:43 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 08:29:43 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006101c78ccd$8bc36050$657aa8c0@m6805> Message-ID: <0JHF009HW71PEG10@vms048.mailsrvcs.net> In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:54:59 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:54:59 -0400 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <0JHF009HW71PEG10@vms048.mailsrvcs.net> References: <006101c78ccd$8bc36050$657aa8c0@m6805> <0JHF009HW71PEG10@vms048.mailsrvcs.net> Message-ID: <006701c78cd2$3d9b57c0$657aa8c0@m6805> SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Wed May 2 12:09:15 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 10:09:15 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006701c78cd2$3d9b57c0$657aa8c0@m6805> Message-ID: <0JHF00FCKBO1F4D0@vms044.mailsrvcs.net> Yes it doesn't matter where you place ICSharpCode.Sharplib.DLL because when you create a reference for this DLL in your project you will be asked for its location. After you point VS.NET to the correct location it will place a copy of that DLL in the same BIN folder where VS.NET will place your application DLL or EXE after it compiles and links it. -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, May 02, 2007 8:55 AM To: ebarro at verizon.net; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - using an outside DLL SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon May 7 04:13:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 07 May 2007 11:13:55 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ------------------------------------------------------------------------------- FREE VIDEO How to use the BackgroundWorker Control ------------------------------------------------------------------------------- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor From jwcolby at colbyconsulting.com Mon May 7 07:00:39 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 7 May 2007 08:00:39 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000901c7909f$555e9450$657aa8c0@m6805> Gustav, Thanks for the link. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 07, 2007 5:14 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ---------------------------------------------------------------------------- --- FREE VIDEO How to use the BackgroundWorker Control ---------------------------------------------------------------------------- --- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Mon May 7 15:17:35 2007 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 07 May 2007 16:17:35 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000601c790e4$c0fae5c0$2f01a8c0@Kermit> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From gustav at cactus.dk Mon May 7 17:08:38 2007 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 08 May 2007 00:08:38 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi Doris That sounds like two very good examples. /gustav >>> mikedorism at verizon.net 07-05-07 22:17 >>> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From jwcolby at colbyconsulting.com Tue May 8 15:48:11 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 16:48:11 -0400 Subject: [dba-VB] Redeem your voucher Message-ID: <011e01c791b2$32acf370$657aa8c0@m6805> Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Tue May 8 16:17:05 2007 From: ebarro at verizon.net (Eric Barro) Date: Tue, 08 May 2007 14:17:05 -0700 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue May 8 17:16:27 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 08 May 2007 15:16:27 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ00JF6TO5SI22@l-daemon> Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:05:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:05:12 -0400 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Message-ID: <000001c791cd$b85219e0$657aa8c0@m6805> LOL, yea, that's probably it. Though I am normally ranting about SQL Server or Access. I don't know enough about Visual studio to rant about it YET. Maybe they thought if I couldn't redeem my voucher I would never get good enough to rant about it? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, May 08, 2007 5:17 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] [AccessD] Redeem your voucher Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:06:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:06:23 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <0JHQ00JF6TO5SI22@l-daemon> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> Message-ID: <000101c791cd$e246ea50$657aa8c0@m6805> The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:21:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:21:17 -0400 Subject: [dba-VB] Interesting for you kung fu masters? Message-ID: <000201c791cf$f7351f20$657aa8c0@m6805> www.sql-server-performance.com/vg_database_comparison_sp.asp John W. Colby Colby Consulting www.ColbyConsulting.com From bheid at sc.rr.com Tue May 8 21:06:33 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 8 May 2007 22:06:33 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <000101c791cd$e246ea50$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> <000101c791cd$e246ea50$657aa8c0@m6805> Message-ID: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 21:51:03 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 22:51:03 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon><000101c791cd$e246ea50$657aa8c0@m6805> <006e01c791de$aaad9ba0$2c01a8c0@bhxp> Message-ID: <000301c791e4$e3413160$657aa8c0@m6805> Yea, I did that. Luckily I already have a copy, with a copy of SQL Server 2005, both of which I picked up at the coming out party. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 08, 2007 10:07 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 16:08:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:08:07 -0400 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <007601c7927e$248a5a90$657aa8c0@m6805> I am looking at how to do in VB.Net what in VBA would be str = trim(mid(str,intStartPos, intLen)) I can do this (I think) in two steps using: private mstr as string mstr = lstrRecord.SubString(intStartPos,intWidth) mstr = mstr.Trim(mstr.ToCharArray) Given what I know about VB.Net (not very darned much) is this the best way? I see where the string builder can do the substring part but it does not have a trim method. John W. Colby Colby Consulting www.ColbyConsulting.com From chizotz at mchsi.com Wed May 9 16:23:53 2007 From: chizotz at mchsi.com (Ron Allen) Date: Wed, 09 May 2007 21:23:53 +0000 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does not > have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ebarro at verizon.net Wed May 9 16:36:36 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 09 May 2007 14:36:36 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM From jwcolby at colbyconsulting.com Wed May 9 16:46:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:46:10 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> Message-ID: <007b01c79283$75b70c10$657aa8c0@m6805> Done. Thanks guys. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 09, 2007 5:37 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Wed May 9 16:48:30 2007 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 9 May 2007 14:48:30 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = > 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the best > way? > > I see where the string builder can do the substring part but it does not > > have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed May 9 16:57:51 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:57:51 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> Message-ID: <007d01c79285$174d0e20$657aa8c0@m6805> It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 17:20:12 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 15:20:12 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <007d01c79285$174d0e20$657aa8c0@m6805> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> <007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 18:20:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 16:20:32 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 3:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 20:16:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 21:16:44 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: <000801c792a0$e0be50a0$657aa8c0@m6805> OK, I understand. I always thought of the methods as just returning a value, but in .Net even variables are objects which have methods. Makes perfect sense. Thanks for stating it that way though, else I would have spent the next few years with a complete misconception of what was really happening. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 7:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu May 10 07:02:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 10 May 2007 08:02:24 -0400 Subject: [dba-VB] VB.Net - XML comments Message-ID: <000d01c792fb$1743bbb0$657aa8c0@m6805> I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Thu May 10 08:11:52 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 10 May 2007 06:11:52 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 10 08:46:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 May 2007 09:46:53 -0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Message-ID: <20070510134705.51A7CBC95@smtp-auth.no-ip.com> No, I meant what application will reach into these files and generate a documentation book using the xml comments. That is the purpose of these xml tags, to create a document. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, May 10, 2007 9:12 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - XML comments Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From chizotz at mchsi.com Thu May 10 10:43:35 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 15:43:35 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071543.26026.46433DA6000C264F000065AA219791336303010CD2079C080C03BF969B019607080C@mchsi.com> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Thu May 10 11:07:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 May 2007 18:07:22 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron I don't see that menu item. How is it added? /gustav >>> chizotz at mchsi.com 10-05-2007 17:43 >>> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From chizotz at mchsi.com Thu May 10 12:54:52 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 17:54:52 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the > help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and generate a > > documentation book using the xml comments. That is the purpose of these xml > > tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > > solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with just the > > content"? > > > > You can use regular expressions to strip off XML or HTML tags. This is the > > syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has anyone > > ever found / used something that yanks the comments out to see what they > > look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From martyconnelly at shaw.ca Thu May 10 13:05:14 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 11:05:14 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: References: Message-ID: <46435EDA.8040004@shaw.ca> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Thu May 10 13:03:07 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 10 May 2007 11:03:07 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> References: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: I just found a comment that the feature was removed from 2005. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=106905&SiteId=1 for some more information. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Thursday, May 10, 2007 10:55 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and > in the help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and > > generate a documentation book using the xml comments. That is the > > purpose of these xml tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and > > problem solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with > > just the content"? > > > > You can use regular expressions to strip off XML or HTML tags. This > > is the syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has > > anyone ever found / used something that yanks the comments out to > > see what they look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Thu May 10 16:44:37 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 01:44:37 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <002001c7934c$68575560$6401a8c0@nant> Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Thu May 10 17:32:02 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 May 2007 15:32:02 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <0JHU0090KJPVIVQ0@l-daemon> Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Thu May 10 17:42:08 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 00:42:08 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron and Marty It's VS2005 Standard. /gustav >>> martyconnelly at shaw.ca 10-05-07 20:05 >>> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 10 19:19:47 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 17:19:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> References: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <4643B6A3.1040604@shaw.ca> Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Fri May 11 06:08:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:08:07 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHU0090KJPVIVQ0@l-daemon> Message-ID: <000c01c793bc$a7f0cf60$6401a8c0@nant> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Fri May 11 06:40:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:40:59 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <4643B6A3.1040604@shaw.ca> Message-ID: <001f01c793c1$3f3927b0$6401a8c0@nant> Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 07:29:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 14:29:26 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Shamil et al XAML (Avalon) is perhaps the most interesting part: Consistent presentation model by using XAML, the declarative presentation language used in Windows Vista*based applications. Controls, visual designs, media, and other elements can be presented with full design fidelity in both Silverlight and Windows*based applications. /gustav >>> shamil at users.mns.ru 11-05-2007 13:08 >>> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Fri May 11 09:46:47 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 07:46:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000c01c793bc$a7f0cf60$6401a8c0@nant> Message-ID: <0JHV004BTSUEX2F2@l-daemon> Hi Shamil: Had not heard of the product yet but will check it out. It will have to go a long way to match the market penetration that FLASH currently has but I am sure it will default with IE. Have a good weekend Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fhtapia at gmail.com Fri May 11 10:56:02 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 11 May 2007 08:56:02 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: heheheh... ...}:-> oops did I say that out-loud? what browser are you using... On 5/8/07, JWColby wrote: > > Well, I watched the two videos, filled out the required feedback report > and > now I have received my highly coveted voucher for my free* copy of Visual > Studio 2005 Standard Edition. > > *Other than having to pay shipping and handling (which is fine) I also > have > to get the web page to ACCEPT my voucher (which ain't happening). The old > endless loop, comes right back to the same page and asks for the voucher > again. I even tried using MS POS Explorer to no avail. > > I wonder if anyone at MS has noticed that no one is redeeming their > vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. > > Sigh. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From accessd at shaw.ca Fri May 11 11:09:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 09:09:31 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <001f01c793c1$3f3927b0$6401a8c0@nant> Message-ID: <0JHV006MLWO9L4Z2@l-daemon> And of course the Open-Source community is in the running: http://news.com.com/8301-10784_3-9714669-7.html Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:41 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 11:22:18 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 18:22:18 +0200 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Message-ID: Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav From cfoust at infostatsystems.com Fri May 11 11:26:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 09:26:24 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: References: Message-ID: Yep, we keep our VS up to date. I think it took all morning to install that thing, and we had it on DVD! Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4 C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Fri May 11 11:29:13 2007 From: ebarro at verizon.net (Eric Barro) Date: Fri, 11 May 2007 09:29:13 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: Message-ID: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 11:56:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 12:56:56 -0400 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> Message-ID: <20070511165656.11640BCB4@smtp-auth.no-ip.com> >And when they reach SP4 it's time to come out with a new version (of the bugs). ROTFL. So true. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Friday, May 11, 2007 12:29 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VS2005 Service Pack 1 (not for Express) No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 16:46:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 17:46:04 -0400 Subject: [dba-VB] Clearing the debug window before writing to it Message-ID: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 11 16:49:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 14:49:45 -0700 Subject: [dba-VB] Clearing the debug window before writing to it In-Reply-To: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> References: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> Message-ID: I don't bother. When I need to use it, I just right click and clear all. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 11, 2007 2:46 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Clearing the debug window before writing to it When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 21:19:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 22:19:36 -0400 Subject: [dba-VB] VB.Net - Raw data file transform Message-ID: <20070512021936.5A940BDA4@smtp-auth.no-ip.com> Well guys, I have ported the application that transformed my raw data into a pipe delimited "csv" file - from VBA in Access to VB.NET. Preliminary results VERY crudely timed show about 10K records / second, up from about 1K records / second in VBA. I really need to find a timer class for timing code in order to get precise timings on this. As it stands now however, it looks like without any further optimizations, my raw data transform would be the bottleneck, running at 9.7K records / sec, with the SQL Server BULK INSERT running at 15K records / second. If I can get these two processes running in threads so that they process independently, I am now in a position to go pushbutton and import a 100 million record file in ~10K seconds / 166.6 minutes / 2.7 hours. Given that I will soon have the pieces to run unattended this is an acceptable rate for me. This process took days of handholding manual labor to make happen (learning stuff all the way of course) Thanks to all who have helped my in getting the ADO happening out in VB.Net, as well as the Sproc happening in SQL Server. I still have a long way to go to get a complete app in VB.Net and SQL Server. The piece I just ported does the open / parse / strip / write to move the raw fixed width file to pipe delimited. Phase 2 begins immediately. The next piece will automate running the BULK INSERT Sproc from VB.Net, given a set of pipe delimited csv files in a directory and an existing destination table in SQL Server. Once that piece is running, I will need to learn how to run each piece in a separate thread. When both pieces are running simultaneously, I will need to reassess the speed of each piece. I am using a dual proc AMD XP 3800 with 4 gb RAM so hopefully each thread will run on a different proc, though I don't know that. From the little I know I assume there is a way to set the processor affinity of a thread. So much to learn, so little time. But this is just an awesome start and I am happy with the speed gain of the transform process achieved by moving to VB.Net. Again thanks to all who contributed. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:09:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:09:46 -0400 Subject: [dba-VB] VB.Net - seeing the messagebox Message-ID: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:40:12 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:40:12 -0400 Subject: [dba-VB] VB.Net - Progress Bars Message-ID: <20070512134012.472BABCCA@smtp-auth.no-ip.com> I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Sat May 12 09:33:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 12 May 2007 18:33:01 +0400 Subject: [dba-VB] VB.Net - Progress Bars In-Reply-To: <20070512134012.472BABCCA@smtp-auth.no-ip.com> Message-ID: <000201c794a2$9a8a34b0$6401a8c0@nant> John, I think you'd better currently use custom events as you do in VBA using WithEvents. You can even do more "tricks": VB.NET (.NET Framework) generalizes this idea of custom events and their sinking - read about the concept of delegates and how to handle them. If you're thinking about making your program multi-threaded then you will have to solve some more complicated issues related to the fact that the calls from worker threads can't in general case result in form's properties or form controls' properties updates, IOW an event raised in a worker thread can't/shouldn't be processed by the main thread running the form... Here is where delegates can sole the issue or BackgroundWorker component (http://www.codeguru.com/columns/vb/article.php/c10755/ )... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:40 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Progress Bars I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 14 10:05:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 May 2007 08:05:09 -0700 Subject: [dba-VB] VB.Net - seeing the messagebox In-Reply-To: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> References: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> Message-ID: John, When we put timers in, we generally show the result in the status bar at the bottom of the main form window. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 6:10 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 14 23:29:20 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 00:29:20 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread Message-ID: <20070515042921.87A07BE97@smtp-auth.no-ip.com> I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Tue May 15 05:58:44 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 14:58:44 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070514211654.ACBB8BD9F@smtp-auth.no-ip.com> Message-ID: <000001c796e0$01736950$6401a8c0@nant> Hello John, Have a look at this article: http://www.codeproject.com/tools/windowspy.asp?df=100&forumid=152014&exp=0&s elect=1363031 What you need is a SetWindowPos WinApi call with WS_EX_TOPMOST parameter. You can find more info on google using SetWindowPos WS_EX_TOPMOST as search criteria... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 1:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Well... Yea, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, IOW you wanted to have a message box/form "flying" on top of all the other windows but not blocking nor your VB.NET application nor other processes? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 14, 2007 11:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Shamil, Nope, I didn't try that. It doesn't sound like something I want to do either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, Did you try to use MsgBoxStyle.SystemModal ? (Be careful it stops all the running processes as it's written in docs): Dim msg As String Dim title As String Dim style As MsgBoxStyle Dim response As MsgBoxResult msg = "Do you want to continue?" ' Define message. style = MsgBoxStyle.DefaultButton2 Or _ MsgBoxStyle.Critical Or _ MsgBoxStyle.YesNo Or _ MsgBoxStyle.SystemModal title = "MsgBox Demonstration" ' Define title. ' Display message. response = MsgBox(msg, style, title) If response = MsgBoxResult.Yes Then ' User chose Yes. ' Perform some action. Else ' Perform some other action. End If -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:10 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue May 15 07:23:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 16:23:07 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515111543.6D5DABDDA@smtp-auth.no-ip.com> Message-ID: <000901c796eb$cbe51f20$6401a8c0@nant> <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 15 07:35:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 08:35:49 -0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <000901c796eb$cbe51f20$6401a8c0@nant> Message-ID: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Shamil, I understand that they still exist, however everything I have read says that .NET is trying to wrap them and present them as properties of .NET objects, thus allowing you to avoid having to make such API calls directly. Obviously everything hasn't been wrapped yet. Thanks for the references. I am adding them to my browser bookmarks. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, May 15, 2007 8:23 AM To: 'Access-D - VB' Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue May 15 07:56:48 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 May 2007 22:56:48 +1000 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> References: <000901c796eb$cbe51f20$6401a8c0@nant>, <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Message-ID: <4649AE10.10214.1D1BA1AD@stuart.lexacorp.com.pg> Just found the .Net 2.0 version: http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.topmost(VS.80).aspx On 15 May 2007 at 8:35, jwcolby wrote: > Shamil, > > I understand that they still exist, however everything I have read says that > .NET is trying to wrap them and present them as properties of .NET objects, > thus allowing you to avoid having to make such API calls directly. Obviously > everything hasn't been wrapped yet. > > Thanks for the references. I am adding them to my browser bookmarks. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Tuesday, May 15, 2007 8:23 AM > To: 'Access-D - VB' > Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox > > <<< > They are all about avoiding programming to API calls. > >>> > John, > > I'd think that WinAPI calls are forever because they drive MS Windows > internally and there is no any signs this will change any time soon... > > Have a look at: > > http://www.pinvoke.net/ and > > http://www.pinvoke.net/default.aspx/user32.SetWindowPos > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 15, 2007 3:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VB.Net - seeing the messagebox > > I have to wonder if .NET doesn't have this built-in somehow. They are all > about avoiding programming to API calls. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and > problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox > > If the MB isn't working, how about displaying a custom form and setting > it's z-order to "TOPMOST" with the SetWindowPos API call. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From James at fcidms.com Tue May 15 08:52:19 2007 From: James at fcidms.com (James Barash) Date: Tue, 15 May 2007 09:52:19 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread In-Reply-To: <20070515042921.87A07BE97@smtp-auth.no-ip.com> Message-ID: <009601c796f8$44d16d60$800101df@fci.local> John: If you have the time here is a fairly thorough discussion of threading in VB.net with a set of classes (I know you like those) to facilitate exactly the type of threading you are trying to do. By the way, codeproject.com is an excellent resource for code samples for just about everything related to .Net. http://www.codeproject.com/vb/net/VBthreadingwrapper.asp If you want the quick and dirty approach: http://msdn2.microsoft.com/en-us/library/ywkkz4s1(VS.80).aspx Good luck. James Barash -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 12:29 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net moving to a background worker thread I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 17 15:41:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 May 2007 16:41:49 -0400 Subject: [dba-VB] Visual Studio Projects Location Message-ID: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Thu May 17 15:50:28 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 May 2007 13:50:28 -0700 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: We use SourceSafe, so I can't recommend another source control system. We never put our projects in My Documents because of the obvious problems with that. What we do is create a directory for each solution being developed on our local drives (you could use a server too) and within that structure, we create folders for our various projects that are components of the solution. There's no magic about My Documents (except maybe how to make installers stop defaulting to that!!). I can use VPN to log into my office machine over the internet and work on the stuff if I need to. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 1:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu May 17 16:21:34 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 17 May 2007 17:21:34 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: <001f01c798c9$5cbbabc0$2f01a8c0@Kermit> We have been using Subversion for about a year now. I don't know what is involved in setting it up but I do know that it is free open source product. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 4:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at gmail.com Thu May 17 18:48:16 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 17 May 2007 19:48:16 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: On 5/17/07, jwcolby wrote: > On another note, I assume that Visual Studio Standard does not have Visual > Source Safe? Is anyone else using a cheap / free source control system that > they recommend? CVS (Concurrent Version System) and Subversion are the 2 most popular. Both are Free Open Source and should be able to handle .net files although there may not be a plugin to allow access directly from the vs.net interface. That you'll have to investigate. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Fri May 18 08:34:15 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 09:34:15 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing Message-ID: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> I just thought you might be interested in some numbers, transferring a large file from system to system on a network. Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. Both systems run Comodo personal firewall (software firewall) with specific rules allowing transfers from/to any other computer within my internal network. Both systems use an Areca 1220 dedicated RAID controller, and both systems use Seagate 7200.10 drives in the arrays. The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit switch between the systems. I am transferring a 120 gbyte SQL Server database file (dbf). When the transfer started it "settled down" after a couple of seconds saying it would take 48 minutes to transfer the file, which indicates about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read speed to be about 450 mbyte / sec for these arrays, so that is most likely the write speed of the Raid5 destination array. Write speed for these arrays is just slightly worse than the write speed of any single disk. Using task manager to simply view the network usage, the network seems to be using about 40% capacity on average. Again, using task manager, the CPU usage for the two cores shows core one swinging between 0 and 40%with a rough average around 20%. Core two is swinging between 60% and 80%. When the work is steady (and there are places where both cores, but particularly core 2 varies wildly), the "average" is reported as around 40%, as displayed in the CPU Usage. All of this usage being on the transmitting system. The task reporting most usage time is system idle, then explorer. System two (the receiving system) shows almost no Core 1 usage and Core 2 swinging wildly, but again averaging around 40% or so usage, both cores combined, per the CPU Usage display. John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Fri May 18 18:26:35 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 16:26:35 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> References: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> Message-ID: you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large > file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific > rules allowing transfers from/to any other computer within my internal > network. Both systems use an Areca 1220 dedicated RAID controller, and > both > systems use Seagate 7200.10 drives in the arrays. The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch > between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When the > transfer started it "settled down" after a couple of seconds saying it > would > take 48 minutes to transfer the file, which indicates about 2.5 gigabytes > / > minute, 42 mb / second. Testing has shown the read speed to be about 450 > mbyte / sec for these arrays, so that is most likely the write speed of > the > Raid5 destination array. Write speed for these arrays is just slightly > worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems to > be > using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core one > swinging between 0 and 40%with a rough average around 20%. Core two is > swinging between 60% and 80%. When the work is steady (and there are > places > where both cores, but particularly core 2 varies wildly), the "average" is > reported as around 40%, as displayed in the CPU Usage. All of this usage > being on the transmitting system. The task reporting most usage time is > system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and Core 2 > swinging wildly, but again averaging around 40% or so usage, both cores > combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Fri May 18 20:34:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 21:34:13 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: Message-ID: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> I think you have to use something. It works for me and I have so many systems that I have to standardize on something. I have had as many as three different software firewalls running on various machines at the same time and it is just a mess. Comodo is easy to get working, free (FOREVER according to their website;) and appears to do a good job. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific rules allowing transfers from/to any other computer within my > internal network. Both systems use an Areca 1220 dedicated RAID > controller, and both systems use Seagate 7200.10 drives in the arrays. > The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When > the transfer started it "settled down" after a couple of seconds > saying it would take 48 minutes to transfer the file, which indicates > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the > read speed to be about 450 mbyte / sec for these arrays, so that is > most likely the write speed of the > Raid5 destination array. Write speed for these arrays is just > slightly worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems > to be using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core > one swinging between 0 and 40%with a rough average around 20%. Core > two is swinging between 60% and 80%. When the work is steady (and > there are places where both cores, but particularly core 2 varies > wildly), the "average" is reported as around 40%, as displayed in the > CPU Usage. All of this usage being on the transmitting system. The > task reporting most usage time is system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and > Core 2 swinging wildly, but again averaging around 40% or so usage, > both cores combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 18 22:08:30 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 13:08:30 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> References: , <20070519013411.E3E61BC74@smtp-auth.no-ip.com> Message-ID: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many as > three different software firewalls running on various machines at the same > time and it is just a mess. Comodo is easy to get working, free (FOREVER > according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > > > On 5/18/07, jwcolby wrote: > > > > I just thought you might be interested in some numbers, transferring a > > large file from system to system on a network. > > > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > > Both systems run Comodo personal firewall (software firewall) with > > specific rules allowing transfers from/to any other computer within my > > internal network. Both systems use an Areca 1220 dedicated RAID > > controller, and both systems use Seagate 7200.10 drives in the arrays. > > The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. > > There is a gigabit switch between the systems. > > > > I am transferring a 120 gbyte SQL Server database file (dbf). When > > the transfer started it "settled down" after a couple of seconds > > saying it would take 48 minutes to transfer the file, which indicates > > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read > > speed to be about 450 mbyte / sec for these arrays, so that is most likely > > the write speed of the Raid5 destination array. Write speed for these > > arrays is just slightly worse than the write speed of any single disk. > > > > Using task manager to simply view the network usage, the network seems to > > be using about 40% capacity on average. > > > > Again, using task manager, the CPU usage for the two cores shows core one > > swinging between 0 and 40%with a rough average around 20%. Core two is > > swinging between 60% and 80%. When the work is steady (and there are > > places where both cores, but particularly core 2 varies wildly), the > > "average" is reported as around 40%, as displayed in the CPU Usage. All > > of this usage being on the transmitting system. The task reporting most > > usage time is system idle, then explorer. > > > > System two (the receiving system) shows almost no Core 1 usage and > > Core 2 swinging wildly, but again averaging around 40% or so usage, > > both cores combined, per the CPU Usage display. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Fri May 18 22:32:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 23:32:46 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> Message-ID: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> And it appears to work well... http://www.pcworld.idg.com.au/index.php/id;159719021 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 18, 2007 11:09 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many > as three different software firewalls running on various machines at > the same time and it is just a mess. Comodo is easy to get working, > free (FOREVER according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > From fhtapia at gmail.com Sat May 19 00:00:45 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 22:00:45 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> Message-ID: I'm glad its working for you. I had read either that article or a similar one when I tried that fw on my laptop. It turned out not to be a good product for me because I am also using a cisco VPN and that fw simply caused my system to freeze or not connect. Other than that it seemed like a fair fw. Btw sunbelt does offer a fw for servers but I see your point it is not gratis :) http://www.google.com/gwt/n?hl=en&q=sunbelt+kerio+firewall+%2B+server&source=m&ei=rIJORviNGKOsogLUosKLAg&sa=X&oi=blended&ct=res&cd=2&rd=1&u=http%3A%2F%2Fwww.sunbelt-software.com%2FBusiness%2FSunbelt-Server-Firewall%2F On 5/18/07, jwcolby wrote: > And it appears to work well... > > http://www.pcworld.idg.com.au/index.php/id;159719021 > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, May 18, 2007 11:09 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT: FYI-System Transfer timing > > And it runs on Server OSs, unlike Sunbelt Kerio. > > On 18 May 2007 at 21:34, jwcolby wrote: > > > I think you have to use something. It works for me and I have so many > > systems that I have to standardize on something. I have had as many > > as three different software firewalls running on various machines at > > the same time and it is just a mess. Comodo is easy to get working, > > free (FOREVER according to their website;) and appears to do a good job. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > > Tapia > > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com > Subject: > > Re: [dba-VB] OT: FYI-System Transfer timing > > > > you sure love your comodo :) > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From stuart at lexacorp.com.pg Sat May 19 01:01:28 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 16:01:28 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg>, <20070519033244.D7A72BDDB@smtp-auth.no-ip.com>, Message-ID: <464E92B8.8667.3C956F0@stuart.lexacorp.com.pg> I don't know the price of the Kerio server firewall, but the fact that they don't give any indication of pricing on their website makes me think that it will be very expensive :-( On 18 May 2007 at 22:00, Francisco Tapia wrote: > it seemed like a fair fw. Btw sunbelt does offer a fw for servers but > I see your point it is not gratis :) > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Mon May 21 13:53:27 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 May 2007 14:53:27 -0400 Subject: [dba-VB] VB.Net - using the new() constructor Message-ID: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Tue May 22 10:51:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 22 May 2007 08:51:34 -0700 Subject: [dba-VB] VB.Net - using the new() constructor In-Reply-To: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> References: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Message-ID: Depends on what specifically you're doing. New returns an initialized instance of the class, so if you test to see if it's Nothing, that's one way (if it IS nothing, it failed). Using a try/catch block in the calling routine is another way, since any exception will bubble up to it. We use both techniques in our shop because we also event log the exceptions. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 21, 2007 11:53 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using the new() constructor Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu May 24 19:20:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:20:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings Message-ID: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Group, I am wanting to test the value of a field from a data source. If it is NULL or "" then do one thing, otherwise do another. Here is my vb.net code: If IsDBNull(Fields("MAddress2").Value) Or (Fields("MAddress2").Value = "") Then Me.txtMailAddress.DataField = "=MAddress1" Else Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + ", " + Chr(34) + " + MAddress2" End If The error message is " Operator '=' is not defined for type 'DBNull' and string "". What is the correct syntax for this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From davidmcafee at gmail.com Thu May 24 19:41:29 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:41:29 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Here's a function I wrote (actually I wrote it for C#, but crossed it over to vb.net) Public Function IsNull(ByVal strInput As String, ByVal strReplace As String) As String 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is known as Nz() If (strInput Is Nothing) Then Return strReplace Else If strInput = "" Then Return strReplace Else Return strInput End If End If End Function On 5/24/07, David Emerson wrote: > > Group, > > I am wanting to test the value of a field from a data source. If it > is NULL or "" then do one thing, otherwise do another. Here is my vb.netcode: > > If IsDBNull(Fields("MAddress2").Value) Or > (Fields("MAddress2").Value = "") Then > Me.txtMailAddress.DataField = "=MAddress1" > Else > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > ", " + Chr(34) + " + MAddress2" > End If > > The error message is " > > Operator '=' is not defined for type 'DBNull' and string "". > > What is the correct syntax for this? > > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From newsgrps at dalyn.co.nz Thu May 24 19:52:22 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:52:22 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.co m> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Message-ID: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it over >to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is >known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From davidmcafee at gmail.com Thu May 24 19:58:46 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:58:46 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241758n73420435l769b7925aeff2fe5@mail.gmail.com> I tried these before, but they dont work when an empty string is passed: ' These two IsNull functions dont work when an empty string is passed, so I used my own version above 'Public Function IsNull2(ByVal strInput As String, ByVal strReplace As String) As String ' If (strInput.Equals(System.DBNull.Value)) Then ' Return strReplace ' End If 'End Function 'Public Function IsNull3(ByVal strInput As String, ByVal strReplace As String) As String ' If (IsDBNull(strInput)) Then ' Return strReplace ' End If 'End Function On 5/24/07, David Emerson wrote: > > Thanks David, > > I originally had a similar syntax but was hoping that there was an > shorter method. > > David > > At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > over > >to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > is > >known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri May 25 09:32:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:32:10 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 09:52:27 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:52:27 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 11:20:31 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 09:20:31 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: Oops! Make that the AndAlso operator . That's what I get for multitasking! If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > 0 Then Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:52 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 11:59:34 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 12:59:34 -0400 Subject: [dba-VB] Visual Studio Trust Message-ID: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 25 12:16:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 10:16:29 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> References: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> Message-ID: Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:46:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:46:02 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:56:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:56:53 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Message-ID: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 13:14:19 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 11:14:19 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> References: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> Message-ID: ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 13:23:06 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 14:23:06 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525182306.01297BD21@smtp-auth.no-ip.com> It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-bca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 14:57:53 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 12:57:53 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525182306.01297BD21@smtp-auth.no-ip.com> References: <20070525182306.01297BD21@smtp-auth.no-ip.com> Message-ID: Haven't had to deal with it because it's someone else's headache. I knew about the file identifiers in XP but never knew the specifics and had forgotten most of the rest. Never head of ZoneStripper before. We use the Xceed libraries for zipping and unzipping in our apps, so it must be handled there. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 11:23 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-b ca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Fri May 25 15:54:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 26 May 2007 08:54:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <20070525205500.QPTP23876.fep02.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Charlotte, much appreciated. David At 26/05/2007, you wrote: >Oops! Make that the AndAlso operator . That's what I get for >multitasking! > > If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > >0 Then > >Charlotte > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:52 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >And once you have tested the IsNull, you can use the OrElse operator to >check for an empty string like this: > >If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 >Then > >The AndAlso and OrElse operators are a treasure because they only >evaluate that part of the expression if the first part succeeds. > >Charlote Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:32 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >If you're using a typed dataset, string and some other data types have >an IsNull property that you can test. Cast the record as a >row of the appropriate datatype to use it. Then you should be able to >use something like addrRow.IsMAddress2Null to check it. > >Charlotte Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Thursday, May 24, 2007 5:52 PM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >Thanks David, > >I originally had a similar syntax but was hoping that there was an >shorter method. > >David > >At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > >over to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace > >As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > > >is known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 26 06:58:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 26 May 2007 07:58:50 -0400 Subject: [dba-VB] Work with SQL Server and Express edition Message-ID: <20070526115852.05722BE26@smtp-auth.no-ip.com> I want to work with express edition databases as the data source for some of my VB.Net projects, but full SQL Server databases for others. How do I go about doing this? I started with express edition on my new laptop simply because I installed Visual studio first and it installed Express edition. Then I went out and found / installed the Express edition Management Studio. When I tried to install SQL Server Standard Edition, it basically told me there was nothing to do, and did not install Standard Edition Management Studio, which I need. What do I need to do now? John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Wed May 30 10:35:17 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 30 May 2007 08:35:17 -0700 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: <20070526115852.05722BE26@smtp-auth.no-ip.com> References: <20070526115852.05722BE26@smtp-auth.no-ip.com> Message-ID: I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for some > of > my VB.Net projects, but full SQL Server databases for others. How do I go > about doing this? I started with express edition on my new laptop simply > because I installed Visual studio first and it installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told me > there was nothing to do, and did not install Standard Edition Management > Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Wed May 30 11:11:29 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 30 May 2007 12:11:29 -0400 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: Message-ID: <20070530161129.F4081BD38@smtp-auth.no-ip.com> It turns out that you can have the Standard and Express Edition engines running side by side on the same machine. I just did something wrong (can't remember what now). I did end up uninstalling, installing SQL Server Standard Edition, then reinstalling SQL Express edition, and now both engines are visible and usable. What I did not do was attempt to reinstall the express edition management studio. There is no point really and besides that version is crippled. For some reason the Express edition engine is much more forgiving of the database file not being available as the engine service starts. With Standard Edition it acts as if the database file is unattached, and yet you can still see the icon etc. You have to go delete it and then attach the data file to get the database back. If you try to use it before doing that stuff, for example from my billing database in access, the attempts to access the data just hangs access until the timeout occurs. With Express edition OTOH, the express edition service starts on bootup. The data file is not available, it is on an encrypted drive which is not yet mounted. And yet when I mount the encrypted drive and then open the billing program, the links "just work". It is almost as if Express edition has a "mount on demand" functionality. That makes sense of course given Express edition's stated purpose in life. It would be nice if Standard Edition would attempt to mount a dismounted drive in the same manner. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 30, 2007 11:35 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Work with SQL Server and Express edition I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for > some of my VB.Net projects, but full SQL Server databases for others. > How do I go about doing this? I started with express edition on my > new laptop simply because I installed Visual studio first and it > installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told > me there was nothing to do, and did not install Standard Edition > Management Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:21:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:21:23 -0400 Subject: [dba-VB] VB.Net - using an outside DLL Message-ID: <006101c78ccd$8bc36050$657aa8c0@m6805> I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed May 2 10:29:43 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 08:29:43 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006101c78ccd$8bc36050$657aa8c0@m6805> Message-ID: <0JHF009HW71PEG10@vms048.mailsrvcs.net> In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 2 10:54:59 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 2 May 2007 11:54:59 -0400 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <0JHF009HW71PEG10@vms048.mailsrvcs.net> References: <006101c78ccd$8bc36050$657aa8c0@m6805> <0JHF009HW71PEG10@vms048.mailsrvcs.net> Message-ID: <006701c78cd2$3d9b57c0$657aa8c0@m6805> SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Wed May 2 12:09:15 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 02 May 2007 10:09:15 -0700 Subject: [dba-VB] VB.Net - using an outside DLL In-Reply-To: <006701c78cd2$3d9b57c0$657aa8c0@m6805> Message-ID: <0JHF00FCKBO1F4D0@vms044.mailsrvcs.net> Yes it doesn't matter where you place ICSharpCode.Sharplib.DLL because when you create a reference for this DLL in your project you will be asked for its location. After you point VS.NET to the correct location it will place a copy of that DLL in the same BIN folder where VS.NET will place your application DLL or EXE after it compiles and links it. -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, May 02, 2007 8:55 AM To: ebarro at verizon.net; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - using an outside DLL SO IOW it doesn't matter where I place the DLL. And yea, it probably was mentioned in a previous email. I am starting to understand enough to comprehend the previous emails. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 02, 2007 11:30 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - using an outside DLL In VS.NET you create a reference to the DLL and when you compile your project it puts it in the BIN folder. When you create a setup you specify all the files it needs and the setup program knows where to copy it on the target machine. I believe I've covered this in a previous email about where .NET stored the binaries. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 02, 2007 8:21 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using an outside DLL I am looking at using the ICSharpCode.Sharplib.DLL for its unzip stuff. This is actually something that is going to go on the server I am building the project on but might also go on another machine. My question in general is where do you place a component like this in the .Net universe? Do you place it in Windows\System32 like you would all other DLLs? Do you place it in the framework directory? Do you place it in the project specifically using it? Regardless of where you place it, how is it "gathered up, and then reinstalled" on another machine as a project is migrated to another machine? John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon May 7 04:13:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 07 May 2007 11:13:55 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ------------------------------------------------------------------------------- FREE VIDEO How to use the BackgroundWorker Control ------------------------------------------------------------------------------- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor From jwcolby at colbyconsulting.com Mon May 7 07:00:39 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 7 May 2007 08:00:39 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000901c7909f$555e9450$657aa8c0@m6805> Gustav, Thanks for the link. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 07, 2007 5:14 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Hi All A major drawback of Access has always been that it is single-threaded. Using .NET, design of multi-threaded applications is possible and has become easier. Here's a video on how to attack this topic from the guy behind the "Getting Started" videos for Visual Studio 2005 Express which is free to download if you register. I like these videos, but you should pull the wmv files off the cd and play them with Real Player or another player which allows you to zoom the picture. For some reason, when played from the viewer-setup on the cd, you can only view a too small picture or full-screen. /gustav >>> LearnVisualStudio.NET 06-05-2007 12:15 >>> >>> Using the BackgroundWorker Control, you can add more responsiveness to your applications by creating multiple threads without all the fuss and muss of delegates. So, for those long running activities you can refresh the status bar and your application's UI updating with pertinent messages to the end user. ---------------------------------------------------------------------------- --- FREE VIDEO How to use the BackgroundWorker Control ---------------------------------------------------------------------------- --- This video comes from the Windows Forms Controls 2005 Series. This video demonstrates how to use the new BackgroundWorker Control to easily create a multi-threaded application. (Works with all versions of Visual Studio 2005, including the Express Editions) Download C# Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=20ad0b4c-0c96-4dd9-a024-e764e3196442 Download VB.NET Version http://www.learnvisualstudio.net/Email/Link.ashx?email=9c71611a-dacc-4fad-af 67-9b051736dfc6&link=f577f418-7037-4b52-a17e-9a3567a5d72a Regards, Bob Tabor _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Mon May 7 15:17:35 2007 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 07 May 2007 16:17:35 -0400 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control In-Reply-To: References: Message-ID: <000601c790e4$c0fae5c0$2f01a8c0@Kermit> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From gustav at cactus.dk Mon May 7 17:08:38 2007 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 08 May 2007 00:08:38 +0200 Subject: [dba-VB] Video on multi-threading with BackgroundWorker Control Message-ID: Hi Doris That sounds like two very good examples. /gustav >>> mikedorism at verizon.net 07-05-07 22:17 >>> Thank you for the link, Gustav. I have been using background threads to handle printing reports and distributing emails because it lets my users continue working (especially when they are printing a really big report). Doris Manning Database Administrator Hargrove Inc. From jwcolby at colbyconsulting.com Tue May 8 15:48:11 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 16:48:11 -0400 Subject: [dba-VB] Redeem your voucher Message-ID: <011e01c791b2$32acf370$657aa8c0@m6805> Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Tue May 8 16:17:05 2007 From: ebarro at verizon.net (Eric Barro) Date: Tue, 08 May 2007 14:17:05 -0700 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue May 8 17:16:27 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 08 May 2007 15:16:27 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: <0JHQ00JF6TO5SI22@l-daemon> Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:05:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:05:12 -0400 Subject: [dba-VB] [AccessD] Redeem your voucher In-Reply-To: <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ0068CR4GUVHA@vms046.mailsrvcs.net> Message-ID: <000001c791cd$b85219e0$657aa8c0@m6805> LOL, yea, that's probably it. Though I am normally ranting about SQL Server or Access. I don't know enough about Visual studio to rant about it YET. Maybe they thought if I couldn't redeem my voucher I would never get good enough to rant about it? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, May 08, 2007 5:17 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] [AccessD] Redeem your voucher Well John, maybe the M$ gods have heard your rants and decided to block your IP from their servers. :) FYI...my officemate just got through their site and it accepted *his* voucher! LOL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:06:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:06:23 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <0JHQ00JF6TO5SI22@l-daemon> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> Message-ID: <000101c791cd$e246ea50$657aa8c0@m6805> The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 19:21:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 20:21:17 -0400 Subject: [dba-VB] Interesting for you kung fu masters? Message-ID: <000201c791cf$f7351f20$657aa8c0@m6805> www.sql-server-performance.com/vg_database_comparison_sp.asp John W. Colby Colby Consulting www.ColbyConsulting.com From bheid at sc.rr.com Tue May 8 21:06:33 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 8 May 2007 22:06:33 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <000101c791cd$e246ea50$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon> <000101c791cd$e246ea50$657aa8c0@m6805> Message-ID: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 8 21:51:03 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 8 May 2007 22:51:03 -0400 Subject: [dba-VB] Redeem your voucher In-Reply-To: <006e01c791de$aaad9ba0$2c01a8c0@bhxp> References: <011e01c791b2$32acf370$657aa8c0@m6805> <0JHQ00JF6TO5SI22@l-daemon><000101c791cd$e246ea50$657aa8c0@m6805> <006e01c791de$aaad9ba0$2c01a8c0@bhxp> Message-ID: <000301c791e4$e3413160$657aa8c0@m6805> Yea, I did that. Luckily I already have a copy, with a copy of SQL Server 2005, both of which I picked up at the coming out party. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 08, 2007 10:07 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher I did not have any problems getting mine. You might try emailing someone at VisualStudioUTM at one.microsoft.upgrade.com to see if they might be able to help. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 8:06 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher The user name / PW is grayed out so I can't enter those. All I can do is enter my voucher number. And yea, I tried IE, no help there either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, May 08, 2007 6:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Redeem your voucher Hi John: Possible problems: 1. You are not using an approved browser like Microsoft's Internet Explorer... Come the think of it, it is the only approved browser. 2. Are you accepting cookie? The answer to this question is yes. 3. Are you entering the correct username and password? Remember that both username and password are case sensitive. 4. If you have screwed up 5 times the system will go off into space for a few hours before you are allowed to try again. If you have done everything right and it still doesn't let you in, complain to MS through one of the page emails and you will be sent special instructions/password and be able to retrieve your copy. Been there done it a number of times. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, May 08, 2007 1:48 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Redeem your voucher Well, I watched the two videos, filled out the required feedback report and now I have received my highly coveted voucher for my free* copy of Visual Studio 2005 Standard Edition. *Other than having to pay shipping and handling (which is fine) I also have to get the web page to ACCEPT my voucher (which ain't happening). The old endless loop, comes right back to the same page and asks for the voucher again. I even tried using MS POS Explorer to no avail. I wonder if anyone at MS has noticed that no one is redeeming their vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. Sigh. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 16:08:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:08:07 -0400 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <007601c7927e$248a5a90$657aa8c0@m6805> I am looking at how to do in VB.Net what in VBA would be str = trim(mid(str,intStartPos, intLen)) I can do this (I think) in two steps using: private mstr as string mstr = lstrRecord.SubString(intStartPos,intWidth) mstr = mstr.Trim(mstr.ToCharArray) Given what I know about VB.Net (not very darned much) is this the best way? I see where the string builder can do the substring part but it does not have a trim method. John W. Colby Colby Consulting www.ColbyConsulting.com From chizotz at mchsi.com Wed May 9 16:23:53 2007 From: chizotz at mchsi.com (Ron Allen) Date: Wed, 09 May 2007 21:23:53 +0000 Subject: [dba-VB] VB.Net - cut and trim Message-ID: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does not > have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ebarro at verizon.net Wed May 9 16:36:36 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 09 May 2007 14:36:36 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM From jwcolby at colbyconsulting.com Wed May 9 16:46:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:46:10 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <0JHS002GKMP1E9U9@vms040.mailsrvcs.net> Message-ID: <007b01c79283$75b70c10$657aa8c0@m6805> Done. Thanks guys. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, May 09, 2007 5:37 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It would be the same syntax in VB.NET except you lose the ; at the end. :) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Wednesday, May 09, 2007 2:24 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim John, In C#, you can do this in one line, no need to use the stringbuilder class: output = recordValue.Substring(startPosition, resultWidth).Trim(); If the recordValue = "abcdefghijklmnop", startPosition = 5, and resultWidth = 6, output would be "fghijk". Ron > I am looking at how to do in VB.Net what in VBA would be str = > trim(mid(str,intStartPos, intLen)) > > I can do this (I think) in two steps using: > > private mstr as string > mstr = lstrRecord.SubString(intStartPos,intWidth) > mstr = mstr.Trim(mstr.ToCharArray) > > Given what I know about VB.Net (not very darned much) is this the best way? > I see where the string builder can do the substring part but it does > not have a trim method. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Wed May 9 16:48:30 2007 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 9 May 2007 14:48:30 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = > 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the best > way? > > I see where the string builder can do the substring part but it does not > > have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed May 9 16:57:51 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 17:57:51 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com> <8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> Message-ID: <007d01c79285$174d0e20$657aa8c0@m6805> It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 17:20:12 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 15:20:12 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: <007d01c79285$174d0e20$657aa8c0@m6805> References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com> <007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 9 18:20:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 May 2007 16:20:32 -0700 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 3:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim Pretty much. That's one of the nice things about the .Net environment. And don't forget things like Split and Replace, which also exist in .Net for your listening pleasure. LOL Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, May 09, 2007 5:48 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim On 5/9/07, Ron Allen wrote: > > John, > > In C#, you can do this in one line, no need to use the stringbuilder > class: > > output = recordValue.Substring(startPosition, resultWidth).Trim(); > > If the recordValue = "abcdefghijklmnop", startPosition = 5, and > resultWidth = 6, output would be "fghijk". > > Ron Well according to http://www.carlosag.net/Tools/CodeTranslator/Default.aspx they translate it as such for VB: output = recordValue.Substring(startPosition, resultWidth).Trim > I am looking at how to do in VB.Net what in VBA would be str = > > trim(mid(str,intStartPos, intLen)) > > > > I can do this (I think) in two steps using: > > > > private mstr as string > > mstr = lstrRecord.SubString(intStartPos,intWidth) > > mstr = mstr.Trim(mstr.ToCharArray) > > > > Given what I know about VB.Net (not very darned much) is this the > > best > way? > > I see where the string builder can do the substring part but it does > > not have a trim method. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 9 20:16:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 9 May 2007 21:16:44 -0400 Subject: [dba-VB] VB.Net - cut and trim In-Reply-To: References: <050920072123.16353.46423BE8000DB57800003FE1219791299503010CD2079C080C03BF969B019607080C@mchsi.com><8786a4c00705091448o4cad622by3a71536ce6a9ab94@mail.gmail.com><007d01c79285$174d0e20$657aa8c0@m6805> Message-ID: <000801c792a0$e0be50a0$657aa8c0@m6805> OK, I understand. I always thought of the methods as just returning a value, but in .Net even variables are objects which have methods. Makes perfect sense. Thanks for stating it that way though, else I would have spent the next few years with a complete misconception of what was really happening. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 09, 2007 7:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim You aren't exactly stacking methods, John, more like stacking objects. Each method involved is returning an object and that object shares in the methods of its class. So if you use substring, the result is a string object, and you then call the trim method of that object. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, May 09, 2007 2:58 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - cut and trim It is interesting that you can stack methods like that. Substring and trim are both methods of the string object. This implies that the methods are processed left to right and the result of the left is passed into the right. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu May 10 07:02:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 10 May 2007 08:02:24 -0400 Subject: [dba-VB] VB.Net - XML comments Message-ID: <000d01c792fb$1743bbb0$657aa8c0@m6805> I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Thu May 10 08:11:52 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 10 May 2007 06:11:52 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 10 08:46:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 May 2007 09:46:53 -0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHT00080TZNNB51@vms044.mailsrvcs.net> Message-ID: <20070510134705.51A7CBC95@smtp-auth.no-ip.com> No, I meant what application will reach into these files and generate a documentation book using the xml comments. That is the purpose of these xml tags, to create a document. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, May 10, 2007 9:12 AM To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: Re: [dba-VB] VB.Net - XML comments Did you mean to say "how do I strip the XML tags and end up with just the content"? You can use regular expressions to strip off XML or HTML tags. This is the syntax I use (for VB.NET or C#)... NewTextValue.Text = Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 5:02 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From chizotz at mchsi.com Thu May 10 10:43:35 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 15:43:35 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071543.26026.46433DA6000C264F000065AA219791336303010CD2079C080C03BF969B019607080C@mchsi.com> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Thu May 10 11:07:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 May 2007 18:07:22 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron I don't see that menu item. How is it added? /gustav >>> chizotz at mchsi.com 10-05-2007 17:43 >>> John, Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the help files... I think that may be what you're looking for. Ron > No, I meant what application will reach into these files and generate a > documentation book using the xml comments. That is the purpose of these xml > tags, to create a document. > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Thursday, May 10, 2007 9:12 AM > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > solving' > Subject: Re: [dba-VB] VB.Net - XML comments > > > Did you mean to say "how do I strip the XML tags and end up with just the > content"? > > You can use regular expressions to strip off XML or HTML tags. This is the > syntax I use (for VB.NET or C#)... > > NewTextValue.Text = > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, May 10, 2007 5:02 AM > To: 'Access Developers discussion and problem solving'; > dba-vb at databaseadvisors.com > Subject: [dba-VB] VB.Net - XML comments > > I am using xml comments in place of my regular old comments. Has anyone > ever found / used something that yanks the comments out to see what they > look like as documentation? What would I use to do that? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From chizotz at mchsi.com Thu May 10 12:54:52 2007 From: chizotz at mchsi.com (Ron Allen) Date: Thu, 10 May 2007 17:54:52 +0000 Subject: [dba-VB] VB.Net - XML comments Message-ID: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the > help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and generate a > > documentation book using the xml comments. That is the purpose of these xml > > tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem > > solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with just the > > content"? > > > > You can use regular expressions to strip off XML or HTML tags. This is the > > syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has anyone > > ever found / used something that yanks the comments out to see what they > > look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From martyconnelly at shaw.ca Thu May 10 13:05:14 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 11:05:14 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: References: Message-ID: <46435EDA.8040004@shaw.ca> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Thu May 10 13:03:07 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 10 May 2007 11:03:07 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> References: <051020071754.4766.46435C6B000E48960000129E219791336303010CD2079C080C03BF969B019607080C@mchsi.com> Message-ID: I just found a comment that the feature was removed from 2005. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=106905&SiteId=1 for some more information. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Thursday, May 10, 2007 10:55 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Gustav, Must be an option at install... or maybe it's changed name/location if you're using VS 2005, I'm still on 2003 and probably will be for some time yet. The short answer is, I'm not sure; I don't have access to the install disks here and don't do my own installs. Ron > Hi Ron > > I don't see that menu item. How is it added? > > /gustav > > >>> chizotz at mchsi.com 10-05-2007 17:43 >>> > John, > > Take a look at "Build Comment Web Pages" on the Tools menu in VS and > in the help files... I think that may be what you're looking for. > > Ron > > > > No, I meant what application will reach into these files and > > generate a documentation book using the xml comments. That is the > > purpose of these xml tags, to create a document. > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > > Sent: Thursday, May 10, 2007 9:12 AM > > To: dba-vb at databaseadvisors.com; 'Access Developers discussion and > > problem solving' > > Subject: Re: [dba-VB] VB.Net - XML comments > > > > > > Did you mean to say "how do I strip the XML tags and end up with > > just the content"? > > > > You can use regular expressions to strip off XML or HTML tags. This > > is the syntax I use (for VB.NET or C#)... > > > > NewTextValue.Text = > > Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, May 10, 2007 5:02 AM > > To: 'Access Developers discussion and problem solving'; > > dba-vb at databaseadvisors.com > > Subject: [dba-VB] VB.Net - XML comments > > > > I am using xml comments in place of my regular old comments. Has > > anyone ever found / used something that yanks the comments out to > > see what they look like as documentation? What would I use to do that? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Thu May 10 16:44:37 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 01:44:37 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000d01c792fb$1743bbb0$657aa8c0@m6805> Message-ID: <002001c7934c$68575560$6401a8c0@nant> Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Thu May 10 17:32:02 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 May 2007 15:32:02 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <0JHU0090KJPVIVQ0@l-daemon> Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Thu May 10 17:42:08 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 00:42:08 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Ron and Marty It's VS2005 Standard. /gustav >>> martyconnelly at shaw.ca 10-05-07 20:05 >>> You may have to do with VS Studio Team etc. rather than a simple version of VB.Net Express Gustav Brock wrote: >Hi Ron > >I don't see that menu item. How is it added? > >/gustav > > > >>>>chizotz at mchsi.com 10-05-2007 17:43 >>> >>>> >>>> >John, > >Take a look at "Build Comment Web Pages" on the Tools menu in VS and in the >help files... I think that may be what you're looking for. > >Ron > > > > >>No, I meant what application will reach into these files and generate a >>documentation book using the xml comments. That is the purpose of these xml >>tags, to create a document. >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro >>Sent: Thursday, May 10, 2007 9:12 AM >>To: dba-vb at databaseadvisors.com; 'Access Developers discussion and problem >>solving' >>Subject: Re: [dba-VB] VB.Net - XML comments >> >> >>Did you mean to say "how do I strip the XML tags and end up with just the >>content"? >> >>You can use regular expressions to strip off XML or HTML tags. This is the >>syntax I use (for VB.NET or C#)... >> >>NewTextValue.Text = >>Regex.Replace(OriginalTextValue,@"<(.|\n)*?>",string.Empty); >> >>-----Original Message----- >>From: dba-vb-bounces at databaseadvisors.com >>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >>Sent: Thursday, May 10, 2007 5:02 AM >>To: 'Access Developers discussion and problem solving'; >>dba-vb at databaseadvisors.com >>Subject: [dba-VB] VB.Net - XML comments >> >>I am using xml comments in place of my regular old comments. Has anyone >>ever found / used something that yanks the comments out to see what they >>look like as documentation? What would I use to do that? >> >> > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 10 19:19:47 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 May 2007 17:19:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <002001c7934c$68575560$6401a8c0@nant> References: <002001c7934c$68575560$6401a8c0@nant> Message-ID: <4643B6A3.1040604@shaw.ca> Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Fri May 11 06:08:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:08:07 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <0JHU0090KJPVIVQ0@l-daemon> Message-ID: <000c01c793bc$a7f0cf60$6401a8c0@nant> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at users.mns.ru Fri May 11 06:40:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 11 May 2007 15:40:59 +0400 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <4643B6A3.1040604@shaw.ca> Message-ID: <001f01c793c1$3f3927b0$6401a8c0@nant> Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 07:29:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 14:29:26 +0200 Subject: [dba-VB] VB.Net - XML comments Message-ID: Hi Shamil et al XAML (Avalon) is perhaps the most interesting part: Consistent presentation model by using XAML, the declarative presentation language used in Windows Vista*based applications. Controls, visual designs, media, and other elements can be presented with full design fidelity in both Silverlight and Windows*based applications. /gustav >>> shamil at users.mns.ru 11-05-2007 13:08 >>> Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Fri May 11 09:46:47 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 07:46:47 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <000c01c793bc$a7f0cf60$6401a8c0@nant> Message-ID: <0JHV004BTSUEX2F2@l-daemon> Hi Shamil: Had not heard of the product yet but will check it out. It will have to go a long way to match the market penetration that FLASH currently has but I am sure it will default with IE. Have a good weekend Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Jim, <<< but decided it would be safer to stick the industry standard product. >>> What the industry standard product do you mean? Have you heard about MS SilverLight? http://www.microsoft.com/silverlight/default01.aspx It's Flash "killer". It works under FireFox and Safari from the first version as far as I have heard. It should work also under Mono on Linux in not that far future. <<< The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent >>> Well, becoming NDoc expert took one hour here :) I mean it's really easy to use it. But I will definitely switch to SandCastle when/if needed - I will switch because NDoc is "dead" now... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, May 11, 2007 2:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi Shamil: It is the sad commentary on enterprises who have directly challenged or in the case of ndoc was just in the path of Microsoft. The Sand Castle might relate to MS's sand-box secure technology. Also see the interesting comments, at the bottom of the page, relating to the open-source community. I am in the process of replacing the code from a web-site created in SWiSH, a Marcomedia/Adobe Flash competitor as the latest offering from FireFox and Internet Explorer deem the product insecure and now many of its functions are failing. The client could have bought me the latest version of the SWiSH product but decided it would be safer to stick the industry standard product. The final point is that it would be pointless to become an expert at the ndoc product as Sand Castle seems to be the heir-apparent. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, May 10, 2007 2:45 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Hi John, I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked great. But then MS came with NDoc competitor - SandCastle - and NDoc "died": http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html I haven't yet used SandCastle (BTW, very strange name for software - do they (MS) mean it's so bad or sandcastles in Western culture is an allegory of something flexible, easy tunable, extendable...? http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE- A715-696E3A4873B2&displaylang=en NDoc I hope should work with VS2005 too. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, May 10, 2007 4:02 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - XML comments I am using xml comments in place of my regular old comments. Has anyone ever found / used something that yanks the comments out to see what they look like as documentation? What would I use to do that? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fhtapia at gmail.com Fri May 11 10:56:02 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 11 May 2007 08:56:02 -0700 Subject: [dba-VB] Redeem your voucher In-Reply-To: <011e01c791b2$32acf370$657aa8c0@m6805> References: <011e01c791b2$32acf370$657aa8c0@m6805> Message-ID: heheheh... ...}:-> oops did I say that out-loud? what browser are you using... On 5/8/07, JWColby wrote: > > Well, I watched the two videos, filled out the required feedback report > and > now I have received my highly coveted voucher for my free* copy of Visual > Studio 2005 Standard Edition. > > *Other than having to pay shipping and handling (which is fine) I also > have > to get the web page to ACCEPT my voucher (which ain't happening). The old > endless loop, comes right back to the same page and asks for the voucher > again. I even tried using MS POS Explorer to no avail. > > I wonder if anyone at MS has noticed that no one is redeeming their > vouchers. I wonder if anyone at MS is ASSIGNED to notice such things. > > Sigh. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From accessd at shaw.ca Fri May 11 11:09:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 May 2007 09:09:31 -0700 Subject: [dba-VB] VB.Net - XML comments In-Reply-To: <001f01c793c1$3f3927b0$6401a8c0@nant> Message-ID: <0JHV006MLWO9L4Z2@l-daemon> And of course the Open-Source community is in the running: http://news.com.com/8301-10784_3-9714669-7.html Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, May 11, 2007 4:41 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Well, they seems to be extending their naming habits geography now - the next operating systems are currently codenamed MS Windows Fiji and MS Windows Vienna - http://www.dnzone.com/ShowDetail.asp?NewsId=2669 So they seem to be "traveling" around the Globe from: Seattle (ski resorts) -> Pacific -> Fiji -> Vienna -> ... What will be the next: MS Windows Canary (Islands) or MS Windows Greenland ? "Inventing" jokes here on Friday afternoon... :) -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, May 11, 2007 4:20 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - XML comments Microsoft gets into it's naming conventions on odd runs, at one point it was Ski Resorts and Ski Runs within driving distance of Seattle like Whistler. Shamil Salakhetdinov wrote: >Hi John, > >I used NDOc with VS.NET 2003 (http://ndoc.sourceforge.net/) - that worked >great. > >But then MS came with NDoc competitor - SandCastle - and NDoc "died": >http://smccormack.blogs.com/adapdev/2006/08/thoughts_on_the.html > >I haven't yet used SandCastle (BTW, very strange name for software - do they >(MS) mean it's so bad or sandcastles in Western culture is an allegory of >something flexible, easy tunable, extendable...? > >http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE - >A715-696E3A4873B2&displaylang=en > >NDoc I hope should work with VS2005 too. > >-- >Shamil > > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Thursday, May 10, 2007 4:02 PM >To: 'Access Developers discussion and problem solving'; >dba-vb at databaseadvisors.com >Subject: [dba-VB] VB.Net - XML comments > >I am using xml comments in place of my regular old comments. Has anyone >ever found / used something that yanks the comments out to see what they >look like as documentation? What would I use to do that? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 11 11:22:18 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 May 2007 18:22:18 +0200 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Message-ID: Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav From cfoust at infostatsystems.com Fri May 11 11:26:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 09:26:24 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: References: Message-ID: Yep, we keep our VS up to date. I think it took all morning to install that thing, and we had it on DVD! Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4 C96-B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at verizon.net Fri May 11 11:29:13 2007 From: ebarro at verizon.net (Eric Barro) Date: Fri, 11 May 2007 09:29:13 -0700 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: Message-ID: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 11:56:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 12:56:56 -0400 Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) In-Reply-To: <0JHV00M4RXSPFKK8@vms046.mailsrvcs.net> Message-ID: <20070511165656.11640BCB4@smtp-auth.no-ip.com> >And when they reach SP4 it's time to come out with a new version (of the bugs). ROTFL. So true. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Friday, May 11, 2007 12:29 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VS2005 Service Pack 1 (not for Express) No surprises there...M$ products usually go all the way to SP4. And when they reach SP4 it's time to come out with a new version (of the bugs). -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 11, 2007 9:22 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VS2005 Service Pack 1 (not for Express) Hi all Did you know that a SP1 exists: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96- B39D-37BAF6B5B1DC&displaylang=en I thought I had checked for updates, but by accident I browsed to that page. It is not for the Express versions. It takes "forever" to install ... /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 16:46:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 17:46:04 -0400 Subject: [dba-VB] Clearing the debug window before writing to it Message-ID: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 11 16:49:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 May 2007 14:49:45 -0700 Subject: [dba-VB] Clearing the debug window before writing to it In-Reply-To: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> References: <20070511214603.DEA2DBC73@smtp-auth.no-ip.com> Message-ID: I don't bother. When I need to use it, I just right click and clear all. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 11, 2007 2:46 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] Clearing the debug window before writing to it When my program runs, hundreds of lines of junk writes to the debug window. I would like to clear all that stuff programmatically before my first debug.print statement. Anyone know how to do that? I can do it from the right click menu in that window. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 11 21:19:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 May 2007 22:19:36 -0400 Subject: [dba-VB] VB.Net - Raw data file transform Message-ID: <20070512021936.5A940BDA4@smtp-auth.no-ip.com> Well guys, I have ported the application that transformed my raw data into a pipe delimited "csv" file - from VBA in Access to VB.NET. Preliminary results VERY crudely timed show about 10K records / second, up from about 1K records / second in VBA. I really need to find a timer class for timing code in order to get precise timings on this. As it stands now however, it looks like without any further optimizations, my raw data transform would be the bottleneck, running at 9.7K records / sec, with the SQL Server BULK INSERT running at 15K records / second. If I can get these two processes running in threads so that they process independently, I am now in a position to go pushbutton and import a 100 million record file in ~10K seconds / 166.6 minutes / 2.7 hours. Given that I will soon have the pieces to run unattended this is an acceptable rate for me. This process took days of handholding manual labor to make happen (learning stuff all the way of course) Thanks to all who have helped my in getting the ADO happening out in VB.Net, as well as the Sproc happening in SQL Server. I still have a long way to go to get a complete app in VB.Net and SQL Server. The piece I just ported does the open / parse / strip / write to move the raw fixed width file to pipe delimited. Phase 2 begins immediately. The next piece will automate running the BULK INSERT Sproc from VB.Net, given a set of pipe delimited csv files in a directory and an existing destination table in SQL Server. Once that piece is running, I will need to learn how to run each piece in a separate thread. When both pieces are running simultaneously, I will need to reassess the speed of each piece. I am using a dual proc AMD XP 3800 with 4 gb RAM so hopefully each thread will run on a different proc, though I don't know that. From the little I know I assume there is a way to set the processor affinity of a thread. So much to learn, so little time. But this is just an awesome start and I am happy with the speed gain of the transform process achieved by moving to VB.Net. Again thanks to all who contributed. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:09:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:09:46 -0400 Subject: [dba-VB] VB.Net - seeing the messagebox Message-ID: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat May 12 08:40:12 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 May 2007 09:40:12 -0400 Subject: [dba-VB] VB.Net - Progress Bars Message-ID: <20070512134012.472BABCCA@smtp-auth.no-ip.com> I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Sat May 12 09:33:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 12 May 2007 18:33:01 +0400 Subject: [dba-VB] VB.Net - Progress Bars In-Reply-To: <20070512134012.472BABCCA@smtp-auth.no-ip.com> Message-ID: <000201c794a2$9a8a34b0$6401a8c0@nant> John, I think you'd better currently use custom events as you do in VBA using WithEvents. You can even do more "tricks": VB.NET (.NET Framework) generalizes this idea of custom events and their sinking - read about the concept of delegates and how to handle them. If you're thinking about making your program multi-threaded then you will have to solve some more complicated issues related to the fact that the calls from worker threads can't in general case result in form's properties or form controls' properties updates, IOW an event raised in a worker thread can't/shouldn't be processed by the main thread running the form... Here is where delegates can sole the issue or BackgroundWorker component (http://www.codeguru.com/columns/vb/article.php/c10755/ )... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:40 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Progress Bars I need two progress bars, one for displaying the files I am processing, and one for displaying the progress processing records inside of a file. My question involves where to display this progress and how to feed the individual bars. The progress info is coming from two different classes, neither of which is the form class. Would I raise events and have those events sunk clear back on the form class, or would I pass in references to the progress controls to the classes, or would I make public variables which hold pointers to the progress bars and allow each class to update it's own progress bar? How do you guys do this? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 14 10:05:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 May 2007 08:05:09 -0700 Subject: [dba-VB] VB.Net - seeing the messagebox In-Reply-To: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> References: <20070512130945.B9971BBF0@smtp-auth.no-ip.com> Message-ID: John, When we put timers in, we generally show the result in the status bar at the bottom of the main form window. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 6:10 AM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 14 23:29:20 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 00:29:20 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread Message-ID: <20070515042921.87A07BE97@smtp-auth.no-ip.com> I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From shamil at users.mns.ru Tue May 15 05:58:44 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 14:58:44 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070514211654.ACBB8BD9F@smtp-auth.no-ip.com> Message-ID: <000001c796e0$01736950$6401a8c0@nant> Hello John, Have a look at this article: http://www.codeproject.com/tools/windowspy.asp?df=100&forumid=152014&exp=0&s elect=1363031 What you need is a SetWindowPos WinApi call with WS_EX_TOPMOST parameter. You can find more info on google using SetWindowPos WS_EX_TOPMOST as search criteria... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 1:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Well... Yea, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 4:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, IOW you wanted to have a message box/form "flying" on top of all the other windows but not blocking nor your VB.NET application nor other processes? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 14, 2007 11:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox Shamil, Nope, I didn't try that. It doesn't sound like something I want to do either. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, May 14, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox John, Did you try to use MsgBoxStyle.SystemModal ? (Be careful it stops all the running processes as it's written in docs): Dim msg As String Dim title As String Dim style As MsgBoxStyle Dim response As MsgBoxResult msg = "Do you want to continue?" ' Define message. style = MsgBoxStyle.DefaultButton2 Or _ MsgBoxStyle.Critical Or _ MsgBoxStyle.YesNo Or _ MsgBoxStyle.SystemModal title = "MsgBox Demonstration" ' Define title. ' Display message. response = MsgBox(msg, style, title) If response = MsgBoxResult.Yes Then ' User chose Yes. ' Perform some action. Else ' Perform some other action. End If -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, May 12, 2007 5:10 PM To: 'Access Developers discussion and problem solving'; dba-vb at databaseadvisors.com Subject: [AccessD] VB.Net - seeing the messagebox When I run my program, the form immediately pops up, I click a button and the program starts processing files. I added a messagebox.show to inform me when each file finishes (I was timing with a stopwatch) but that message box does not pop up over the top of everything else. The program has stopped and the message is up, but behind everything else and I do not see it unless I click the form icon in the tool bar. It doesn't even cause the tool bar icon for the form to change color or flash. Is there a way to make it do so (somehow notify me)? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue May 15 07:23:07 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 15 May 2007 16:23:07 +0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515111543.6D5DABDDA@smtp-auth.no-ip.com> Message-ID: <000901c796eb$cbe51f20$6401a8c0@nant> <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue May 15 07:35:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 15 May 2007 08:35:49 -0400 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <000901c796eb$cbe51f20$6401a8c0@nant> Message-ID: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Shamil, I understand that they still exist, however everything I have read says that .NET is trying to wrap them and present them as properties of .NET objects, thus allowing you to avoid having to make such API calls directly. Obviously everything hasn't been wrapped yet. Thanks for the references. I am adding them to my browser bookmarks. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, May 15, 2007 8:23 AM To: 'Access-D - VB' Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox <<< They are all about avoiding programming to API calls. >>> John, I'd think that WinAPI calls are forever because they drive MS Windows internally and there is no any signs this will change any time soon... Have a look at: http://www.pinvoke.net/ and http://www.pinvoke.net/default.aspx/user32.SetWindowPos -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 3:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VB.Net - seeing the messagebox I have to wonder if .NET doesn't have this built-in somehow. They are all about avoiding programming to API calls. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox If the MB isn't working, how about displaying a custom form and setting it's z-order to "TOPMOST" with the SetWindowPos API call. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue May 15 07:56:48 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 May 2007 22:56:48 +1000 Subject: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox In-Reply-To: <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> References: <000901c796eb$cbe51f20$6401a8c0@nant>, <20070515123554.7F34DBD3D@smtp-auth.no-ip.com> Message-ID: <4649AE10.10214.1D1BA1AD@stuart.lexacorp.com.pg> Just found the .Net 2.0 version: http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.topmost(VS.80).aspx On 15 May 2007 at 8:35, jwcolby wrote: > Shamil, > > I understand that they still exist, however everything I have read says that > .NET is trying to wrap them and present them as properties of .NET objects, > thus allowing you to avoid having to make such API calls directly. Obviously > everything hasn't been wrapped yet. > > Thanks for the references. I am adding them to my browser bookmarks. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Tuesday, May 15, 2007 8:23 AM > To: 'Access-D - VB' > Subject: Re: [dba-VB] [AccessD-VB] VB.Net - seeing the messagebox > > <<< > They are all about avoiding programming to API calls. > >>> > John, > > I'd think that WinAPI calls are forever because they drive MS Windows > internally and there is no any signs this will change any time soon... > > Have a look at: > > http://www.pinvoke.net/ and > > http://www.pinvoke.net/default.aspx/user32.SetWindowPos > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 15, 2007 3:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VB.Net - seeing the messagebox > > I have to wonder if .NET doesn't have this built-in somehow. They are all > about avoiding programming to API calls. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Tuesday, May 15, 2007 3:17 AM To: Access Developers discussion and > problem solving Subject: Re: [AccessD] VB.Net - seeing the messagebox > > If the MB isn't working, how about displaying a custom form and setting > it's z-order to "TOPMOST" with the SetWindowPos API call. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From James at fcidms.com Tue May 15 08:52:19 2007 From: James at fcidms.com (James Barash) Date: Tue, 15 May 2007 09:52:19 -0400 Subject: [dba-VB] VB.Net moving to a background worker thread In-Reply-To: <20070515042921.87A07BE97@smtp-auth.no-ip.com> Message-ID: <009601c796f8$44d16d60$800101df@fci.local> John: If you have the time here is a fairly thorough discussion of threading in VB.net with a set of classes (I know you like those) to facilitate exactly the type of threading you are trying to do. By the way, codeproject.com is an excellent resource for code samples for just about everything related to .Net. http://www.codeproject.com/vb/net/VBthreadingwrapper.asp If you want the quick and dirty approach: http://msdn2.microsoft.com/en-us/library/ywkkz4s1(VS.80).aspx Good luck. James Barash -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 15, 2007 12:29 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net moving to a background worker thread I am using a clsProcessRawFiles that is the base unit for the transform process I wrote. Essentially it reads a directory to get a list of files to process, then opens a file, reads a line, transforms the line, and writes the line back out. The original method I used to do this was to dim the class and then call a method of the class to start the process of reading the files. The method call was in the click of a button. clsProcessRawFiles raises three events: evFilesToProcess (intFileCnt as integer). This event is fired after the method that reads the directory determines the file count, and allows the interface to set the total units for the main file progress bar. evCurrentFile (strFileName as string). This event allows the interface to display the file name being processed evFileComplete(intCnt as integer). This event essentially tells the main form how many files have been processed. As you can see, all of the file work is done in the method of the clsProcessRawFiles and progress events fire to allow the form to display the progress. I also have a cancel button that feeds a Boolean property of the class to allow the for loop processing the files to exit the loop if the cancel property is set. Mow... How do I move to using a worker thread? The events of course require the main form's thread to do the work of updating the various graphic elements that display progress - a progress bar and a text box for the file name. I assume that this is illegal if the class that is processing the files is on a worker thread? I want a thread to run the clsProcessRawFiles.mProcessFile method so that control is returned to the main form interface and the worker thread handles all of the file stuff. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 17 15:41:49 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 May 2007 16:41:49 -0400 Subject: [dba-VB] Visual Studio Projects Location Message-ID: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Thu May 17 15:50:28 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 May 2007 13:50:28 -0700 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: We use SourceSafe, so I can't recommend another source control system. We never put our projects in My Documents because of the obvious problems with that. What we do is create a directory for each solution being developed on our local drives (you could use a server too) and within that structure, we create folders for our various projects that are components of the solution. There's no magic about My Documents (except maybe how to make installers stop defaulting to that!!). I can use VPN to log into my office machine over the internet and work on the stuff if I need to. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 1:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu May 17 16:21:34 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 17 May 2007 17:21:34 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: <001f01c798c9$5cbbabc0$2f01a8c0@Kermit> We have been using Subversion for about a year now. I don't know what is involved in setting it up but I do know that it is free open source product. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, May 17, 2007 4:42 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Visual Studio Projects Location Is it possible to have a common location for Visual Studios projects, and access them from any computer, without issues? I have a couple of servers with Raid 6 volumes that would make a nice safe location for my programming stuff. With my laptop dying I had to move the stuff off of the laptop over to one of the servers, but the default location is in My Documents / Visual Studio 2005 / Projects which is not on one of the RAID drives, and is not shared or otherwise visible from another location. On another note, I assume that Visual Studio Standard does not have Visual Source Safe? Is anyone else using a cheap / free source control system that they recommend? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at gmail.com Thu May 17 18:48:16 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 17 May 2007 19:48:16 -0400 Subject: [dba-VB] Visual Studio Projects Location In-Reply-To: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> References: <20070517204147.5AA24BEE3@smtp-auth.no-ip.com> Message-ID: On 5/17/07, jwcolby wrote: > On another note, I assume that Visual Studio Standard does not have Visual > Source Safe? Is anyone else using a cheap / free source control system that > they recommend? CVS (Concurrent Version System) and Subversion are the 2 most popular. Both are Free Open Source and should be able to handle .net files although there may not be a plugin to allow access directly from the vs.net interface. That you'll have to investigate. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Fri May 18 08:34:15 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 09:34:15 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing Message-ID: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> I just thought you might be interested in some numbers, transferring a large file from system to system on a network. Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. Both systems run Comodo personal firewall (software firewall) with specific rules allowing transfers from/to any other computer within my internal network. Both systems use an Areca 1220 dedicated RAID controller, and both systems use Seagate 7200.10 drives in the arrays. The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit switch between the systems. I am transferring a 120 gbyte SQL Server database file (dbf). When the transfer started it "settled down" after a couple of seconds saying it would take 48 minutes to transfer the file, which indicates about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read speed to be about 450 mbyte / sec for these arrays, so that is most likely the write speed of the Raid5 destination array. Write speed for these arrays is just slightly worse than the write speed of any single disk. Using task manager to simply view the network usage, the network seems to be using about 40% capacity on average. Again, using task manager, the CPU usage for the two cores shows core one swinging between 0 and 40%with a rough average around 20%. Core two is swinging between 60% and 80%. When the work is steady (and there are places where both cores, but particularly core 2 varies wildly), the "average" is reported as around 40%, as displayed in the CPU Usage. All of this usage being on the transmitting system. The task reporting most usage time is system idle, then explorer. System two (the receiving system) shows almost no Core 1 usage and Core 2 swinging wildly, but again averaging around 40% or so usage, both cores combined, per the CPU Usage display. John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Fri May 18 18:26:35 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 16:26:35 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> References: <20070518133413.A28F8BF0A@smtp-auth.no-ip.com> Message-ID: you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large > file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific > rules allowing transfers from/to any other computer within my internal > network. Both systems use an Areca 1220 dedicated RAID controller, and > both > systems use Seagate 7200.10 drives in the arrays. The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch > between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When the > transfer started it "settled down" after a couple of seconds saying it > would > take 48 minutes to transfer the file, which indicates about 2.5 gigabytes > / > minute, 42 mb / second. Testing has shown the read speed to be about 450 > mbyte / sec for these arrays, so that is most likely the write speed of > the > Raid5 destination array. Write speed for these arrays is just slightly > worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems to > be > using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core one > swinging between 0 and 40%with a rough average around 20%. Core two is > swinging between 60% and 80%. When the work is steady (and there are > places > where both cores, but particularly core 2 varies wildly), the "average" is > reported as around 40%, as displayed in the CPU Usage. All of this usage > being on the transmitting system. The task reporting most usage time is > system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and Core 2 > swinging wildly, but again averaging around 40% or so usage, both cores > combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Fri May 18 20:34:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 21:34:13 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: Message-ID: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> I think you have to use something. It works for me and I have so many systems that I have to standardize on something. I have had as many as three different software firewalls running on various machines at the same time and it is just a mess. Comodo is easy to get working, free (FOREVER according to their website;) and appears to do a good job. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing you sure love your comodo :) On 5/18/07, jwcolby wrote: > > I just thought you might be interested in some numbers, transferring a > large file from system to system on a network. > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > Both systems run Comodo personal firewall (software firewall) with > specific rules allowing transfers from/to any other computer within my > internal network. Both systems use an Areca 1220 dedicated RAID > controller, and both systems use Seagate 7200.10 drives in the arrays. > The "From" system has a > Raid6 Array, the "To" system has a Raid 5 array. There is a gigabit > switch between the systems. > > I am transferring a 120 gbyte SQL Server database file (dbf). When > the transfer started it "settled down" after a couple of seconds > saying it would take 48 minutes to transfer the file, which indicates > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the > read speed to be about 450 mbyte / sec for these arrays, so that is > most likely the write speed of the > Raid5 destination array. Write speed for these arrays is just > slightly worse than the write speed of any single disk. > > Using task manager to simply view the network usage, the network seems > to be using about 40% capacity on average. > > Again, using task manager, the CPU usage for the two cores shows core > one swinging between 0 and 40%with a rough average around 20%. Core > two is swinging between 60% and 80%. When the work is steady (and > there are places where both cores, but particularly core 2 varies > wildly), the "average" is reported as around 40%, as displayed in the > CPU Usage. All of this usage being on the transmitting system. The > task reporting most usage time is system idle, then explorer. > > System two (the receiving system) shows almost no Core 1 usage and > Core 2 swinging wildly, but again averaging around 40% or so usage, > both cores combined, per the CPU Usage display. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 18 22:08:30 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 13:08:30 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519013411.E3E61BC74@smtp-auth.no-ip.com> References: , <20070519013411.E3E61BC74@smtp-auth.no-ip.com> Message-ID: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many as > three different software firewalls running on various machines at the same > time and it is just a mess. Comodo is easy to get working, free (FOREVER > according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > > > On 5/18/07, jwcolby wrote: > > > > I just thought you might be interested in some numbers, transferring a > > large file from system to system on a network. > > > > Two identical computers, 3.8g X2 AMD proc systems, running Windows 2003. > > Both systems run Comodo personal firewall (software firewall) with > > specific rules allowing transfers from/to any other computer within my > > internal network. Both systems use an Areca 1220 dedicated RAID > > controller, and both systems use Seagate 7200.10 drives in the arrays. > > The "From" system has a Raid6 Array, the "To" system has a Raid 5 array. > > There is a gigabit switch between the systems. > > > > I am transferring a 120 gbyte SQL Server database file (dbf). When > > the transfer started it "settled down" after a couple of seconds > > saying it would take 48 minutes to transfer the file, which indicates > > about 2.5 gigabytes / minute, 42 mb / second. Testing has shown the read > > speed to be about 450 mbyte / sec for these arrays, so that is most likely > > the write speed of the Raid5 destination array. Write speed for these > > arrays is just slightly worse than the write speed of any single disk. > > > > Using task manager to simply view the network usage, the network seems to > > be using about 40% capacity on average. > > > > Again, using task manager, the CPU usage for the two cores shows core one > > swinging between 0 and 40%with a rough average around 20%. Core two is > > swinging between 60% and 80%. When the work is steady (and there are > > places where both cores, but particularly core 2 varies wildly), the > > "average" is reported as around 40%, as displayed in the CPU Usage. All > > of this usage being on the transmitting system. The task reporting most > > usage time is system idle, then explorer. > > > > System two (the receiving system) shows almost no Core 1 usage and > > Core 2 swinging wildly, but again averaging around 40% or so usage, > > both cores combined, per the CPU Usage display. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Fri May 18 22:32:46 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 18 May 2007 23:32:46 -0400 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> Message-ID: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> And it appears to work well... http://www.pcworld.idg.com.au/index.php/id;159719021 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 18, 2007 11:09 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OT: FYI-System Transfer timing And it runs on Server OSs, unlike Sunbelt Kerio. On 18 May 2007 at 21:34, jwcolby wrote: > I think you have to use something. It works for me and I have so many > systems that I have to standardize on something. I have had as many > as three different software firewalls running on various machines at > the same time and it is just a mess. Comodo is easy to get working, > free (FOREVER according to their website;) and appears to do a good job. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com Subject: > Re: [dba-VB] OT: FYI-System Transfer timing > > you sure love your comodo :) > From fhtapia at gmail.com Sat May 19 00:00:45 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 18 May 2007 22:00:45 -0700 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg> <20070519033244.D7A72BDDB@smtp-auth.no-ip.com> Message-ID: I'm glad its working for you. I had read either that article or a similar one when I tried that fw on my laptop. It turned out not to be a good product for me because I am also using a cisco VPN and that fw simply caused my system to freeze or not connect. Other than that it seemed like a fair fw. Btw sunbelt does offer a fw for servers but I see your point it is not gratis :) http://www.google.com/gwt/n?hl=en&q=sunbelt+kerio+firewall+%2B+server&source=m&ei=rIJORviNGKOsogLUosKLAg&sa=X&oi=blended&ct=res&cd=2&rd=1&u=http%3A%2F%2Fwww.sunbelt-software.com%2FBusiness%2FSunbelt-Server-Firewall%2F On 5/18/07, jwcolby wrote: > And it appears to work well... > > http://www.pcworld.idg.com.au/index.php/id;159719021 > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, May 18, 2007 11:09 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OT: FYI-System Transfer timing > > And it runs on Server OSs, unlike Sunbelt Kerio. > > On 18 May 2007 at 21:34, jwcolby wrote: > > > I think you have to use something. It works for me and I have so many > > systems that I have to standardize on something. I have had as many > > as three different software firewalls running on various machines at > > the same time and it is just a mess. Comodo is easy to get working, > > free (FOREVER according to their website;) and appears to do a good job. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco > > Tapia > > Sent: Friday, May 18, 2007 7:27 PM To: dba-vb at databaseadvisors.com > Subject: > > Re: [dba-VB] OT: FYI-System Transfer timing > > > > you sure love your comodo :) > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From stuart at lexacorp.com.pg Sat May 19 01:01:28 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 May 2007 16:01:28 +1000 Subject: [dba-VB] OT: FYI-System Transfer timing In-Reply-To: References: <464E6A2E.10002.32AFB34@stuart.lexacorp.com.pg>, <20070519033244.D7A72BDDB@smtp-auth.no-ip.com>, Message-ID: <464E92B8.8667.3C956F0@stuart.lexacorp.com.pg> I don't know the price of the Kerio server firewall, but the fact that they don't give any indication of pricing on their website makes me think that it will be very expensive :-( On 18 May 2007 at 22:00, Francisco Tapia wrote: > it seemed like a fair fw. Btw sunbelt does offer a fw for servers but > I see your point it is not gratis :) > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Mon May 21 13:53:27 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 May 2007 14:53:27 -0400 Subject: [dba-VB] VB.Net - using the new() constructor Message-ID: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Tue May 22 10:51:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 22 May 2007 08:51:34 -0700 Subject: [dba-VB] VB.Net - using the new() constructor In-Reply-To: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> References: <20070521185328.8D34CBDC1@smtp-auth.no-ip.com> Message-ID: Depends on what specifically you're doing. New returns an initialized instance of the class, so if you test to see if it's Nothing, that's one way (if it IS nothing, it failed). Using a try/catch block in the calling routine is another way, since any exception will bubble up to it. We use both techniques in our shop because we also event log the exceptions. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 21, 2007 11:53 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - using the new() constructor Assuming that you use New() to pass in arguments and do stuff (open a connection, set up a data adapter etc) how do you verify that those processes completed correctly? So you use a flag that says it worked? Do you simply pass in the connection string and store it, then use a different function to start the process happening? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu May 24 19:20:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:20:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings Message-ID: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Group, I am wanting to test the value of a field from a data source. If it is NULL or "" then do one thing, otherwise do another. Here is my vb.net code: If IsDBNull(Fields("MAddress2").Value) Or (Fields("MAddress2").Value = "") Then Me.txtMailAddress.DataField = "=MAddress1" Else Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + ", " + Chr(34) + " + MAddress2" End If The error message is " Operator '=' is not defined for type 'DBNull' and string "". What is the correct syntax for this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From davidmcafee at gmail.com Thu May 24 19:41:29 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:41:29 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Here's a function I wrote (actually I wrote it for C#, but crossed it over to vb.net) Public Function IsNull(ByVal strInput As String, ByVal strReplace As String) As String 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is known as Nz() If (strInput Is Nothing) Then Return strReplace Else If strInput = "" Then Return strReplace Else Return strInput End If End If End Function On 5/24/07, David Emerson wrote: > > Group, > > I am wanting to test the value of a field from a data source. If it > is NULL or "" then do one thing, otherwise do another. Here is my vb.netcode: > > If IsDBNull(Fields("MAddress2").Value) Or > (Fields("MAddress2").Value = "") Then > Me.txtMailAddress.DataField = "=MAddress1" > Else > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > ", " + Chr(34) + " + MAddress2" > End If > > The error message is " > > Operator '=' is not defined for type 'DBNull' and string "". > > What is the correct syntax for this? > > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From newsgrps at dalyn.co.nz Thu May 24 19:52:22 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 25 May 2007 12:52:22 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.co m> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> Message-ID: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it over >to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it is >known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From davidmcafee at gmail.com Thu May 24 19:58:46 2007 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 May 2007 17:58:46 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <8786a4c00705241758n73420435l769b7925aeff2fe5@mail.gmail.com> I tried these before, but they dont work when an empty string is passed: ' These two IsNull functions dont work when an empty string is passed, so I used my own version above 'Public Function IsNull2(ByVal strInput As String, ByVal strReplace As String) As String ' If (strInput.Equals(System.DBNull.Value)) Then ' Return strReplace ' End If 'End Function 'Public Function IsNull3(ByVal strInput As String, ByVal strReplace As String) As String ' If (IsDBNull(strInput)) Then ' Return strReplace ' End If 'End Function On 5/24/07, David Emerson wrote: > > Thanks David, > > I originally had a similar syntax but was hoping that there was an > shorter method. > > David > > At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > over > >to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > is > >known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri May 25 09:32:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:32:10 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 09:52:27 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 07:52:27 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 11:20:31 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 09:20:31 -0700 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz><8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com><20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: Oops! Make that the AndAlso operator . That's what I get for multitasking! If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > 0 Then Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:52 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings And once you have tested the IsNull, you can use the OrElse operator to check for an empty string like this: If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 Then The AndAlso and OrElse operators are a treasure because they only evaluate that part of the expression if the first part succeeds. Charlote Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 7:32 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings If you're using a typed dataset, string and some other data types have an IsNull property that you can test. Cast the record as a row of the appropriate datatype to use it. Then you should be able to use something like addrRow.IsMAddress2Null to check it. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, May 24, 2007 5:52 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Checking for NULL and empty strings Thanks David, I originally had a similar syntax but was hoping that there was an shorter method. David At 25/05/2007, you wrote: >Here's a function I wrote (actually I wrote it for C#, but crossed it >over to vb.net) > > Public Function IsNull(ByVal strInput As String, ByVal strReplace >As >String) As String > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it >is known as Nz() > If (strInput Is Nothing) Then > Return strReplace > Else > If strInput = "" Then > Return strReplace > Else > Return strInput > End If > End If > End Function > > >On 5/24/07, David Emerson wrote: > > > > Group, > > > > I am wanting to test the value of a field from a data source. If it > > is NULL or "" then do one thing, otherwise do another. Here is > my vb.netcode: > > > > If IsDBNull(Fields("MAddress2").Value) Or > > (Fields("MAddress2").Value = "") Then > > Me.txtMailAddress.DataField = "=MAddress1" > > Else > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > ", " + Chr(34) + " + MAddress2" > > End If > > > > The error message is " > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > What is the correct syntax for this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 11:59:34 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 12:59:34 -0400 Subject: [dba-VB] Visual Studio Trust Message-ID: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Fri May 25 12:16:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 10:16:29 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> References: <20070525165938.5A240BDEB@smtp-auth.no-ip.com> Message-ID: Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:46:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:46:02 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 12:56:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 13:56:53 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> Message-ID: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 13:14:19 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 11:14:19 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> References: <20070525174601.B3292BDB8@smtp-auth.no-ip.com> <20070525175652.C7ED1BD5D@smtp-auth.no-ip.com> Message-ID: ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri May 25 13:23:06 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 25 May 2007 14:23:06 -0400 Subject: [dba-VB] Visual Studio Trust In-Reply-To: Message-ID: <20070525182306.01297BD21@smtp-auth.no-ip.com> It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-bca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 25 14:57:53 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 May 2007 12:57:53 -0700 Subject: [dba-VB] Visual Studio Trust In-Reply-To: <20070525182306.01297BD21@smtp-auth.no-ip.com> References: <20070525182306.01297BD21@smtp-auth.no-ip.com> Message-ID: Haven't had to deal with it because it's someone else's headache. I knew about the file identifiers in XP but never knew the specifics and had forgotten most of the rest. Never head of ZoneStripper before. We use the Xceed libraries for zipping and unzipping in our apps, so it must be handled there. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 11:23 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It turns out that windows XP at any rate has a "zone" embedded in each file, at the file level. http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-b ca8- 5f9efe2a79c7 To quote the author... Windows XP SP2 writes a Zone Identifier on all downloaded files. So your zip file is marked as originating from the Internet. When you unzip the archive, your zip file manager has conveniently written the Zone Identifier to each file contained in the archive. Thus your solution file is marked as originating from the Internet and is thus not fully trusted. This behavior can also occur if you copy the code from a network share to your local drive using Windows XP SP2. ZoneStripper removes the Zone Identifier from files and directories so that the solution can be loaded into Visual Studio .NET without the security warning. How does Windows XP SP2 record the Zone Identifier? The Zone Identifier is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One way to remove the Zone Identifier is to move the files onto a FAT partition and then move it back to your NTFS drive. (FAT doesn't support Alternate Data Streams and so the Alternate Data Stream is ignored when copying files onto a FAT partition.) The other option is to delete the Zone.Identifier Alternate Data Stream, which is what ZoneStripper does. To see the Alternate Data Stream, simply type the following: notepad.exe Readme.htm:Zone.Identifier Unfortunately the .NET Framework's System.IO classes are not Alternate Data Stream-aware. So you must use P/Invoke to call the underlying Win32 API CreateFile (to determine if the Zone.Identifier stream exists) and DeleteFile (to delete the Zone.Identifier stream). Don't even TELL me you didn't already know all this!!! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 2:14 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust ?? Que? Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:57 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust It gets worse. Google zonestripper John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 1:46 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Actually I tried both. I can't get it do deal with either. Currently (latest) was: \\StoneHenge\Dev\VisualStudio2005\Projects Unfortunately to then access this location I have to be able to see the workgroup, and more specifically the Stonehenge server and it's shares, which I cannot. Sometimes I think I should have just become a doctor. It would have been so much easier. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, May 25, 2007 1:16 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio Trust Are you using a UNC path or a mapped drive, John? As I recall, it refuses to deal with mapped remote drives, so you might try the full UNC path. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 25, 2007 10:00 AM To: VBA Subject: [dba-VB] Visual Studio Trust I placed all of my visual studio projects out on my server. Now Visual Studio complains that the source is not trusted and may cause exception errors. In looking on the web it says to use the framework configuration application to set a trusted zone - machine / codegroups / allcode / local intranet zone / add a child code group. I did that but I cannot persuade Framework 2.0 to trust the path I set, and of course it does not supply a file find dialog to browse for the location. Can anyone help me out here? What do I need to do to get this thing to work? The hours I waste trying to do stuff that should be made simpler! John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Fri May 25 15:54:54 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 26 May 2007 08:54:54 +1200 Subject: [dba-VB] Checking for NULL and empty strings In-Reply-To: References: <20070525002030.OOGP11149.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> <8786a4c00705241741g7ca5cbe4q30601cfce6554a6d@mail.gmail.com> <20070525005159.RNMN23336.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <20070525205500.QPTP23876.fep02.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Charlotte, much appreciated. David At 26/05/2007, you wrote: >Oops! Make that the AndAlso operator . That's what I get for >multitasking! > > If Not addrRow.IsMAddress2Null AndAlso addrRow.MAddress2.Trim.Length > >0 Then > >Charlotte > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:52 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >And once you have tested the IsNull, you can use the OrElse operator to >check for an empty string like this: > >If Not addrRow.IsMAddress2Null OrElse addrRow.MAddress2.Trim.Length > 0 >Then > >The AndAlso and OrElse operators are a treasure because they only >evaluate that part of the expression if the first part succeeds. > >Charlote Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Friday, May 25, 2007 7:32 AM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >If you're using a typed dataset, string and some other data types have >an IsNull property that you can test. Cast the record as a >row of the appropriate datatype to use it. Then you should be able to >use something like addrRow.IsMAddress2Null to check it. > >Charlotte Foust > >-----Original Message----- >From: dba-vb-bounces at databaseadvisors.com >[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Thursday, May 24, 2007 5:52 PM >To: dba-vb at databaseadvisors.com >Subject: Re: [dba-VB] Checking for NULL and empty strings > >Thanks David, > >I originally had a similar syntax but was hoping that there was an >shorter method. > >David > >At 25/05/2007, you wrote: > >Here's a function I wrote (actually I wrote it for C#, but crossed it > >over to vb.net) > > > > Public Function IsNull(ByVal strInput As String, ByVal strReplace > >As > >String) As String > > 'This works like SQL server's IsNull, not VB/VBA. In VB/VBA it > > >is known as Nz() > > If (strInput Is Nothing) Then > > Return strReplace > > Else > > If strInput = "" Then > > Return strReplace > > Else > > Return strInput > > End If > > End If > > End Function > > > > > >On 5/24/07, David Emerson wrote: > > > > > > Group, > > > > > > I am wanting to test the value of a field from a data source. If it > > > > is NULL or "" then do one thing, otherwise do another. Here is > > my vb.netcode: > > > > > > If IsDBNull(Fields("MAddress2").Value) Or > > > (Fields("MAddress2").Value = "") Then > > > Me.txtMailAddress.DataField = "=MAddress1" > > > Else > > > Me.txtMailAddress.DataField = "=MAddress1" + Chr(34) + > > > ", " + Chr(34) + " + MAddress2" > > > End If > > > > > > The error message is " > > > > > > Operator '=' is not defined for type 'DBNull' and string "". > > > > > > What is the correct syntax for this? > > > > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd > > > Wellington, New Zealand > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > >_______________________________________________ > >dba-VB mailing list > >dba-VB at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-vb > >http://www.databaseadvisors.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 26 06:58:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 26 May 2007 07:58:50 -0400 Subject: [dba-VB] Work with SQL Server and Express edition Message-ID: <20070526115852.05722BE26@smtp-auth.no-ip.com> I want to work with express edition databases as the data source for some of my VB.Net projects, but full SQL Server databases for others. How do I go about doing this? I started with express edition on my new laptop simply because I installed Visual studio first and it installed Express edition. Then I went out and found / installed the Express edition Management Studio. When I tried to install SQL Server Standard Edition, it basically told me there was nothing to do, and did not install Standard Edition Management Studio, which I need. What do I need to do now? John W. Colby Colby Consulting www.ColbyConsulting.com From fhtapia at gmail.com Wed May 30 10:35:17 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 30 May 2007 08:35:17 -0700 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: <20070526115852.05722BE26@smtp-auth.no-ip.com> References: <20070526115852.05722BE26@smtp-auth.no-ip.com> Message-ID: I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for some > of > my VB.Net projects, but full SQL Server databases for others. How do I go > about doing this? I started with express edition on my new laptop simply > because I installed Visual studio first and it installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told me > there was nothing to do, and did not install Standard Edition Management > Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jwcolby at colbyconsulting.com Wed May 30 11:11:29 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 30 May 2007 12:11:29 -0400 Subject: [dba-VB] Work with SQL Server and Express edition In-Reply-To: Message-ID: <20070530161129.F4081BD38@smtp-auth.no-ip.com> It turns out that you can have the Standard and Express Edition engines running side by side on the same machine. I just did something wrong (can't remember what now). I did end up uninstalling, installing SQL Server Standard Edition, then reinstalling SQL Express edition, and now both engines are visible and usable. What I did not do was attempt to reinstall the express edition management studio. There is no point really and besides that version is crippled. For some reason the Express edition engine is much more forgiving of the database file not being available as the engine service starts. With Standard Edition it acts as if the database file is unattached, and yet you can still see the icon etc. You have to go delete it and then attach the data file to get the database back. If you try to use it before doing that stuff, for example from my billing database in access, the attempts to access the data just hangs access until the timeout occurs. With Express edition OTOH, the express edition service starts on bootup. The data file is not available, it is on an encrypted drive which is not yet mounted. And yet when I mount the encrypted drive and then open the billing program, the links "just work". It is almost as if Express edition has a "mount on demand" functionality. That makes sense of course given Express edition's stated purpose in life. It would be nice if Standard Edition would attempt to mount a dismounted drive in the same manner. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 30, 2007 11:35 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Work with SQL Server and Express edition I don't think the engine is "upgradeable" when it's similar versions like that, I've always found myself uninstalling and then re-installing the engine. (This was back in the days of MSDE) it was either that or installing an "instance" of sql server standard. -- Francisco On 5/26/07, jwcolby wrote: > > I want to work with express edition databases as the data source for > some of my VB.Net projects, but full SQL Server databases for others. > How do I go about doing this? I started with express edition on my > new laptop simply because I installed Visual studio first and it > installed Express edition. > Then I went out and found / installed the Express edition Management > Studio. > When I tried to install SQL Server Standard Edition, it basically told > me there was nothing to do, and did not install Standard Edition > Management Studio, which I need. > > What do I need to do now? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com