<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with visualbasic</title>
      <link>http://ask.metafilter.com/tags/visualbasic</link>
      <description>Questions tagged with 'visualbasic' at Ask MetaFilter.</description>
	  <pubDate>Thu, 19 Nov 2009 19:23:17 -0800</pubDate> <lastBuildDate>Thu, 19 Nov 2009 19:23:17 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>MacgyverFilter: link sharing using MS Office</title>
	<link>http://ask.metafilter.com/138600/MacgyverFilter%2Dlink%2Dsharing%2Dusing%2DMS%2DOffice</link>	
	<description>Macgyver IT: I want my team to use something like del.icio.us to share links. But since this is ask.metafilter, I can&apos;t use the obvious right answer. I need to make something like it myself, using &lt;strike&gt;bubblegum and string&lt;/strike&gt; the MS Office 2000 suite and my knowledge of VB. What would be my best approach? This is clearly insane, but I want to try &lt;small&gt;(please don&apos;t ask why I can&apos;t use something reasonable -- I just can&apos;t)&lt;/small&gt;. I don&apos;t need the full del.icio.us, just links and tags. I&apos;m also okay with having only one person at a time able to add a link to the dB, and everyone sharing a big ball of links.&lt;br&gt;
&lt;br&gt;
I&apos;ve thought about using an Excel file, but I don&apos;t know if there&apos;s a reasonable way to do that, or what that way would be. Could that work, or should I bite the bullet and go for Access? Is there a feature hidden somewhere (in Outlook?) that I&apos;m overlooking?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.138600</guid>
	<pubDate>Thu, 19 Nov 2009 19:23:17 -0800</pubDate>
	<category>access</category>
	<category>delicious</category>
	<category>excel</category>
	<category>link</category>
	<category>msoffice</category>
	<category>office</category>
	<category>office2000</category>
	<category>programming</category>
	<category>sharing</category>
	<category>vb</category>
	<category>vba</category>
	<category>visualbasic</category>
	<dc:creator>Monday, stony Monday</dc:creator>
	</item>
	<item>
	<title>Creating video from a program help</title>
	<link>http://ask.metafilter.com/127014/Creating%2Dvideo%2Dfrom%2Da%2Dprogram%2Dhelp</link>	
	<description>I&apos;m looking for a library, package, product or some sample code in either JAVA or Visual Basic that would allow me to create a video from my program.  I have some software tools I&apos;ve developed and I&apos;d like some functionality to my program that could take existing video clips and pictures and then assemble them into a video.  I would like the final video format to be FLV however any popular format would do.  Any help would be greatly appreciated.  Have a great one.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.127014</guid>
	<pubDate>Thu, 09 Jul 2009 16:16:24 -0800</pubDate>
	<category>avi</category>
	<category>flash</category>
	<category>java</category>
	<category>programming</category>
	<category>video</category>
	<category>visualbasic</category>
	<dc:creator>JohnGL</dc:creator>
	</item>
	<item>
	<title>Visual Basic hates me: [x]yes []no</title>
	<link>http://ask.metafilter.com/125674/Visual%2DBasic%2Dhates%2Dme%2Dxyes%2Dno</link>	
	<description>Homeworkfilter: I&apos;m using VB 2008 Express and I need some help with checkboxes. 1. I have 12 checkboxes and I need each of these to pass an integer value of 0 (unchecked) or 1 (checked) to the next window when the &quot;next&quot; button is clicked.&lt;br&gt;
&lt;br&gt;
2. For bonus credit and a gold star: I need to pass values from 12 dropdown boxes (each has 3-5 possible options). &lt;br&gt;
&lt;br&gt;
Ex. How can I assign an integer value of 3 to the 1st item in the dropdown? How do I then pass this value of 3 to the next window where it will be multiplied by the checkox value?&lt;br&gt;
&lt;br&gt;
Any help is appreciated</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.125674</guid>
	<pubDate>Wed, 24 Jun 2009 05:22:55 -0800</pubDate>
	<category>vb</category>
	<category>visualbasic</category>
	<dc:creator>icarus</dc:creator>
	</item>
	<item>
	<title>Help me make sense of excel and VB</title>
	<link>http://ask.metafilter.com/123955/Help%2Dme%2Dmake%2Dsense%2Dof%2Dexcel%2Dand%2DVB</link>	
	<description>I want to take a small worksheet I created in excel and turn it into a standalone application. How? I&apos;ve made a pretty simple excel sheet budget that calculates values for certain criteria and shows totals for 10 years for various budgeting cases.&lt;br&gt;
&lt;br&gt;
I want to make this into an application using VB so that a someone can execute it, type in values into fields, rather than cells, and so that a chart output is displayed given the totals when a user submits all the values.&lt;br&gt;
&lt;br&gt;
Anyone want to help me figure out where to start? I&apos;m thinking I should use visual basic since that is the only thing I am (a little) familiar with.&lt;br&gt;
&lt;br&gt;
Help mefi geniuses!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.123955</guid>
	<pubDate>Fri, 05 Jun 2009 08:14:42 -0800</pubDate>
	<category>application</category>
	<category>calculate</category>
	<category>excel</category>
	<category>visualbasic</category>
	<dc:creator>icarus</dc:creator>
	</item>
	<item>
	<title>Double Click Me All The Way To Heaven</title>
	<link>http://ask.metafilter.com/122441/Double%2DClick%2DMe%2DAll%2DThe%2DWay%2DTo%2DHeaven</link>	
	<description>Visual Basic 6 Filter: Double click on file, my program opens that file.  How do I do it? Quick Summary:  I have a program that I have written in VB6.  I would like to associate this program with a file extension.  When I double click on a file with this extension (BRD) I want my program to automatically open with that file loaded.&lt;br&gt;
