From listmaster at databaseadvisors.com Sun Sep 4 09:47:39 2005 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 04 Sep 2005 10:47:39 -0400 Subject: [dba-VB] Administrivia - List Software Upgrade Complete Message-ID: <431AD0CB.2128.3CF811@listmaster.databaseadvisors.com> The list software upgrade went as smoothly as it ever has and was upgraded without a hitch. I think all totalled the lists were down for less than 10 minutes. Have a wonderful rest of the weekend. Your Listmaster, -- Bryan Carbonnell - listmaster at databaseadvisors.com A feature is a bug with seniority. From jwcolby at colbyconsulting.com Mon Sep 5 08:33:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:33:48 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABEEEA@ADGSERVER> Message-ID: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Sep 5 08:54:31 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:54:31 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> Message-ID: <000101c5b221$5a6e7360$6c7aa8c0@ColbyM6805> I cannot attach the database using enterprise manager. When I try to do so, it opens a find dialog, which I use to find the movie database. As soon as I select the database, I get an "attach as" down in the bottom of the dialog, but it is "hardwired" for D:\... Which is a CD drive on my laptop. If I attempt to change the D:\ to C:\ the "OK" button grays out and I am no longer allowed to continue. So little time, so much time wasted trying to get Microsoft stuff to work. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 9:34 AM To: bheid at appdevgrp.com; dba-vb at databaseadvisors.com; SQLServer Subject: [dba-VB] MyMovieCollection database The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Mon Sep 5 14:38:40 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 15:38:40 -0400 Subject: [dba-VB] VB.Net - Try/catch Message-ID: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From mikedorism at verizon.net Mon Sep 5 15:43:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Mon, 05 Sep 2005 16:43:22 -0400 Subject: [dba-VB] VB.Net - Try/catch In-Reply-To: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Message-ID: <000001c5b25a$7539f320$2e01a8c0@dorismanning> Most of the exception types have a Number property that holds this information. If you are using the generic exception, then you need to look at it's ToString property to find the exception type involved and add an additional Catch to collect those errors. I generally set my Try/Catch up like so... Try Do something Catch Ex as SQLClient.SQLException Do something Catch Ex as Exception Do something Finally Do something End Try Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 3:39 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Try/catch Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 5 22:39:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 23:39:48 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <000701c5b294$a4cc3f00$6c7aa8c0@ColbyM6805> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From R.Griffiths at bury.gov.uk Tue Sep 6 03:08:45 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Sep 2005 09:08:45 +0100 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <200509060759.j867xV908785@smarthost.yourcomms.net> Hi You could customize a menu/toolbar and add it to your toolbar - there is one called 'Toggle all outling' under the Edit menu. Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 06 September 2005 04:40 To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - minimizing regions in code The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gray at utah.gov Tue Sep 6 10:25:43 2005 From: gray at utah.gov (Gary Ray) Date: Tue, 06 Sep 2005 09:25:43 -0600 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 11:23:21 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 12:23:21 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities Message-ID: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Tue Sep 6 13:21:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:21:13 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: Message-ID: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Tuesday, September 06, 2005 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb 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 mikedorism at verizon.net Tue Sep 6 13:35:50 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 06 Sep 2005 14:35:50 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Message-ID: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From martyconnelly at shaw.ca Tue Sep 6 13:39:04 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Sep 2005 11:39:04 -0700 Subject: [dba-VB] Express / Visual Studio incompatibilities References: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Message-ID: <431DE248.9060000@shaw.ca> Are you having problems with SQLDMO, you will have to read through the blogs http://blogs.msdn.com/sqlexpress/archive/2004/07/04/172956.aspx John W. Colby wrote: >Is it just me or are there some pretty serious incompatibilities between the >full on version of VB.Net and VB express. I am trying to move code back and >forth between the two environments and it rarely "just works". > >I have found all these neato keenarino applications demonstrating VB.Net >express. Try and move them backwards to Visual Studio and they just don't >work. Try and move working old code forward and it doesn't work, even when >run through the "conversion utility". > >As an example, the EnvDTE just doesn't exist as a native object or namespace >in Express. I found and referenced the EnvDte from VS but the code snippet >still doesn't work, claiming that I'm referencing a non-shared member (it >was apparently a shared member before?). > >So I am developing things in Visual Studio that I can't port to Express and >VV. What a pita. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > >_______________________________________________ >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 jwcolby at colbyconsulting.com Tue Sep 6 13:42:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:42:57 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Message-ID: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> I added a reference - Right click on the project / add reference. I just looked up just the phrase dte and found a knowledgebase article that discuses how to get it. Not only do you have to set a reference to the lib, you have to dim a variable and set it: Dim DTE As EnvDTE.DTE DTE = System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE") Further I have to do that inside each function that uses the DTE (which was every one). I could have dimmed DTE global to the module or even to the app but I am not sure how that would play. Further since a module does not have an "init" function, each function has to SET the variable anyway. It's just odd to me that published code does not do this stuff as part of the article. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, September 06, 2005 2:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 13:49:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:49:11 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> Message-ID: <00a001c5b313$b0803570$6c7aa8c0@ColbyM6805> And then I found this (a blog): I think you have the same functionality with the built in shortcuts in vs.NET: CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent region CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed CTRL+M CTRL+O - Collapse all regions not recursively - you'll see all child region but they'll be collapsed Which is pretty much all I want. Does anyone know where all the short cut keys are documented? John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Sep 7 07:41:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 08:41:43 -0400 Subject: [dba-VB] Serialization Message-ID: <00dc01c5b3a9$83ae2480$6c7aa8c0@ColbyM6805> Is anyone using serialization to save / restore class data to an XML stream? I have my System Variables (SysVars), which are a pair of classes: A SysVar class which is just a data container with a handful of public variables. A SysVars (plural) class which is the supervisor of The SysVar instances. SysVars contains a collection of SysVar instances. SysVar is supposed to load the instances at New(), it has properties that return one specific SysVar instance (by name) and is supposed to write any changes back out. Using the example code I found on the MS site for using serialization, the loading and saving of the data occurs through a Serializable data module which takes a filename and n object type, and returns an object of that object. That in itself is not a huge issue, but it does mean that the class is no longer loading its own data, i.e. you must now dim a variable and then call the SerializableData class, which returns an instance of SysVars with the data loaded. My question is, can a class have methods that serialize and deserialize its own data, making it self contained, or is it just necessary to do this from outside the class? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Wed Sep 7 11:01:53 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 7 Sep 2005 12:01:53 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C7D34D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABEF40@ADGSERVER> Are you moving from express to VS 2003? I don't think that the two are compatible, but I may be wrong. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 12:23 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Express / Visual Studio incompatibilities Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 7 12:11:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 13:11:55 -0400 Subject: [dba-VB] OT: PIC micro controllers Message-ID: <00eb01c5b3cf$44336bf0$6c7aa8c0@ColbyM6805> Is anyone here playing or working with PIC Microcontrollers? I have been interested in controller applications forever (in my previous life I was into electronics), and in fact I designed a vending machine while I was working down in Mexico that used a Z-World SBC. I have discovered that you can request engineering samples of these little beauties (PIC u controllers) and am starting to gather the stuff to program them. I was just wondering if anyone else does this stuff. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Sat Sep 10 13:07:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 10 Sep 2005 14:07:28 -0400 Subject: [dba-VB] VB.Net Express data handling Message-ID: <006a01c5b632$860aec50$6c7aa8c0@ColbyM6805> I was trying to pull an existing class that I wrote in the old VB.Net into VB Express and it didn't compile. In investigating why, I just ran across these two articles. The new stuff in Express is pretty darned cool. http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnadonet/h tml/datasetenhance.asp http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/htm l/newdtastvs05.asp John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From RRANTHON at sentara.com Wed Sep 14 08:09:55 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 09:09:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141310.j8EDAGT00658@databaseadvisors.com> Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. From Jdemarco at hudsonhealthplan.org Wed Sep 14 08:13:55 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 09:13:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Wed Sep 14 08:33:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 14 Sep 2005 09:33:49 -0400 Subject: [dba-VB] Zoom Box In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> Message-ID: <000601c5b930$fa585970$6c7aa8c0@ColbyM6805> Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Wed Sep 14 10:22:14 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 11:22:14 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF5@TTNEXCHCL2.hshhp.com> Just gave this a test and I like John's method better. Let me know if you want the test code to see it work. I added a property to the zoom form to hold the text box control from the calling form. Jim D. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, September 14, 2005 9:34 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From RRANTHON at sentara.com Wed Sep 14 11:16:04 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 12:16:04 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141616.j8EGGLT16740@databaseadvisors.com> Thanks, Jim, John, I'm sorry I didn't respond sooner, I 've got the list on Digest and had some trouble getting to the archives (which Bryan is fixing as we speak). Yes, please send me whatever code snippets you have, I've got the concept but not the tools. Thanks again. From jwcolby at colbyconsulting.com Fri Sep 16 19:01:19 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 16 Sep 2005 20:01:19 -0400 Subject: [dba-VB] I need help Message-ID: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Guys, I need some help, setting up a web site, email accounts and a database behind the web site. This stuff will be used to assist Rabbi Gellman in implementing an idea he has for assisting Katrina victims. http://www.msnbc.msn.com/id/9344139/site/newsweek/ I have a positive email response to an email I sent him offering him assistance. I have a call in to him to a phone number he gave me, and will be talking to him shortly. I am just trying to get some help lined up so I can move quickly when I know what is needed. Details will follow to those who volunteer when I know more. Thanks John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From carbonnb at gmail.com Sat Sep 17 10:52:29 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 17 Sep 2005 11:52:29 -0400 Subject: [dba-VB] [dba-SQLServer] I need help In-Reply-To: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> References: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Message-ID: On 16/09/05, John W. Colby wrote: > I need some help, setting up a web site, email accounts and a database > behind the web site. This stuff will be used to assist Rabbi Gellman in > implementing an idea he has for assisting Katrina victims. John, Even though I replied to you off-list, I'll offer whatever help I can. If you are using a Linux server to set this up on, I'd be more than happy to help. If you are setting this up on a MS server, I'll be more than happy to give what help I can, but I don't have any experience with MS servers. I can also do web coding. Web Design is a bit of a stretch for me, but taking the design and turning it into clean code, I can do. -- 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 RRANTHON at sentara.com Mon Sep 26 07:33:32 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 08:33:32 -0400 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: <200509261233.j8QCXuT31891@databaseadvisors.com> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From gray at utah.gov Mon Sep 26 08:49:12 2005 From: gray at utah.gov (Gary Ray) Date: Mon, 26 Sep 2005 07:49:12 -0600 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: The first assumption here is that you have a control array of option buttons - in other words, give the set of buttons the same name. Then this code should work: Select Case True Case optName(0).Value MsgBox optName(0).Caption Case optName(1).Value MsgBox optName(1).Caption Case optName(2).Value MsgBox optName(2).Caption Case Else MsgBox "Not Selected" End Select Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> RRANTHON at sentara.com 9/26/2005 6:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 26 10:08:27 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 11:08:27 -0400 Subject: [dba-VB] Fwd: Option Group and Select Case Statement Message-ID: <200509261508.j8QF8kT23373@databaseadvisors.com> Thanks, Gary, that's exactly what I was looking for. Have a good day! >>> Randall R Anthony 09/26/05 8:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From fhtapia at gmail.com Tue Sep 27 12:38:16 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 27 Sep 2005 10:38:16 -0700 Subject: [dba-VB] Soap Parameters? Message-ID: I have the following soap call, all I need is the two parameters "Account" and "PartNumber" I do not know looking in the helpfile how to incorporate them into this call... anyone done this sorta thing yet? OPTION EXPLICIT Dim strWebSvcWSDLURL Dim objSOAPClient Dim strNameSpace Dim SOAPClient Dim sxml Dim Result Dim strWebSvcNameSpace strWebSvcNameSpace = "http://WService.org//WSAData/RetailPrice" strWebSvcWSDLURL = "http://Wsweb2:8085/awdev/webservice/WSData.asmx?wsdl" Set SOAPClient = CreateObject("MSSOAP.SOAPClient30") On Error Resume Next SOAPClient.mssoapinit strWebSvcWSDLURL if err <> 0 then Wscript.echo "Initialization failed" + err.description end if Result = SOAPClient.RetailPrice() wscript.echo "Result=" + Result if err <> 0 then wscript.echo "err=" + err.description wscript.echo "faultcode=" + soapclient.faultcode wscript.echo "faultstring=" + soapclient.faultstring wscript.echo "FaultActor=" + soapclient.FaultActor wscript.echo "Detail=" + soapclient.Detail end if -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From listmaster at databaseadvisors.com Sun Sep 4 09:47:39 2005 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 04 Sep 2005 10:47:39 -0400 Subject: [dba-VB] Administrivia - List Software Upgrade Complete Message-ID: <431AD0CB.2128.3CF811@listmaster.databaseadvisors.com> The list software upgrade went as smoothly as it ever has and was upgraded without a hitch. I think all totalled the lists were down for less than 10 minutes. Have a wonderful rest of the weekend. Your Listmaster, -- Bryan Carbonnell - listmaster at databaseadvisors.com A feature is a bug with seniority. From jwcolby at colbyconsulting.com Mon Sep 5 08:33:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:33:48 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABEEEA@ADGSERVER> Message-ID: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Sep 5 08:54:31 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:54:31 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> Message-ID: <000101c5b221$5a6e7360$6c7aa8c0@ColbyM6805> I cannot attach the database using enterprise manager. When I try to do so, it opens a find dialog, which I use to find the movie database. As soon as I select the database, I get an "attach as" down in the bottom of the dialog, but it is "hardwired" for D:\... Which is a CD drive on my laptop. If I attempt to change the D:\ to C:\ the "OK" button grays out and I am no longer allowed to continue. So little time, so much time wasted trying to get Microsoft stuff to work. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 9:34 AM To: bheid at appdevgrp.com; dba-vb at databaseadvisors.com; SQLServer Subject: [dba-VB] MyMovieCollection database The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Mon Sep 5 14:38:40 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 15:38:40 -0400 Subject: [dba-VB] VB.Net - Try/catch Message-ID: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From mikedorism at verizon.net Mon Sep 5 15:43:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Mon, 05 Sep 2005 16:43:22 -0400 Subject: [dba-VB] VB.Net - Try/catch In-Reply-To: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Message-ID: <000001c5b25a$7539f320$2e01a8c0@dorismanning> Most of the exception types have a Number property that holds this information. If you are using the generic exception, then you need to look at it's ToString property to find the exception type involved and add an additional Catch to collect those errors. I generally set my Try/Catch up like so... Try Do something Catch Ex as SQLClient.SQLException Do something Catch Ex as Exception Do something Finally Do something End Try Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 3:39 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Try/catch Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 5 22:39:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 23:39:48 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <000701c5b294$a4cc3f00$6c7aa8c0@ColbyM6805> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From R.Griffiths at bury.gov.uk Tue Sep 6 03:08:45 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Sep 2005 09:08:45 +0100 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <200509060759.j867xV908785@smarthost.yourcomms.net> Hi You could customize a menu/toolbar and add it to your toolbar - there is one called 'Toggle all outling' under the Edit menu. Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 06 September 2005 04:40 To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - minimizing regions in code The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gray at utah.gov Tue Sep 6 10:25:43 2005 From: gray at utah.gov (Gary Ray) Date: Tue, 06 Sep 2005 09:25:43 -0600 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 11:23:21 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 12:23:21 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities Message-ID: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Tue Sep 6 13:21:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:21:13 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: Message-ID: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Tuesday, September 06, 2005 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb 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 mikedorism at verizon.net Tue Sep 6 13:35:50 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 06 Sep 2005 14:35:50 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Message-ID: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From martyconnelly at shaw.ca Tue Sep 6 13:39:04 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Sep 2005 11:39:04 -0700 Subject: [dba-VB] Express / Visual Studio incompatibilities References: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Message-ID: <431DE248.9060000@shaw.ca> Are you having problems with SQLDMO, you will have to read through the blogs http://blogs.msdn.com/sqlexpress/archive/2004/07/04/172956.aspx John W. Colby wrote: >Is it just me or are there some pretty serious incompatibilities between the >full on version of VB.Net and VB express. I am trying to move code back and >forth between the two environments and it rarely "just works". > >I have found all these neato keenarino applications demonstrating VB.Net >express. Try and move them backwards to Visual Studio and they just don't >work. Try and move working old code forward and it doesn't work, even when >run through the "conversion utility". > >As an example, the EnvDTE just doesn't exist as a native object or namespace >in Express. I found and referenced the EnvDte from VS but the code snippet >still doesn't work, claiming that I'm referencing a non-shared member (it >was apparently a shared member before?). > >So I am developing things in Visual Studio that I can't port to Express and >VV. What a pita. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > >_______________________________________________ >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 jwcolby at colbyconsulting.com Tue Sep 6 13:42:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:42:57 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Message-ID: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> I added a reference - Right click on the project / add reference. I just looked up just the phrase dte and found a knowledgebase article that discuses how to get it. Not only do you have to set a reference to the lib, you have to dim a variable and set it: Dim DTE As EnvDTE.DTE DTE = System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE") Further I have to do that inside each function that uses the DTE (which was every one). I could have dimmed DTE global to the module or even to the app but I am not sure how that would play. Further since a module does not have an "init" function, each function has to SET the variable anyway. It's just odd to me that published code does not do this stuff as part of the article. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, September 06, 2005 2:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 13:49:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:49:11 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> Message-ID: <00a001c5b313$b0803570$6c7aa8c0@ColbyM6805> And then I found this (a blog): I think you have the same functionality with the built in shortcuts in vs.NET: CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent region CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed CTRL+M CTRL+O - Collapse all regions not recursively - you'll see all child region but they'll be collapsed Which is pretty much all I want. Does anyone know where all the short cut keys are documented? John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Sep 7 07:41:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 08:41:43 -0400 Subject: [dba-VB] Serialization Message-ID: <00dc01c5b3a9$83ae2480$6c7aa8c0@ColbyM6805> Is anyone using serialization to save / restore class data to an XML stream? I have my System Variables (SysVars), which are a pair of classes: A SysVar class which is just a data container with a handful of public variables. A SysVars (plural) class which is the supervisor of The SysVar instances. SysVars contains a collection of SysVar instances. SysVar is supposed to load the instances at New(), it has properties that return one specific SysVar instance (by name) and is supposed to write any changes back out. Using the example code I found on the MS site for using serialization, the loading and saving of the data occurs through a Serializable data module which takes a filename and n object type, and returns an object of that object. That in itself is not a huge issue, but it does mean that the class is no longer loading its own data, i.e. you must now dim a variable and then call the SerializableData class, which returns an instance of SysVars with the data loaded. My question is, can a class have methods that serialize and deserialize its own data, making it self contained, or is it just necessary to do this from outside the class? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Wed Sep 7 11:01:53 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 7 Sep 2005 12:01:53 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C7D34D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABEF40@ADGSERVER> Are you moving from express to VS 2003? I don't think that the two are compatible, but I may be wrong. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 12:23 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Express / Visual Studio incompatibilities Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 7 12:11:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 13:11:55 -0400 Subject: [dba-VB] OT: PIC micro controllers Message-ID: <00eb01c5b3cf$44336bf0$6c7aa8c0@ColbyM6805> Is anyone here playing or working with PIC Microcontrollers? I have been interested in controller applications forever (in my previous life I was into electronics), and in fact I designed a vending machine while I was working down in Mexico that used a Z-World SBC. I have discovered that you can request engineering samples of these little beauties (PIC u controllers) and am starting to gather the stuff to program them. I was just wondering if anyone else does this stuff. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Sat Sep 10 13:07:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 10 Sep 2005 14:07:28 -0400 Subject: [dba-VB] VB.Net Express data handling Message-ID: <006a01c5b632$860aec50$6c7aa8c0@ColbyM6805> I was trying to pull an existing class that I wrote in the old VB.Net into VB Express and it didn't compile. In investigating why, I just ran across these two articles. The new stuff in Express is pretty darned cool. http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnadonet/h tml/datasetenhance.asp http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/htm l/newdtastvs05.asp John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From RRANTHON at sentara.com Wed Sep 14 08:09:55 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 09:09:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141310.j8EDAGT00658@databaseadvisors.com> Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. From Jdemarco at hudsonhealthplan.org Wed Sep 14 08:13:55 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 09:13:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Wed Sep 14 08:33:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 14 Sep 2005 09:33:49 -0400 Subject: [dba-VB] Zoom Box In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> Message-ID: <000601c5b930$fa585970$6c7aa8c0@ColbyM6805> Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Wed Sep 14 10:22:14 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 11:22:14 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF5@TTNEXCHCL2.hshhp.com> Just gave this a test and I like John's method better. Let me know if you want the test code to see it work. I added a property to the zoom form to hold the text box control from the calling form. Jim D. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, September 14, 2005 9:34 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From RRANTHON at sentara.com Wed Sep 14 11:16:04 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 12:16:04 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141616.j8EGGLT16740@databaseadvisors.com> Thanks, Jim, John, I'm sorry I didn't respond sooner, I 've got the list on Digest and had some trouble getting to the archives (which Bryan is fixing as we speak). Yes, please send me whatever code snippets you have, I've got the concept but not the tools. Thanks again. From jwcolby at colbyconsulting.com Fri Sep 16 19:01:19 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 16 Sep 2005 20:01:19 -0400 Subject: [dba-VB] I need help Message-ID: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Guys, I need some help, setting up a web site, email accounts and a database behind the web site. This stuff will be used to assist Rabbi Gellman in implementing an idea he has for assisting Katrina victims. http://www.msnbc.msn.com/id/9344139/site/newsweek/ I have a positive email response to an email I sent him offering him assistance. I have a call in to him to a phone number he gave me, and will be talking to him shortly. I am just trying to get some help lined up so I can move quickly when I know what is needed. Details will follow to those who volunteer when I know more. Thanks John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From carbonnb at gmail.com Sat Sep 17 10:52:29 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 17 Sep 2005 11:52:29 -0400 Subject: [dba-VB] [dba-SQLServer] I need help In-Reply-To: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> References: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Message-ID: On 16/09/05, John W. Colby wrote: > I need some help, setting up a web site, email accounts and a database > behind the web site. This stuff will be used to assist Rabbi Gellman in > implementing an idea he has for assisting Katrina victims. John, Even though I replied to you off-list, I'll offer whatever help I can. If you are using a Linux server to set this up on, I'd be more than happy to help. If you are setting this up on a MS server, I'll be more than happy to give what help I can, but I don't have any experience with MS servers. I can also do web coding. Web Design is a bit of a stretch for me, but taking the design and turning it into clean code, I can do. -- 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 RRANTHON at sentara.com Mon Sep 26 07:33:32 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 08:33:32 -0400 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: <200509261233.j8QCXuT31891@databaseadvisors.com> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From gray at utah.gov Mon Sep 26 08:49:12 2005 From: gray at utah.gov (Gary Ray) Date: Mon, 26 Sep 2005 07:49:12 -0600 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: The first assumption here is that you have a control array of option buttons - in other words, give the set of buttons the same name. Then this code should work: Select Case True Case optName(0).Value MsgBox optName(0).Caption Case optName(1).Value MsgBox optName(1).Caption Case optName(2).Value MsgBox optName(2).Caption Case Else MsgBox "Not Selected" End Select Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> RRANTHON at sentara.com 9/26/2005 6:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 26 10:08:27 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 11:08:27 -0400 Subject: [dba-VB] Fwd: Option Group and Select Case Statement Message-ID: <200509261508.j8QF8kT23373@databaseadvisors.com> Thanks, Gary, that's exactly what I was looking for. Have a good day! >>> Randall R Anthony 09/26/05 8:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From fhtapia at gmail.com Tue Sep 27 12:38:16 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 27 Sep 2005 10:38:16 -0700 Subject: [dba-VB] Soap Parameters? Message-ID: I have the following soap call, all I need is the two parameters "Account" and "PartNumber" I do not know looking in the helpfile how to incorporate them into this call... anyone done this sorta thing yet? OPTION EXPLICIT Dim strWebSvcWSDLURL Dim objSOAPClient Dim strNameSpace Dim SOAPClient Dim sxml Dim Result Dim strWebSvcNameSpace strWebSvcNameSpace = "http://WService.org//WSAData/RetailPrice" strWebSvcWSDLURL = "http://Wsweb2:8085/awdev/webservice/WSData.asmx?wsdl" Set SOAPClient = CreateObject("MSSOAP.SOAPClient30") On Error Resume Next SOAPClient.mssoapinit strWebSvcWSDLURL if err <> 0 then Wscript.echo "Initialization failed" + err.description end if Result = SOAPClient.RetailPrice() wscript.echo "Result=" + Result if err <> 0 then wscript.echo "err=" + err.description wscript.echo "faultcode=" + soapclient.faultcode wscript.echo "faultstring=" + soapclient.faultstring wscript.echo "FaultActor=" + soapclient.FaultActor wscript.echo "Detail=" + soapclient.Detail end if -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From listmaster at databaseadvisors.com Sun Sep 4 09:47:39 2005 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 04 Sep 2005 10:47:39 -0400 Subject: [dba-VB] Administrivia - List Software Upgrade Complete Message-ID: <431AD0CB.2128.3CF811@listmaster.databaseadvisors.com> The list software upgrade went as smoothly as it ever has and was upgraded without a hitch. I think all totalled the lists were down for less than 10 minutes. Have a wonderful rest of the weekend. Your Listmaster, -- Bryan Carbonnell - listmaster at databaseadvisors.com A feature is a bug with seniority. From jwcolby at colbyconsulting.com Mon Sep 5 08:33:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:33:48 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABEEEA@ADGSERVER> Message-ID: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Sep 5 08:54:31 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:54:31 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> Message-ID: <000101c5b221$5a6e7360$6c7aa8c0@ColbyM6805> I cannot attach the database using enterprise manager. When I try to do so, it opens a find dialog, which I use to find the movie database. As soon as I select the database, I get an "attach as" down in the bottom of the dialog, but it is "hardwired" for D:\... Which is a CD drive on my laptop. If I attempt to change the D:\ to C:\ the "OK" button grays out and I am no longer allowed to continue. So little time, so much time wasted trying to get Microsoft stuff to work. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 9:34 AM To: bheid at appdevgrp.com; dba-vb at databaseadvisors.com; SQLServer Subject: [dba-VB] MyMovieCollection database The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Mon Sep 5 14:38:40 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 15:38:40 -0400 Subject: [dba-VB] VB.Net - Try/catch Message-ID: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From mikedorism at verizon.net Mon Sep 5 15:43:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Mon, 05 Sep 2005 16:43:22 -0400 Subject: [dba-VB] VB.Net - Try/catch In-Reply-To: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Message-ID: <000001c5b25a$7539f320$2e01a8c0@dorismanning> Most of the exception types have a Number property that holds this information. If you are using the generic exception, then you need to look at it's ToString property to find the exception type involved and add an additional Catch to collect those errors. I generally set my Try/Catch up like so... Try Do something Catch Ex as SQLClient.SQLException Do something Catch Ex as Exception Do something Finally Do something End Try Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 3:39 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Try/catch Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 5 22:39:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 23:39:48 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <000701c5b294$a4cc3f00$6c7aa8c0@ColbyM6805> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From R.Griffiths at bury.gov.uk Tue Sep 6 03:08:45 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Sep 2005 09:08:45 +0100 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <200509060759.j867xV908785@smarthost.yourcomms.net> Hi You could customize a menu/toolbar and add it to your toolbar - there is one called 'Toggle all outling' under the Edit menu. Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 06 September 2005 04:40 To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - minimizing regions in code The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gray at utah.gov Tue Sep 6 10:25:43 2005 From: gray at utah.gov (Gary Ray) Date: Tue, 06 Sep 2005 09:25:43 -0600 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 11:23:21 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 12:23:21 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities Message-ID: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Tue Sep 6 13:21:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:21:13 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: Message-ID: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Tuesday, September 06, 2005 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb 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 mikedorism at verizon.net Tue Sep 6 13:35:50 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 06 Sep 2005 14:35:50 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Message-ID: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From martyconnelly at shaw.ca Tue Sep 6 13:39:04 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Sep 2005 11:39:04 -0700 Subject: [dba-VB] Express / Visual Studio incompatibilities References: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Message-ID: <431DE248.9060000@shaw.ca> Are you having problems with SQLDMO, you will have to read through the blogs http://blogs.msdn.com/sqlexpress/archive/2004/07/04/172956.aspx John W. Colby wrote: >Is it just me or are there some pretty serious incompatibilities between the >full on version of VB.Net and VB express. I am trying to move code back and >forth between the two environments and it rarely "just works". > >I have found all these neato keenarino applications demonstrating VB.Net >express. Try and move them backwards to Visual Studio and they just don't >work. Try and move working old code forward and it doesn't work, even when >run through the "conversion utility". > >As an example, the EnvDTE just doesn't exist as a native object or namespace >in Express. I found and referenced the EnvDte from VS but the code snippet >still doesn't work, claiming that I'm referencing a non-shared member (it >was apparently a shared member before?). > >So I am developing things in Visual Studio that I can't port to Express and >VV. What a pita. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > >_______________________________________________ >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 jwcolby at colbyconsulting.com Tue Sep 6 13:42:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:42:57 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Message-ID: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> I added a reference - Right click on the project / add reference. I just looked up just the phrase dte and found a knowledgebase article that discuses how to get it. Not only do you have to set a reference to the lib, you have to dim a variable and set it: Dim DTE As EnvDTE.DTE DTE = System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE") Further I have to do that inside each function that uses the DTE (which was every one). I could have dimmed DTE global to the module or even to the app but I am not sure how that would play. Further since a module does not have an "init" function, each function has to SET the variable anyway. It's just odd to me that published code does not do this stuff as part of the article. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, September 06, 2005 2:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 13:49:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:49:11 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> Message-ID: <00a001c5b313$b0803570$6c7aa8c0@ColbyM6805> And then I found this (a blog): I think you have the same functionality with the built in shortcuts in vs.NET: CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent region CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed CTRL+M CTRL+O - Collapse all regions not recursively - you'll see all child region but they'll be collapsed Which is pretty much all I want. Does anyone know where all the short cut keys are documented? John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Sep 7 07:41:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 08:41:43 -0400 Subject: [dba-VB] Serialization Message-ID: <00dc01c5b3a9$83ae2480$6c7aa8c0@ColbyM6805> Is anyone using serialization to save / restore class data to an XML stream? I have my System Variables (SysVars), which are a pair of classes: A SysVar class which is just a data container with a handful of public variables. A SysVars (plural) class which is the supervisor of The SysVar instances. SysVars contains a collection of SysVar instances. SysVar is supposed to load the instances at New(), it has properties that return one specific SysVar instance (by name) and is supposed to write any changes back out. Using the example code I found on the MS site for using serialization, the loading and saving of the data occurs through a Serializable data module which takes a filename and n object type, and returns an object of that object. That in itself is not a huge issue, but it does mean that the class is no longer loading its own data, i.e. you must now dim a variable and then call the SerializableData class, which returns an instance of SysVars with the data loaded. My question is, can a class have methods that serialize and deserialize its own data, making it self contained, or is it just necessary to do this from outside the class? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Wed Sep 7 11:01:53 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 7 Sep 2005 12:01:53 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C7D34D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABEF40@ADGSERVER> Are you moving from express to VS 2003? I don't think that the two are compatible, but I may be wrong. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 12:23 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Express / Visual Studio incompatibilities Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 7 12:11:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 13:11:55 -0400 Subject: [dba-VB] OT: PIC micro controllers Message-ID: <00eb01c5b3cf$44336bf0$6c7aa8c0@ColbyM6805> Is anyone here playing or working with PIC Microcontrollers? I have been interested in controller applications forever (in my previous life I was into electronics), and in fact I designed a vending machine while I was working down in Mexico that used a Z-World SBC. I have discovered that you can request engineering samples of these little beauties (PIC u controllers) and am starting to gather the stuff to program them. I was just wondering if anyone else does this stuff. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Sat Sep 10 13:07:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 10 Sep 2005 14:07:28 -0400 Subject: [dba-VB] VB.Net Express data handling Message-ID: <006a01c5b632$860aec50$6c7aa8c0@ColbyM6805> I was trying to pull an existing class that I wrote in the old VB.Net into VB Express and it didn't compile. In investigating why, I just ran across these two articles. The new stuff in Express is pretty darned cool. http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnadonet/h tml/datasetenhance.asp http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/htm l/newdtastvs05.asp John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From RRANTHON at sentara.com Wed Sep 14 08:09:55 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 09:09:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141310.j8EDAGT00658@databaseadvisors.com> Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. From Jdemarco at hudsonhealthplan.org Wed Sep 14 08:13:55 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 09:13:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Wed Sep 14 08:33:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 14 Sep 2005 09:33:49 -0400 Subject: [dba-VB] Zoom Box In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> Message-ID: <000601c5b930$fa585970$6c7aa8c0@ColbyM6805> Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Wed Sep 14 10:22:14 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 11:22:14 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF5@TTNEXCHCL2.hshhp.com> Just gave this a test and I like John's method better. Let me know if you want the test code to see it work. I added a property to the zoom form to hold the text box control from the calling form. Jim D. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, September 14, 2005 9:34 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From RRANTHON at sentara.com Wed Sep 14 11:16:04 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 12:16:04 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141616.j8EGGLT16740@databaseadvisors.com> Thanks, Jim, John, I'm sorry I didn't respond sooner, I 've got the list on Digest and had some trouble getting to the archives (which Bryan is fixing as we speak). Yes, please send me whatever code snippets you have, I've got the concept but not the tools. Thanks again. From jwcolby at colbyconsulting.com Fri Sep 16 19:01:19 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 16 Sep 2005 20:01:19 -0400 Subject: [dba-VB] I need help Message-ID: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Guys, I need some help, setting up a web site, email accounts and a database behind the web site. This stuff will be used to assist Rabbi Gellman in implementing an idea he has for assisting Katrina victims. http://www.msnbc.msn.com/id/9344139/site/newsweek/ I have a positive email response to an email I sent him offering him assistance. I have a call in to him to a phone number he gave me, and will be talking to him shortly. I am just trying to get some help lined up so I can move quickly when I know what is needed. Details will follow to those who volunteer when I know more. Thanks John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From carbonnb at gmail.com Sat Sep 17 10:52:29 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 17 Sep 2005 11:52:29 -0400 Subject: [dba-VB] [dba-SQLServer] I need help In-Reply-To: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> References: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Message-ID: On 16/09/05, John W. Colby wrote: > I need some help, setting up a web site, email accounts and a database > behind the web site. This stuff will be used to assist Rabbi Gellman in > implementing an idea he has for assisting Katrina victims. John, Even though I replied to you off-list, I'll offer whatever help I can. If you are using a Linux server to set this up on, I'd be more than happy to help. If you are setting this up on a MS server, I'll be more than happy to give what help I can, but I don't have any experience with MS servers. I can also do web coding. Web Design is a bit of a stretch for me, but taking the design and turning it into clean code, I can do. -- 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 RRANTHON at sentara.com Mon Sep 26 07:33:32 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 08:33:32 -0400 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: <200509261233.j8QCXuT31891@databaseadvisors.com> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From gray at utah.gov Mon Sep 26 08:49:12 2005 From: gray at utah.gov (Gary Ray) Date: Mon, 26 Sep 2005 07:49:12 -0600 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: The first assumption here is that you have a control array of option buttons - in other words, give the set of buttons the same name. Then this code should work: Select Case True Case optName(0).Value MsgBox optName(0).Caption Case optName(1).Value MsgBox optName(1).Caption Case optName(2).Value MsgBox optName(2).Caption Case Else MsgBox "Not Selected" End Select Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> RRANTHON at sentara.com 9/26/2005 6:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 26 10:08:27 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 11:08:27 -0400 Subject: [dba-VB] Fwd: Option Group and Select Case Statement Message-ID: <200509261508.j8QF8kT23373@databaseadvisors.com> Thanks, Gary, that's exactly what I was looking for. Have a good day! >>> Randall R Anthony 09/26/05 8:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From fhtapia at gmail.com Tue Sep 27 12:38:16 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 27 Sep 2005 10:38:16 -0700 Subject: [dba-VB] Soap Parameters? Message-ID: I have the following soap call, all I need is the two parameters "Account" and "PartNumber" I do not know looking in the helpfile how to incorporate them into this call... anyone done this sorta thing yet? OPTION EXPLICIT Dim strWebSvcWSDLURL Dim objSOAPClient Dim strNameSpace Dim SOAPClient Dim sxml Dim Result Dim strWebSvcNameSpace strWebSvcNameSpace = "http://WService.org//WSAData/RetailPrice" strWebSvcWSDLURL = "http://Wsweb2:8085/awdev/webservice/WSData.asmx?wsdl" Set SOAPClient = CreateObject("MSSOAP.SOAPClient30") On Error Resume Next SOAPClient.mssoapinit strWebSvcWSDLURL if err <> 0 then Wscript.echo "Initialization failed" + err.description end if Result = SOAPClient.RetailPrice() wscript.echo "Result=" + Result if err <> 0 then wscript.echo "err=" + err.description wscript.echo "faultcode=" + soapclient.faultcode wscript.echo "faultstring=" + soapclient.faultstring wscript.echo "FaultActor=" + soapclient.FaultActor wscript.echo "Detail=" + soapclient.Detail end if -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From listmaster at databaseadvisors.com Sun Sep 4 09:47:39 2005 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 04 Sep 2005 10:47:39 -0400 Subject: [dba-VB] Administrivia - List Software Upgrade Complete Message-ID: <431AD0CB.2128.3CF811@listmaster.databaseadvisors.com> The list software upgrade went as smoothly as it ever has and was upgraded without a hitch. I think all totalled the lists were down for less than 10 minutes. Have a wonderful rest of the weekend. Your Listmaster, -- Bryan Carbonnell - listmaster at databaseadvisors.com A feature is a bug with seniority. From jwcolby at colbyconsulting.com Mon Sep 5 08:33:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:33:48 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <916187228923D311A6FE00A0CC3FAA30ABEEEA@ADGSERVER> Message-ID: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Sep 5 08:54:31 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 09:54:31 -0400 Subject: [dba-VB] MyMovieCollection database In-Reply-To: <000001c5b21e$77f783c0$6c7aa8c0@ColbyM6805> Message-ID: <000101c5b221$5a6e7360$6c7aa8c0@ColbyM6805> I cannot attach the database using enterprise manager. When I try to do so, it opens a find dialog, which I use to find the movie database. As soon as I select the database, I get an "attach as" down in the bottom of the dialog, but it is "hardwired" for D:\... Which is a CD drive on my laptop. If I attempt to change the D:\ to C:\ the "OK" button grays out and I am no longer allowed to continue. So little time, so much time wasted trying to get Microsoft stuff to work. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 9:34 AM To: bheid at appdevgrp.com; dba-vb at databaseadvisors.com; SQLServer Subject: [dba-VB] MyMovieCollection database The starter kit for VB Express called MyMovieCollection appears to be working, however one of the fields in the SQL Server database is too short - the WebPageLink field. This database is used by the application but AFAICT I am not given any tools to work with the database itself. If this were in Access I would just open it and modify the length of the field and be done, but this is SQL Server. Can anyone tell me how to "attach" to this SQL Server database using SQL Enterprise manager so that I can make the mod necessary to allow this to work? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, August 29, 2005 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net - RSS reader - I have success... Cool! Thanks John. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, August 24, 2005 7:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - RSS reader - I have success... Well, I have a vb.net program reading an rss feed and storing fields in a table. Cooool stuff. When I'm finished massaging the code I'll post it to show how I did it. John W. Colby 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 Mon Sep 5 14:38:40 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 15:38:40 -0400 Subject: [dba-VB] VB.Net - Try/catch Message-ID: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From mikedorism at verizon.net Mon Sep 5 15:43:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Mon, 05 Sep 2005 16:43:22 -0400 Subject: [dba-VB] VB.Net - Try/catch In-Reply-To: <000201c5b251$71df93a0$6c7aa8c0@ColbyM6805> Message-ID: <000001c5b25a$7539f320$2e01a8c0@dorismanning> Most of the exception types have a Number property that holds this information. If you are using the generic exception, then you need to look at it's ToString property to find the exception type involved and add an additional Catch to collect those errors. I generally set my Try/Catch up like so... Try Do something Catch Ex as SQLClient.SQLException Do something Catch Ex as Exception Do something Finally Do something End Try Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, September 05, 2005 3:39 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - Try/catch Does the exception object have a numeric code that I can use in a test inside the catch? I am attempting to append data into a table and have a unique index on one field. Obviously if the insert (append) fails I want to trap that specific condition and ignore it, i.e. I already have that data and want to just reject it the next time. In order to do this I need to evaluate the exception object inside the catch. I am finding the string description of the error but not the numeric code equivalent. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 5 22:39:48 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 05 Sep 2005 23:39:48 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <000701c5b294$a4cc3f00$6c7aa8c0@ColbyM6805> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From R.Griffiths at bury.gov.uk Tue Sep 6 03:08:45 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Sep 2005 09:08:45 +0100 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: <200509060759.j867xV908785@smarthost.yourcomms.net> Hi You could customize a menu/toolbar and add it to your toolbar - there is one called 'Toggle all outling' under the Edit menu. Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 06 September 2005 04:40 To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB.Net - minimizing regions in code The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gray at utah.gov Tue Sep 6 10:25:43 2005 From: gray at utah.gov (Gary Ray) Date: Tue, 06 Sep 2005 09:25:43 -0600 Subject: [dba-VB] VB.Net - minimizing regions in code Message-ID: There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 11:23:21 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 12:23:21 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities Message-ID: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Tue Sep 6 13:21:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:21:13 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: Message-ID: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Tuesday, September 06, 2005 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code There is a blog entry with a discussion of keyboard shortcuts and some macro code for this here: http://weblogs.asp.net/rweigelt/archive/2003/07/06/9741.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> jwcolby at colbyconsulting.com 09/05/05 9:39 PM >>> The IDE code editor for .Net has expandable regions for functions etc. The little plus / minus symbols in the left hand margin. Is there any way to cause the regions to minimize with a key stroke so that you can see the outline without having to go click on each - to shrink each region down? It is a royal PITA to minimize everything, then have it all maximized the next time you open it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb 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 mikedorism at verizon.net Tue Sep 6 13:35:50 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 06 Sep 2005 14:35:50 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009d01c5b30f$c7fff950$6c7aa8c0@ColbyM6805> Message-ID: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From martyconnelly at shaw.ca Tue Sep 6 13:39:04 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Sep 2005 11:39:04 -0700 Subject: [dba-VB] Express / Visual Studio incompatibilities References: <002101c5b2ff$4efaefc0$6c7aa8c0@ColbyM6805> Message-ID: <431DE248.9060000@shaw.ca> Are you having problems with SQLDMO, you will have to read through the blogs http://blogs.msdn.com/sqlexpress/archive/2004/07/04/172956.aspx John W. Colby wrote: >Is it just me or are there some pretty serious incompatibilities between the >full on version of VB.Net and VB express. I am trying to move code back and >forth between the two environments and it rarely "just works". > >I have found all these neato keenarino applications demonstrating VB.Net >express. Try and move them backwards to Visual Studio and they just don't >work. Try and move working old code forward and it doesn't work, even when >run through the "conversion utility". > >As an example, the EnvDTE just doesn't exist as a native object or namespace >in Express. I found and referenced the EnvDte from VS but the code snippet >still doesn't work, claiming that I'm referencing a non-shared member (it >was apparently a shared member before?). > >So I am developing things in Visual Studio that I can't port to Express and >VV. What a pita. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > >_______________________________________________ >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 jwcolby at colbyconsulting.com Tue Sep 6 13:42:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:42:57 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <000e01c5b311$ce925680$2e01a8c0@dorismanning> Message-ID: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> I added a reference - Right click on the project / add reference. I just looked up just the phrase dte and found a knowledgebase article that discuses how to get it. Not only do you have to set a reference to the lib, you have to dim a variable and set it: Dim DTE As EnvDTE.DTE DTE = System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE") Further I have to do that inside each function that uses the DTE (which was every one). I could have dimmed DTE global to the module or even to the app but I am not sure how that would play. Further since a module does not have an "init" function, each function has to SET the variable anyway. It's just odd to me that published code does not do this stuff as part of the article. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, September 06, 2005 2:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Did you add the reference to the Project itself or did you import it within a class/module? If the latter, it is local only to that class/module. To do the former, go to the Project menu and find Properties all the way at the bottom. Any references you add there are global to the entire project. You may still have to instantiate an object variable within the class/module. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 2:21 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] VB.Net - minimizing regions in code Have you tried this? I have tried it in VB.Net express and now also in MDE 2002 and it doesn't work in either one of them. EnvDTE is not recognized, and if I go add a reference to it it still complains that DTE.ActiveDocumen needs an instance (is not static). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 6 13:49:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 06 Sep 2005 14:49:11 -0400 Subject: [dba-VB] VB.Net - minimizing regions in code In-Reply-To: <009e01c5b312$cfdb34c0$6c7aa8c0@ColbyM6805> Message-ID: <00a001c5b313$b0803570$6c7aa8c0@ColbyM6805> And then I found this (a blog): I think you have the same functionality with the built in shortcuts in vs.NET: CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent region CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed CTRL+M CTRL+O - Collapse all regions not recursively - you'll see all child region but they'll be collapsed Which is pretty much all I want. Does anyone know where all the short cut keys are documented? John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Sep 7 07:41:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 08:41:43 -0400 Subject: [dba-VB] Serialization Message-ID: <00dc01c5b3a9$83ae2480$6c7aa8c0@ColbyM6805> Is anyone using serialization to save / restore class data to an XML stream? I have my System Variables (SysVars), which are a pair of classes: A SysVar class which is just a data container with a handful of public variables. A SysVars (plural) class which is the supervisor of The SysVar instances. SysVars contains a collection of SysVar instances. SysVar is supposed to load the instances at New(), it has properties that return one specific SysVar instance (by name) and is supposed to write any changes back out. Using the example code I found on the MS site for using serialization, the loading and saving of the data occurs through a Serializable data module which takes a filename and n object type, and returns an object of that object. That in itself is not a huge issue, but it does mean that the class is no longer loading its own data, i.e. you must now dim a variable and then call the SerializableData class, which returns an instance of SysVars with the data loaded. My question is, can a class have methods that serialize and deserialize its own data, making it self contained, or is it just necessary to do this from outside the class? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bheid at appdevgrp.com Wed Sep 7 11:01:53 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 7 Sep 2005 12:01:53 -0400 Subject: [dba-VB] Express / Visual Studio incompatibilities In-Reply-To: <916187228923D311A6FE00A0CC3FAA30C7D34D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABEF40@ADGSERVER> Are you moving from express to VS 2003? I don't think that the two are compatible, but I may be wrong. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, September 06, 2005 12:23 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Express / Visual Studio incompatibilities Is it just me or are there some pretty serious incompatibilities between the full on version of VB.Net and VB express. I am trying to move code back and forth between the two environments and it rarely "just works". I have found all these neato keenarino applications demonstrating VB.Net express. Try and move them backwards to Visual Studio and they just don't work. Try and move working old code forward and it doesn't work, even when run through the "conversion utility". As an example, the EnvDTE just doesn't exist as a native object or namespace in Express. I found and referenced the EnvDte from VS but the code snippet still doesn't work, claiming that I'm referencing a non-shared member (it was apparently a shared member before?). So I am developing things in Visual Studio that I can't port to Express and VV. What a pita. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Sep 7 12:11:55 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 07 Sep 2005 13:11:55 -0400 Subject: [dba-VB] OT: PIC micro controllers Message-ID: <00eb01c5b3cf$44336bf0$6c7aa8c0@ColbyM6805> Is anyone here playing or working with PIC Microcontrollers? I have been interested in controller applications forever (in my previous life I was into electronics), and in fact I designed a vending machine while I was working down in Mexico that used a Z-World SBC. I have discovered that you can request engineering samples of these little beauties (PIC u controllers) and am starting to gather the stuff to program them. I was just wondering if anyone else does this stuff. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Sat Sep 10 13:07:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 10 Sep 2005 14:07:28 -0400 Subject: [dba-VB] VB.Net Express data handling Message-ID: <006a01c5b632$860aec50$6c7aa8c0@ColbyM6805> I was trying to pull an existing class that I wrote in the old VB.Net into VB Express and it didn't compile. In investigating why, I just ran across these two articles. The new stuff in Express is pretty darned cool. http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnadonet/h tml/datasetenhance.asp http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/htm l/newdtastvs05.asp John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From RRANTHON at sentara.com Wed Sep 14 08:09:55 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 09:09:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141310.j8EDAGT00658@databaseadvisors.com> Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. From Jdemarco at hudsonhealthplan.org Wed Sep 14 08:13:55 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 09:13:55 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Wed Sep 14 08:33:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 14 Sep 2005 09:33:49 -0400 Subject: [dba-VB] Zoom Box In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74016C3DF2@TTNEXCHCL2.hshhp.com> Message-ID: <000601c5b930$fa585970$6c7aa8c0@ColbyM6805> Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Wed Sep 14 10:22:14 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 14 Sep 2005 11:22:14 -0400 Subject: [dba-VB] Zoom Box Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C3DF5@TTNEXCHCL2.hshhp.com> Just gave this a test and I like John's method better. Let me know if you want the test code to see it work. I added a property to the zoom form to hold the text box control from the calling form. Jim D. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, September 14, 2005 9:34 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box Why don't you pass a pointer to the control itself? Then just deposit the results directly back in the control itself on the calling form. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, September 14, 2005 9:14 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Zoom Box You need to pass the control name to the zoom form (you may have to pass the form name as well if you're planning on implementing on many forms). You can do this by writing it to the zoom form's Tag property or by creating a public Property on the zoom form. HTH, Jim DeMarco -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Randall R Anthony Sent: Wednesday, September 14, 2005 9:10 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Zoom Box Hi all, I'm creating a "Zoom" box for text fields. Ie, when the user double clicks a form text box, a form with one text field appears and the contents of the text box are fully displayed without having to scroll through it. The easy part is opening the box and populating. How do I get the contents from the zoom box back into the form text field that it was called from? I've tried saving to string or form but I'm not having any luck. Thanks for your help. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From RRANTHON at sentara.com Wed Sep 14 11:16:04 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Wed, 14 Sep 2005 12:16:04 -0400 Subject: [dba-VB] Zoom Box Message-ID: <200509141616.j8EGGLT16740@databaseadvisors.com> Thanks, Jim, John, I'm sorry I didn't respond sooner, I 've got the list on Digest and had some trouble getting to the archives (which Bryan is fixing as we speak). Yes, please send me whatever code snippets you have, I've got the concept but not the tools. Thanks again. From jwcolby at colbyconsulting.com Fri Sep 16 19:01:19 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 16 Sep 2005 20:01:19 -0400 Subject: [dba-VB] I need help Message-ID: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Guys, I need some help, setting up a web site, email accounts and a database behind the web site. This stuff will be used to assist Rabbi Gellman in implementing an idea he has for assisting Katrina victims. http://www.msnbc.msn.com/id/9344139/site/newsweek/ I have a positive email response to an email I sent him offering him assistance. I have a call in to him to a phone number he gave me, and will be talking to him shortly. I am just trying to get some help lined up so I can move quickly when I know what is needed. Details will follow to those who volunteer when I know more. Thanks John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From carbonnb at gmail.com Sat Sep 17 10:52:29 2005 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 17 Sep 2005 11:52:29 -0400 Subject: [dba-VB] [dba-SQLServer] I need help In-Reply-To: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> References: <000201c5bb1a$f2a79560$6c7aa8c0@ColbyM6805> Message-ID: On 16/09/05, John W. Colby wrote: > I need some help, setting up a web site, email accounts and a database > behind the web site. This stuff will be used to assist Rabbi Gellman in > implementing an idea he has for assisting Katrina victims. John, Even though I replied to you off-list, I'll offer whatever help I can. If you are using a Linux server to set this up on, I'd be more than happy to help. If you are setting this up on a MS server, I'll be more than happy to give what help I can, but I don't have any experience with MS servers. I can also do web coding. Web Design is a bit of a stretch for me, but taking the design and turning it into clean code, I can do. -- 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 RRANTHON at sentara.com Mon Sep 26 07:33:32 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 08:33:32 -0400 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: <200509261233.j8QCXuT31891@databaseadvisors.com> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From gray at utah.gov Mon Sep 26 08:49:12 2005 From: gray at utah.gov (Gary Ray) Date: Mon, 26 Sep 2005 07:49:12 -0600 Subject: [dba-VB] Option Group and Select Case Statement Message-ID: The first assumption here is that you have a control array of option buttons - in other words, give the set of buttons the same name. Then this code should work: Select Case True Case optName(0).Value MsgBox optName(0).Caption Case optName(1).Value MsgBox optName(1).Caption Case optName(2).Value MsgBox optName(2).Caption Case Else MsgBox "Not Selected" End Select Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> RRANTHON at sentara.com 9/26/2005 6:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 26 10:08:27 2005 From: RRANTHON at sentara.com (Randall R Anthony) Date: Mon, 26 Sep 2005 11:08:27 -0400 Subject: [dba-VB] Fwd: Option Group and Select Case Statement Message-ID: <200509261508.j8QF8kT23373@databaseadvisors.com> Thanks, Gary, that's exactly what I was looking for. Have a good day! >>> Randall R Anthony 09/26/05 8:33 AM >>> Hi peeps, dumb question of the day. In Access, I can create an option group, then use a select case optiongroupname and run appropriate code within the case statement. How do I do this in VB? I've created a frame, within the frame I've put 3 option buttons. Here's the code: Private Sub cmdPrint() Select Case optButtons Case 1 msgbox "bob" Case 2 msgbox "fred" Case 3 msgbox "Al" End Select I receive an Argument not Optional error on the select Case statement. Your help is appreciated. From fhtapia at gmail.com Tue Sep 27 12:38:16 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 27 Sep 2005 10:38:16 -0700 Subject: [dba-VB] Soap Parameters? Message-ID: I have the following soap call, all I need is the two parameters "Account" and "PartNumber" I do not know looking in the helpfile how to incorporate them into this call... anyone done this sorta thing yet? OPTION EXPLICIT Dim strWebSvcWSDLURL Dim objSOAPClient Dim strNameSpace Dim SOAPClient Dim sxml Dim Result Dim strWebSvcNameSpace strWebSvcNameSpace = "http://WService.org//WSAData/RetailPrice" strWebSvcWSDLURL = "http://Wsweb2:8085/awdev/webservice/WSData.asmx?wsdl" Set SOAPClient = CreateObject("MSSOAP.SOAPClient30") On Error Resume Next SOAPClient.mssoapinit strWebSvcWSDLURL if err <> 0 then Wscript.echo "Initialization failed" + err.description end if Result = SOAPClient.RetailPrice() wscript.echo "Result=" + Result if err <> 0 then wscript.echo "err=" + err.description wscript.echo "faultcode=" + soapclient.faultcode wscript.echo "faultstring=" + soapclient.faultstring wscript.echo "FaultActor=" + soapclient.FaultActor wscript.echo "Detail=" + soapclient.Detail end if -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More...