&lt;br&gt;
I was able to make this work on the command line.  If I type &lt;br&gt;
&lt;strong&gt;&quot;myexecutable.exe openthisfile.brd&quot;&lt;/strong&gt;&lt;br&gt;
then my program opens that file.  I used this code...&lt;br&gt;
&lt;br&gt;
Private Sub Form_Load()&lt;br&gt;
   If ((Command &lt;&gt; &quot;&quot;) And (FileExists(Command))) Then&lt;br&gt;
      OpenSoundBoard(Command)&lt;br&gt;
   End If&lt;br&gt;
End Sub&lt;br&gt;
&lt;br&gt;
I am not concerned with registering my program with Windows.  I would like, however, to always open BRD files with my program.  I have done this without using the registry by telling Windows to always use myprogram.exe to open BRD files.   However, when I double click on a BRD file myprogram.exe throws an error:&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Run-time Error &apos;52&apos;:&lt;br&gt;
&lt;br&gt;
Bad file name or number&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
I don&apos;t know the terminology for this problem, so searching for an answer has been unfruitful.  I am no expert in VB, but I know enough to get myself into trouble - as I have done here.  Any help would be appreciated.  Thanks MeFites!&lt;/&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.122441</guid>
	<pubDate>Mon, 18 May 2009 14:11:04 -0800</pubDate>
	<category>doubleclick</category>
	<category>openfile</category>
	<category>resolved</category>
	<category>vb</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<dc:creator>Brettus</dc:creator>
	</item>
	<item>
	<title>How do I replace a Visual Basic 6 runtime file killed by a Windows security update?</title>
	<link>http://ask.metafilter.com/116213/How%2Ddo%2DI%2Dreplace%2Da%2DVisual%2DBasic%2D6%2Druntime%2Dfile%2Dkilled%2Dby%2Da%2DWindows%2Dsecurity%2Dupdate</link>	
	<description>A Visual Basic 6 (ugh) runtime file distributed with our internal Access database has been killed by a recent Windows security update. It&apos;s hard to gather support information (especially since VB6 is about 8.7 million years old) and so I was wondering if anyone out there can help me track down a more recent copy of the runtime file in question&amp;mdash;msflxgrd.ocx&amp;mdash;or otherwise fix the problem? It&apos;s my understanding from reading a couple of tech forums that there is a patched version of msflxgrd.ocx that was rolled out in a VB6 security update some time in the last few years. However, we don&apos;t have VB6 installed on any of our machines so I can&apos;t run the patch program to get this one updated file. I don&apos;t want to get a copy from one of those FREE OCX W00T! websites that come up when searching  for the filename, for pretty obvious reasons. Can anyone recommend a better way to get a copy?&lt;br&gt;
&lt;br&gt;
In the meantime we have been uninstalling &lt;a href=&quot;http://support.microsoft.com/kb/960715&quot;&gt;KB960715&lt;/a&gt; on our PCs as a temporary workaround. I believe I could rewrite a key in the registry to make the security update stop killing the OCX but I would prefer not to meddle on individual machines like that if possible.&lt;br&gt;
&lt;br&gt;
Any advice appreciated. Thanks!&lt;br&gt;
&lt;br&gt;
P.S. I am WELL aware that we should be moving onwards and upwards with more modern tech, but for the short-to-medium term the nonprofit using this system really doesn&apos;t have the time or resources to rewrite the front end to use something other than this control. (Honestly, I&apos;m really hoping to get something out to them today so they can get some work done again!)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.116213</guid>
	<pubDate>Mon, 09 Mar 2009 08:47:48 -0800</pubDate>
	<category>access</category>
	<category>microsoft</category>
	<category>resolved</category>
	<category>visualbasic</category>
	<category>windowsxp</category>
	<dc:creator>bcwinters</dc:creator>
	</item>
	<item>
	<title>Stupid Outlook! No cookie!</title>
	<link>http://ask.metafilter.com/113217/Stupid%2DOutlook%2DNo%2Dcookie</link>	
	<description>VBA programmers: is there any way to control the formatting of Outlook Contacts Body text? (The &quot;Body&quot;, BTW, is the large &quot;notes&quot; section at the bottom of the Contacts form.)&lt;br&gt;
&lt;br&gt;
My searches on internet forums have proven useless, and I even got an MS online tech support person to say it probably couldn&apos;t be done (but I&apos;ve proven them wrong before, so it&apos;s not exactly like visiting the Oracle at Delphi).&lt;br&gt;
&lt;br&gt;
Here&apos;s some ideas I&apos;ve tried, and why they don&apos;t work:&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;mapiContacts.ContactItems(i).BodyFormat = olFormatPlain&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;(Turns out the BodyFormat property is only available for mail &amp;amp; post items, despite what it suggests under Help for ContactItems.Body).&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Dim str As String&lt;br&gt;
str = mapiContacts.ContactItems(i).BodyFormat&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;mapiContacts.ContactItems(i).BodyFormat = str&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;(This requires every stinking Contact to be updated, every time I run this program.)&lt;/em&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113217</guid>
	<pubDate>Mon, 02 Feb 2009 14:38:19 -0800</pubDate>
	<category>code</category>
	<category>Microsoft</category>
	<category>MS</category>
	<category>Outlook</category>
	<category>programming</category>
	<category>VBA</category>
	<category>VisualBasic</category>
	<dc:creator>IAmBroom</dc:creator>
	</item>
	<item>
	<title>How to automatically clear Outlook secure temp folder?</title>
	<link>http://ask.metafilter.com/108817/How%2Dto%2Dautomatically%2Dclear%2DOutlook%2Dsecure%2Dtemp%2Dfolder</link>	
	<description>Does any know how to create a script to automatically empty the Outlook secure temp folder when exiting Outlook? For some of my users this folder is filling up way too often and then they are unable to view images in Outlook (only see red x).  Since there is no permanent solution, does anyone know of a way to write a script that automatically empty this folder when the user closes Outlook?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.108817</guid>
	<pubDate>Tue, 09 Dec 2008 12:22:45 -0800</pubDate>
	<category>OLK</category>
	<category>Outlook</category>
	<category>script</category>
	<category>VB</category>
	<category>visualbasic</category>
	<dc:creator>paulyballs</dc:creator>
	</item>
	<item>
	<title>Decimal seconds, please.</title>
	<link>http://ask.metafilter.com/93718/Decimal%2Dseconds%2Dplease</link>	
	<description>Microsoft Excel VBA question: Converting decimal degrees to degrees-minutes-seconds (DMS), with rounding customization. I&apos;m pretty proficient with Excel but am a complete n00b when it comes to programming even Visual Basic. I needed to convert some decimal degrees into DMS format, and failing to find a function that did so, I went to Google and found &lt;a href=&quot;http://support.microsoft.com/kb/213449&quot;&gt;this page&lt;/a&gt;. Surprisingly enough, both of those modules worked successfully, allowing me to access them through the Function menu. I was even able to figure out how to change the function name to something I find clearer.&lt;br&gt;
&lt;br&gt;
My one gripe about the Decimal-to-DMS conversion is that it doesn&apos;t allow for any numbers after the decimal point in the Seconds part of the output. I wouldn&apos;t usually mind (I know how tiny a second is), but I&apos;m using this for a mapping application where meters matter, and the rounding is throwing me off. Can the hive mind help me get decimal seconds?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.93718</guid>
	<pubDate>Tue, 10 Jun 2008 14:03:50 -0800</pubDate>
	<category>excel</category>
	<category>microsoft_excel</category>
	<category>microsoft_office</category>
	<category>microsoftexcel</category>
	<category>microsoftoffice</category>
	<category>vba</category>
	<category>visual_basic</category>
	<category>visualbasic</category>
	<category>visualbasicforapplications</category>
	<dc:creator>dondiego87</dc:creator>
	</item>
	<item>
	<title>Can&apos;t calculate paired T-value in Visual Basic</title>
	<link>http://ask.metafilter.com/91553/Cant%2Dcalculate%2Dpaired%2DTvalue%2Din%2DVisual%2DBasic</link>	
	<description>Visual Basic and Excel: How do I replicate the results of excel&#8217;s internal function for paired dual tailed t-test in Visual Basic. I tried and failed, where did I go wrong? I&#8217;m admittedly a novice at Visual basic, but I succeeded in reproducing the t-test for Two-sample equal variance (homoscedastic) in Visual Basic. TTEST(array1,array2,2,2). I&#8217;m at a loss why I can&#8217;t be able to do the same for the paired t-test.&lt;br&gt;
&lt;br&gt;
One possible explanation could be that I&#8217;m not using the same formula as excel does, but the formula that excel uses for the TTEST(array1,array2,2,1) is nowhere to be found. I used the formula in my statistics book that agreed with the one called Dependent t-test from the &lt;a href=&quot;http://en.wikipedia.org/wiki/Student&apos;s_t-test#Dependent_t-test&quot;&gt;Wikipedia page for student&#8217;s T-test&lt;/a&gt; .&lt;br&gt;
Is that the one excel uses for its TTEST(array1,array2,2,1) function?&lt;br&gt;
&lt;br&gt;
 Where else could I have gone wrong?&lt;br&gt;
&lt;br&gt;
This is the code I made (again, I&#8217;m a novice, be gentle):&lt;br&gt;
&lt;br&gt;
&apos;The input consist of the area the data is located in, the columns containing the data we will use and the number of rows the area consist of&lt;br&gt;
Function t_test1(area, column1, column2, NoOfRows)&lt;br&gt;
&lt;br&gt;
Dim i, X_SubD, X_SubD2, Sample_stdev, T_TestValue&lt;br&gt;
&lt;br&gt;
&apos;Will eventually become the average difference&lt;br&gt;
X_SubD = 0&lt;br&gt;
&lt;br&gt;
&apos;Will eventually become the sum of squared difference&lt;br&gt;
X_SubD2 = 0&lt;br&gt;
Sample_stdev = 0&lt;br&gt;
&lt;br&gt;
For i = 1 To NoOfRows&lt;br&gt;
&lt;br&gt;
X_SubD = X_SubD + (area(i, column1) - area(i, column2))&lt;br&gt;
&lt;br&gt;
X_SubD2 = X_SubD2 + (area(i, column1) - area(i, column2)) ^ 2&lt;br&gt;
 &lt;br&gt;
Next i&lt;br&gt;
&lt;br&gt;
&apos;Calculate the average&lt;br&gt;
X_SubD = X_SubD / NoOfRows&lt;br&gt;
&lt;br&gt;
&apos;Calculate the sample standard deviation&lt;br&gt;
Sample_stdev = ((X_SubD2 - NoOfRows * X_SubD ^ 2) / (NoOfRows - 1)) ^ 0.5&lt;br&gt;
&lt;br&gt;
&apos;Calculate T-value&lt;br&gt;
T_TestValue = X_SubD / (Sample_stdev / (NoOfRows ^ 0.5))&lt;br&gt;
&lt;br&gt;
&apos;Look up the significance and return the value&lt;br&gt;
If T_TestValue &amp;lt; 0 Then&lt;br&gt;
t_test1 = Application.WorksheetFunction.TDist(-T_TestValue, 2 * NoOfRows - 1, 2)&lt;br&gt;
Else&lt;br&gt;
t_test1 = Application.WorksheetFunction.TDist(T_TestValue, 2 * NoOfRows - 1, 2)&lt;br&gt;
End If&lt;br&gt;
&lt;br&gt;
End Function</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.91553</guid>
	<pubDate>Fri, 16 May 2008 02:53:16 -0800</pubDate>
	<category>excel</category>
	<category>VisualBasic</category>
	<dc:creator>JeNeSaisQuoi</dc:creator>
	</item>
	<item>
	<title>Visual Basic Communities</title>
	<link>http://ask.metafilter.com/79739/Visual%2DBasic%2DCommunities</link>	
	<description>&lt;b&gt;Visual Basic communities&lt;/b&gt;.  Where can I find a supportive community that will help me become a better VB .NET programmer? I&apos;m writing a rather complex .NET application, using Google to get answers to my (rather frequent) questions.  In doing so I find helpful contributions in  communities such as vbdotnetheaven, devcity and so on.  I keep feeling I should pause a little, join up and start contributing.&lt;br&gt;
&lt;br&gt;
I&apos;m prepared to put in some effort, contribute, build a profile and hopefully become a better programmer as a result.  My question is, where do I put in the time?&lt;br&gt;
&lt;br&gt;
I&apos;m not smart enough for MSDN.  The stuff there makes my brain hurt.  I need something a little clearer, simpler, without being completely - well, Basic.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.79739</guid>
	<pubDate>Sat, 29 Dec 2007 21:38:56 -0800</pubDate>
	<category>communities</category>
	<category>net</category>
	<category>programming</category>
	<category>visualbasic</category>
	<dc:creator>grahamwell</dc:creator>
	</item>
	<item>
	<title>Fed up with Microsoft (.NET)</title>
	<link>http://ask.metafilter.com/78206/Fed%2Dup%2Dwith%2DMicrosoft%2DNET</link>	
	<description>Best programming language for internal automation? I don&apos;t have any formal programming training but have written and read enough that my code is fairly &apos;tight&apos; - all object-oriented, all of my projects utilize code-reuse from the classes I&apos;ve created, etc.&lt;br&gt;
&lt;br&gt;
I write programs to automate tasks I perform as a DB admin.  I have one intra-office app with an interface but all the others are just desktop apps (most without forms) for automation - a lot of data-access, file preparation &amp;amp; archival, data-logging, etc. We are on a Microsoft platform so most of my code is in VB6, some in VB.NET, some in VBScript, and some in SQL. I have flirted with JavaScript and C# and don&apos;t think I&apos;d have much trouble switching.&lt;br&gt;
&lt;br&gt;
Over the years I&apos;ve grown increasingly frustrated at Microsoft&apos;s direction with regards to the security implementation in Vista, the ever-changing/expanding nature of .NET, etc. After a year of wanting to wipe Vista I finally did, putting 64-bit XP on my machine...what a relief! I&apos;ve also seen the advantages of open source - its flexibility, availability, cross-platform nature, and constant innovation by other programmers and users.&lt;br&gt;
&lt;br&gt;
Anyway, after re-installing everything, some of my compiled VB.NET programs no longer work! The particular project sparking this question was compiled and stable for over a year on 32-bit XP and Vista; it is suddenly broken (even after I checked to ensure it was compiled to run on x86 - a gotcha I&apos;d already run into on 64-bit). I have had this happen before when the latest &amp;amp; greatest &apos;.NET framework&apos; or VisualStudio version was released, and frankly I&apos;m sick of it.&lt;br&gt;
&lt;br&gt;
After struggling for hours to track down the reason for my program suddenly being broken I just said &quot;screw it&quot; and started re-writing it in VBScript...though there are lots of disadvantages to a scripting language (especially error-handling and forms), the BIG advantage is that every VBScript program I&apos;ve written during the past 7 years still works perfectly on the 8 or 10 flavors of Windows on my network. I never have to install special frameworks or DLLs (depending upon what object model I&apos;m referencing) or anything else - it just works.&lt;br&gt;
&lt;br&gt;
So my question is this: what would you recommend for non-web intranet programming of the sort I&apos;m doing? Something that will work well on all flavors of Windows from 2000 Server to Vista 64, allow disk and network drive access (with the Windows Server security model), easy data access for SQL Server and Microsoft Access, etc.? A good IDE would be nice too, particularly when I&apos;m learning the language - please throw in any IDE recommendations you have as well (Sharp?).&lt;br&gt;
&lt;br&gt;
I&apos;m guessing Java would be the way to go but I&apos;m just wondering if there are other recommendations. Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.78206</guid>
	<pubDate>Sun, 09 Dec 2007 11:36:46 -0800</pubDate>
	<category>computer</category>
	<category>programming</category>
	<category>VisualBasic</category>
	<dc:creator>jjsonp</dc:creator>
	</item>
	<item>
	<title>VB in the tree</title>
	<link>http://ask.metafilter.com/74338/VB%2Din%2Dthe%2Dtree</link>	
	<description>vbFilter: Outputting results to a treeview object in Excel. Currently I am working on a script that will query an access DB and look for the first 4 users that&apos;s dates are less than 5 days of the current date which is shown below.&lt;br&gt;
 &lt;br&gt;
The current script is running in Excel&apos;s VB compiler. The one thing I want to do is output the results to a treeview object in excel.&lt;br&gt;
 &lt;br&gt;
&lt;blockquote&gt;Private Sub UserForm_Initialize()&lt;br&gt;
Label1.Caption = Date&lt;br&gt;
    On Error GoTo Error&lt;br&gt;
    Dim cnn As New ADODB.Connection&lt;br&gt;
    Dim rst As New ADODB.Recordset&lt;br&gt;
    cnn.Open &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp;amp; _&lt;br&gt;
             &quot;Data Source=F:\SAIO\Users.mdb&quot;&lt;br&gt;
Dim i As Integer&lt;br&gt;
rst.Open &quot;SELECT [ntlogin] FROM [scon] GROUP BY [ntlogin]&quot; &amp;amp; _&lt;br&gt;
         &quot; HAVING (Max([date]) &lt;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;-- Feel free to probe me for more information if you need.&lt;/b&gt;&lt;/blockquote&gt;&lt;/&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.74338</guid>
	<pubDate>Sun, 21 Oct 2007 21:39:46 -0800</pubDate>
	<category>excel</category>
	<category>vb</category>
	<category>visualbasic</category>
	<dc:creator>dnthomps</dc:creator>
	</item>
	<item>
	<title>Stupid database! Be more connecty!</title>
	<link>http://ask.metafilter.com/59039/Stupid%2Ddatabase%2DBe%2Dmore%2Dconnecty</link>	
	<description>Can I connect a flash program to a local offline Access database without having to run my computer as a webserver? I would like to use Flash as a front end for a local Access database. Ideally, to run a swf file and connect to an access .mdb on the network, or in the same folder if need be. All searches for tutorials brought me running .asp on a webserver and I&apos;d rather not have to do that.&lt;br&gt;
&lt;br&gt;
I know very little about Flash, nothing about .ASP (which all the tutorials seem to suggest), a decent understanding of MySQL, VB and a good understanding of database theory.&lt;br&gt;
&lt;br&gt;
If you have any other suggestions, I&apos;ll gladly read and investigate, but I&apos;m a designer by trade not a programmer so I&apos;m limited in what I can learn or buy. &lt;br&gt;
&lt;br&gt;
&lt;small&gt;Why not use Access itself? Well, because I&apos;m writing a program for relative computer illiterates that will replace a task that&apos;s been done by hand for years. So the more I can hold their hand, interfacewise (sliding transitions from one form to another) and the more I can make the metaphors work the way they should as opposed to just dressing them up, the more comfortable they&apos;ll feel, the smoother the transition will be, the more tickertape parades for me.&lt;br&gt;
&lt;br&gt;
I realize there are more advanced development environments that connect to Access, but since all the work I&apos;ll be doing can be applied back to the database in simple queries they all seem to be overkill. And flash seems to be the easiest development environment that suited itself to &quot;flashy&quot; applications and animations (and I already have it...)&lt;br&gt;
&lt;br&gt;
Don&apos;t worry, this isn&apos;t mission critical or anything.&lt;/small&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.59039</guid>
	<pubDate>Tue, 20 Mar 2007 07:33:07 -0800</pubDate>
	<category>access</category>
	<category>adobeflash</category>
	<category>db</category>
	<category>flash</category>
	<category>macromediaflash</category>
	<category>odbc</category>
	<category>visualbasic</category>
	<dc:creator>Brainy</dc:creator>
	</item>
	<item>
	<title>How do I get the names of an ActiveX control&apos;s members?</title>
	<link>http://ask.metafilter.com/42589/How%2Ddo%2DI%2Dget%2Dthe%2Dnames%2Dof%2Dan%2DActiveX%2Dcontrols%2Dmembers</link>	
	<description>I have to write a Visual Basic 6 program that checks that an ActiveX control&apos;s properties and methods are correctly documented in a Word document. How do I get a list of a control&apos;s properties and methods, given its filename? Given the filename &apos;MyControl.ocx&apos;, for example, how would I obtain an array of its properties and methods?&lt;br&gt;
&lt;br&gt;
&lt;small&gt;I have OLE Viewer, a Microsoft utility that can generate IDL information for an ActiveX control. This contains, amongst other junk, all the control&apos;s properties and methods. Running &apos;oleview.exe &quot;C:/path/to/MyControl.ocx&quot;&apos; generates the IDL in a window - is there a way of saving this IDL stuff to a file using a command-line option that I could call from VB? If so, I could open up the saved IDL file and use VB&apos;s (limited) string functions to get a list of properties and methods.&lt;br&gt;
&lt;br&gt;
Is there, however, an easier way?&lt;br&gt;
&lt;br&gt;
Ideally, I&apos;d like to be able to do &lt;code&gt;CreateObject(&quot;MyControlName&quot;)&lt;/code&gt; and then use some VB function to get a collection of the class member names. All the controls I want to check are registered on my PC.&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
&lt;small&gt;&lt;small&gt;(I&apos;m stuck with VB6 since my work PC is ancient.)&lt;/small&gt;&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.42589</guid>
	<pubDate>Thu, 20 Jul 2006 13:20:00 -0800</pubDate>
	<category>activex</category>
	<category>programming</category>
	<category>vb</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<dc:creator>matthewr</dc:creator>
	</item>
	<item>
	<title>Loops, Loops, Loops</title>
	<link>http://ask.metafilter.com/41633/Loops%2DLoops%2DLoops</link>	
	<description>Alright Visual Basic Gurus: Do your worst! Why Can&apos;t I Loop? (VB6) This code makes sense to me, but when I run it, it says &quot;Loop Without Do&quot;.  Any suggestions on how to fix?&lt;br&gt;
&lt;br&gt;
Dim FirstPaymentDate As Date&lt;br&gt;
Dim CurrRowValue As Single&lt;br&gt;
Dim NumStudentsInFlex2 As Single&lt;br&gt;
NumStudentsInFlex2 = MSHFlexGrid2.Rows&lt;br&gt;
CurrRowVal = 1&lt;br&gt;
Do While CurrRowVal &amp;lt; NumStudentsInFlex2   &apos;While counter is less than number of rows in all students grid&lt;br&gt;
YesDate = 0&lt;br&gt;
MSHFlexGrid2.Row = CurrRowVal&lt;br&gt;
        &apos;MsgBox CurrRowVal &amp;amp; &quot;(&quot; &amp;amp; MSHFlexGrid2.Row &amp;amp; &quot;)&quot; &amp;amp; &quot; / &quot; &amp;amp; MSHFlexGrid2.Rows &amp;amp; &quot; &quot; &amp;amp; MSHFlexGrid2.TextMatrix(MSHFlexGrid2.Row, 0)&lt;br&gt;
        If MSHFlexGrid2.TextMatrix(CurrRowVal, 2) = Date Then&lt;br&gt;
            MSHFlexGrid1.AddItem (MSHFlexGrid2.TextMatrix(MSHFlexGrid2.Row, 0)) &amp;amp; vbTab &amp;amp; &quot;First Bill&quot;&lt;br&gt;
            CurrRowVal = CurrRowVal + 1&lt;br&gt;
            Loop&lt;br&gt;
            End If&lt;br&gt;
        If MSHFlexGrid2.TextMatrix(CurrRowVal, 3) = Date Then&lt;br&gt;
            MSHFlexGrid1.AddItem (MSHFlexGrid2.TextMatrix(MSHFlexGrid2.Row, 0)) &amp;amp; vbTab &amp;amp; &quot;Last Bill&quot;&lt;br&gt;
            CurrRowVal = CurrRowVal + 1&lt;br&gt;
            Loop&lt;br&gt;
            End If&lt;br&gt;
        FirstPaymentDate = MSHFlexGrid2.TextMatrix(MSHFlexGrid2.Row, 2)&lt;br&gt;
            YesDate = 0&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 1, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 2, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 3, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 4, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 5, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 6, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 7, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 8, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If Format(Date, &quot;MM/DD/YYYY&quot;) = Format(DateAdd(&quot;m&quot;, 9, FirstPaymentDate), &quot;MM/DD/YYYY&quot;) Then YesDate = 1&lt;br&gt;
            If YesDate = 1 Then MSHFlexGrid1.AddItem (MSHFlexGrid2.TextMatrix(MSHFlexGrid2.Row, 0)) &amp;amp; vbTab &amp;amp; &quot;Interval Bill&quot;&lt;br&gt;
CurrRowVal = CurrRowVal + 1&lt;br&gt;
Loop</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.41633</guid>
	<pubDate>Thu, 06 Jul 2006 18:29:33 -0800</pubDate>
	<category>loop</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<dc:creator>fvox13</dc:creator>
	</item>
	<item>
	<title>VB? WTF? :(</title>
	<link>http://ask.metafilter.com/38372/VB%2DWTF</link>	
	<description>After spending so many years in *nix environments, I need to get up to speed with Microsoft products (specifically vb.net) without losing my sanity. I&apos;m graduating this weekend with a BS in computer science and am on the prowl for employment. I&apos;ve been working primarily in a Linux environment for most of my life and was employed as a *nix admin at my university during the entire course of my stay there, dabbling with Microsoft products only when absolutely necessary.&lt;br&gt;
&lt;br&gt;
Unfortunately there are very few opportunities for tech work in my area, and I can&apos;t immediately jump ship for a number of financial and personal reasons. In other words, I&apos;m looking for just about anything now, hoping that I&apos;ll be able to perhaps move and find something more ideal in two years or so. The best prospect I&apos;ve found so far is an almost exclusively-Microsoft shop. The pay is decent and I know a few of the employees who seem to be pretty happy there, but I was told that if I were hired, one of my first projects would be assisting in porting a pretty large application from VB5(!) to VB.NET. So, I guess I&apos;m going to need to learn pre-and-post .NET VB. There are going to be a few more experienced developers on the project, but I&apos;d like to get up to speed as quickly as possible in order to do my fair share. They&apos;re aware of my lack of experience with the environment, but have expressed interest in me anyway.&lt;br&gt;
&lt;br&gt;
I&apos;m aware of VB&apos;s rather.. lackluster reputation and so I ask you, dear mefites, if you can suggest anything to make this process less painful. What are some good VB/.NET books? Are there any IDEs besides visual studio worth checking out? (currently, I use emacs + gnumake + sometimes ant) What&apos;s up with unit testing in a .NET environment? Any other words of wisdom?&lt;br&gt;
&lt;br&gt;
I want to make it clear that I&apos;m not totally inexperienced with application development in general, just with VB or pretty much anything else Microsoft. Most of the graphical standalone applications I&apos;ve had a hand in were Qt based, written in either c++ or one of the higher level languages with qt bindings (python). Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.38372</guid>
	<pubDate>Wed, 17 May 2006 12:57:03 -0800</pubDate>
	<category>.net</category>
	<category>cultureshock</category>
	<category>visualbasic</category>
	<dc:creator>(lambda (x) x)</dc:creator>
	</item>
	<item>
	<title>How do I make my application work on all computers?</title>
	<link>http://ask.metafilter.com/37905/How%2Ddo%2DI%2Dmake%2Dmy%2Dapplication%2Dwork%2Don%2Dall%2Dcomputers</link>	
	<description>How can I bundle OCXs, DLLs, and other required files with my Visual Basic application? VB6 - I&apos;m done with writing my big Tuition and Billing program, and I&apos;ve been testing it out on several machines, in several locations. On some, it won&apos;t work, and a runtime error is thrown that says it can&apos;t find a particular DLL or OCX or reference. Is there a compile option I can use to include these files, or some way to make my installer install them (I use the Nullsoft NSIS installer)?  Anything else I should be aware of as far as including runtimes or anything else I need?&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.37905</guid>
	<pubDate>Tue, 09 May 2006 21:06:50 -0800</pubDate>
	<category>applicationdevelopment</category>
	<category>runtime</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<dc:creator>fvox13</dc:creator>
	</item>
	<item>
	<title>Visual Basic 6 Date Comparison by Month</title>
	<link>http://ask.metafilter.com/35805/Visual%2DBasic%2D6%2DDate%2DComparison%2Dby%2DMonth</link>	
	<description>Last Minute Visual Basic 6 Help!!!  How do I compare a given date to today&apos;s date, based on a number of months? I&apos;m writing a tuition and billing program for my former high school, which is due tomorrow.  The only part that&apos;s really making me unsure of my abilities is the part that generates bills. I&apos;ve got it set up so the user can generate by date, student, and tuition plan. It&apos;s the date part that is throwing me for a loop.&lt;br&gt;
&lt;br&gt;
What I&apos;m looking for is some way to compare a date like so:&lt;br&gt;
If Date = FirstPaymentDueDate + (one month) Then (do stuff)&lt;br&gt;
If Date = FirstPaymentDueDate + (two months) Then (do stuff)&lt;br&gt;
etc.&lt;br&gt;
(where FirstPaymentDueDate is a pre-existing variable of type Date)&lt;br&gt;
&lt;br&gt;
Is there some easy way to do this (that is, fill in the code for &quot;one month&quot; and &quot;two months&quot;)? Or do I have to use some sort of brutal string manipulation? &lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.35805</guid>
	<pubDate>Wed, 05 Apr 2006 18:31:08 -0800</pubDate>
	<category>datecomparison</category>
	<category>programming</category>
	<category>vb</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<category>visualbasic6</category>
	<dc:creator>fvox13</dc:creator>
	</item>
	<item>
	<title>How do I import from one database into another?</title>
	<link>http://ask.metafilter.com/34492/How%2Ddo%2DI%2Dimport%2Dfrom%2Done%2Ddatabase%2Dinto%2Danother</link>	
	<description>How can I import selected fields from one database into another database? I&apos;m writing a tuition and billing management program for my high school, and they&apos;d like to be able to import students from WinSchool (MS Access Database) and EZ-Care (Fox Pro Database), as well as a CSV file, into the database I&apos;m designing for use with my program. The database I&apos;m working with is MS Access 97, with a Visual Basic 6 front end. Ideally, I&apos;d like to create a program or find a free utility I can bundle with the software that would let the user select column names from the source database and then insert all of the records into the target database, kind of like a mail-merge-type thing where you can &quot;match fields&quot;. Some of the fields would have to be filled in with zeros and such automatically by the program.&lt;br&gt;
&lt;br&gt;
Anyone have code examples? A freeware application? A way to do it in Access itself?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.34492</guid>
	<pubDate>Thu, 16 Mar 2006 13:10:24 -0800</pubDate>
	<category>access</category>
	<category>database</category>
	<category>sql</category>
	<category>vb6</category>
	<category>visualbasic</category>
	<dc:creator>fvox13</dc:creator>
	</item>
	<item>
	<title>Carriage Returns in Excel</title>
	<link>http://ask.metafilter.com/32460/Carriage%2DReturns%2Din%2DExcel</link>	
	<description>It&apos;s not how I&apos;d choose to spend my Friday evening, but for the last few hours, I&apos;ve been trying to replace carriage returns that have turned up in an Access and Excel file, and drawing a blank. I&apos;ve done a thorough search of the archive, and I don&apos;t think this has come up before. I&apos;ve also googled around and looked at specialist forums to no avail.&lt;br&gt;
&lt;br&gt;
So, someone&apos;s kindly entered the text of about 200 articles into an Access database. They&apos;re destined for a website. Each one is paragraphed with what I assume are standard carriage returns which I need to turn into html paragraphs. (Once this is done, I plan to somehow import them articles and their metadata into the right columns of a mysql database.)&lt;br&gt;
&lt;br&gt;
At the moment, I&apos;m working on this data in Excel, which was the only way I could find to access it on my Mac. I&apos;m also more au fait with Excel than Access.&lt;br&gt;
&lt;br&gt;
I&apos;ve tried a find and replace on the column of article texts, only to find that there&apos;s no way to tell Excel to find a return.&lt;br&gt;
&lt;br&gt;
Another horrible hack I thought up was to use &apos;Text to Columns&apos; using the returns as a delimiter. I could then have inserted tags and concatenated the new columns back together. Again I found no way to specify the return as a delimiter.&lt;br&gt;
&lt;br&gt;
I found &lt;a href=&quot;http://www.excelforum.com/archive/index.php/t-332280.html&quot;&gt;this&lt;/a&gt; note on a way to specify character codes, but I couldnt&apos; make it work in these two cases. Are Mac character codes different?&lt;br&gt;
&lt;br&gt;
I tried to use these character codes by adding a column next to the article text column (which is column K) with this formula:&lt;br&gt;
=SUBSTITUTE(K2,CHAR(010),&quot;&lt;/p&gt;&quot;)&lt;br&gt;
&lt;br&gt;
Again, no dice. It makes no substitutions at all.&lt;br&gt;
&lt;br&gt;
Finally, I saved as a .csv, opened it in Textwrangler, and used an appropriate regular expression. It made the changes, but then I couldn&apos;t open the file in Excel. Something about a Sylk error.&lt;br&gt;
&lt;br&gt;
If there&apos;s a simple way to do this in Access that I missed, I could go back to that.&lt;br&gt;
&lt;br&gt;
Am I going to have to use VBA? There&apos;s a suggestion at the foot of &lt;a href=&quot;http://www.gossamer-threads.com/forum/General_C8/Databases_and_SQL_F36/Delete_Carriage_return_query_P259718/&quot;&gt;this thread&lt;/a&gt;, but I don&apos;t know how to make it work.&lt;br&gt;
&lt;br&gt;
As always, I&apos;ll be very grateful for any help at all.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.32460</guid>
	<pubDate>Fri, 10 Feb 2006 14:02:14 -0800</pubDate>
	<category>access</category>
	<category>excel</category>
	<category>formatting</category>
	<category>html</category>
	<category>visualbasic</category>
	<category>whitespace</category>
	<dc:creator>godawful</dc:creator>
	</item>
	<item>
	<title>What are good free programming language environments?</title>
	<link>http://ask.metafilter.com/29909/What%2Dare%2Dgood%2Dfree%2Dprogramming%2Dlanguage%2Denvironments</link>	
	<description>What are good free programming language learning environments? I haven&apos;t programmed in &lt;i&gt;years&lt;/i&gt; and I&apos;m thinking about starting again and learning a current language. I don&apos;t know C or any of its children and I don&apos;t know OOP. What language should I go for and what free packages are available for the learner and hobbyist? I would be running it on a Windows XP system and I would not want to install another OS.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.29909</guid>
	<pubDate>Fri, 30 Dec 2005 17:34:56 -0800</pubDate>
	<category>C#</category>
	<category>C++</category>
	<category>Java</category>
	<category>Perl</category>
	<category>programming</category>
	<category>Python</category>
	<category>Ruby</category>
	<category>VB.NET</category>
	<category>VisualBasic</category>
	<dc:creator>pracowity</dc:creator>
	</item>
	<item>
	<title>Visual Basic 6.0 and Access 2003 question.</title>
	<link>http://ask.metafilter.com/14448/Visual%2DBasic%2D60%2Dand%2DAccess%2D2003%2Dquestion</link>	
	<description>Visual Basic 6.0 and Access 2003 question.....(more inside) Visual Basic 6.0&apos;s integrated Visual Data manager saves all db&apos;s in access 97 format. When I need to build a relationship between two databases created with the visual data manager, I have to convert the db to access 2004 format and then back again so I can manipulate the db through the visual data manager. I&apos;ve looked all over MS&apos;s website and can&apos;t find any update that adresses this. Is there anyway i can avoid constantly converting the db&apos;s?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.14448</guid>
	<pubDate>Wed, 26 Jan 2005 11:49:59 -0800</pubDate>
	<category>access</category>
	<category>database</category>
	<category>visualbasic</category>
	<dc:creator>ttrendel</dc:creator>
	</item>
	<item>
	<title>Is there any way to make Excel macros less stupid?</title>
	<link>http://ask.metafilter.com/13663/Is%2Dthere%2Dany%2Dway%2Dto%2Dmake%2DExcel%2Dmacros%2Dless%2Dstupid</link>	
	<description>Is there any way to make Excel macros less stupid? [MI] So say for instance I want a macro that will, among other things, copy the contents of the current cell and paste them in the next. If I try to record such a macro, and the cell I start with contains &quot;chickens&quot;, the macro will cheerfully paste &quot;chickens&quot; in the next cell even if I run it from a cell which contains &quot;velociraptors&quot;. Clearly this is suboptimal.&lt;br&gt;
&lt;br&gt;
I&apos;m fully willing to learn visual basic if it&apos;ll do the sorts of things I want it to, I just want to know if it will before I waste any effort on it.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.13663</guid>
	<pubDate>Wed, 05 Jan 2005 08:33:40 -0800</pubDate>
	<category>excel</category>
	<category>macro</category>
	<category>vb</category>
	<category>visualbasic</category>
	<dc:creator>squidlarkin</dc:creator>
	</item>
	<item>
	<title>p2p programming languages</title>
	<link>http://ask.metafilter.com/7657/p2p%2Dprogramming%2Dlanguages</link>	
	<description>If you were writing a new p2p application -- leaving ethical and legal issues aside for a moment -- which programming language would you use? I know Visual Basic and PHP, but neither is really any good for this purpose. I dislike things that require the user to install a big VM (.NET, Java) and find C++ a complete nightmare. Forgot to mention: cross-platform and/or open source would be excellent, but not required.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.7657</guid>
	<pubDate>Wed, 02 Jun 2004 09:29:17 -0800</pubDate>
	<category>.net</category>
	<category>c++</category>
	<category>filesharing</category>
	<category>java</category>
	<category>p2p</category>
	<category>php</category>
	<category>programming</category>
	<category>python</category>
	<category>visualbasic</category>
	<dc:creator>reklaw</dc:creator>
	</item>
	
	</channel>
</rss>

