1,372 Posted Topics
Re: If I'm not mistaken (yeah, sometimes, but not frequently ;) ) this should work: [CODE]Fname = Application.GetOpenFilename With ActiveSheet.QueryTables.Add (Connection:="TEXT;" & Fname, Destination:=Range("A1")) end with[/CODE] Now, I've tried the code, and maybe my excel VBA Coding is a bit rusty... but I don't get it loading into any cells that … | |
Re: Stick this outside any subs (in a module, or the bottom of a form OUTSIDE of any of the existing code) [CODE] Public Function GCD_Of(First_Int, Second_Int) W = "ERROR: " Err1 = "Invalid numeric argument(s)" Err2 = "Argument(s) must be non-zero" Q = CDec(1) ' Initialize quotient as DECIMAL variable … | |
Re: Check This Thread: [url]http://www.daniweb.com/techtalkforums/showthread.php?t=20254&highlight=reading[/url] | |
Re: For Top Level: [code]MsgBox(ListView1.SelectedItems(0).Text) [/code] And Subitems: [code]MsgBox(ListView1.SelectedItems(0).SubItems(1).Text)[/code] You may want to make sure you have subitems before trying that one ;) | |
Re: [QUOTE=goaldrush]Put the options into a group box. Do you want your brother to pick more than one option or pick the lot? If it is one option put them as radio buttons.(radSquare, etc.) If you want all the options then it would be a checkbox. (chkSquare, etc.) Hope that helps.[/QUOTE] … | |
Re: have you tried outputting the value of $thinkingof during each guess? This will help you to at least ensure that the randomness works. | |
Re: I will say that the C/C++/Javaish/Perlish/etc/etc structure for working with escape sequences is a real treat compared to The basic language. The only way to do this, is to concantenate the character code value to the string where the double quote would be. It's sick, and it makes the code … | |
Re: Ok, let's try to tackle this step by step.... 1. There are a number of ways to find data within a string. What we really need to know, is the format of these files.... for example, does the file look like this: [INLINECODE]1. c:\windows\somefile.txt[/INLINECODE] or does it look like this: … | |
Re: The forecolor, do you mean the color of the text (font), or the face of the button? | |
Re: I dunno why you can't set the tooltiptext property, but what you do is set the value BACK or to whatever it was previously, in the mouse_move event of the form. For example, I built a program that has "hyperlinks" on a tab control. All it is, is a blue … | |
Re: This code actually "toggles" the connection, by retrieving it's current state, and then setting the opposite state..... but, in vb6 you'll need to add a reference to "Microsoft Shell Controls and Automation" before it will work for you, plus, you may need to change some variables to fit the name … | |
Re: *Looks Around* Batch Files Isn't Linux and Unix Shell Scripting..... No, This isn't possible with command.com / cmd.exe alone (Batch). In order to do it, you will need a special exe of some kind. Easy enough to write one. | |
Re: The package and deployment wizard is the way to go. It's simple, free, and works well. If you want to do it yourself, you'll have to use a language that doesn't require runtimes, and can build stand alones. Batch files work alright for this, since all you are doing is … | |
Re: [code=vb]shell "cmd.exe /c dir \"[/code] | |
Re: You should read these two tutorials first, and then we can work on excel specifically. The tutorials are about word, but automation of word, and excel are identical, with the exception of a few objects and methods (there are links to excel info also). [url]http://www.daniweb.com/tutorials/tutorial51307.html[/url] [url]http://www.daniweb.com/tutorials/tutorial51315.html[/url] Also, are you doing … | |
Re: *Grumbles* | |
Re: [code] cell_value = DataGrid1.Item(rowindex, columnindex) [/code] | |
Re: Read these threads: [url]http://www.daniweb.com/techtalkforums/showthread.php?t=18585&highlight=pdf[/url] and [url]http://www.daniweb.com/techtalkforums/showthread.php?t=17156&page=2&highlight=pdf[/url] | |
Re: Look up the substitution operator. s//. You can replace the data like so: [CODE] $myvar = "hello|world|yes!"; $myvar =~ s/|/\t/gi; print "$myvar"; [/CODE] | |
Re: I agree. I'm much more a fan of "VirtualBox", but certainly running a VM and installing XP on it... then putting VS6 on the XP in the VM is the best solution to this so far. | |
Re: Ok. Let me just reiterate that we [B]DO NOT[/B] do homework assignments for people. If you are putting forth a strong amount of effort, and are stuck on a problem, we will gladly help you overcome such a situation. Once you start on the project, upload the code, and I'll … | |
Re: hmn: [CODE]for each XFrm in forms unload XFrm next XFrm[/CODE]? | |
Re: When I was in the army, they had filters. The problem I had wasn't that I wanted to look at porn or anything silly, but that even legit e-mail sites were locked out. Being a programmer, with access to a linux box that was outside of the network, I wrote … | |
Re: There are only a few words that come to mind, but "wow" says it all. | |
Re: I would get the source code for like, linphone or some such, and see how they did it. There may even be a library to handle the SIP information for you. If not, you can at least see what they did. A Good place to start is the [url=http://www.ietf.org/rfc/rfc3261.txt]SIP RFC[/url]. | |
Re: you need to be careful when talking about events in perl. Events are a term coined for OOP program, which perl is not really made for. It's possible, sure, with things such as POE and the Tk Modules, but namely for standard perl programming, it's pretty much not event driven. … | |
Re: I suggest stopping them from introducing anything other than numbers, right off the bat (in the text1 keypress event): [CODE]Private Sub Text1_KeyPress(KeyAscii As Integer) ' ' Invalidate keystroke if not a digit, decimal point or backspace. ' If (Not IsNumeric(Chr$(KeyAscii)) And (Chr$(KeyAscii) <> "." And Chr$(KeyAscii) <> vbBack)) Then KeyAscii … | |
Re: I haven't built a fully graphical vnc type program, but I have built remote access programs... what do you need and/or what you are looking at? Text based? Full Vnc like capabilities, etc? | |
Re: Yes They Can. I read an article about the proxy's, and a lot of them maintain a certain amount of information about your surfing habits and other internet based activities. It started as a great idea, and turned into something else. | |
Re: You should be able to use some kind of control. I don't remember if there is a toolbox control for viewing office apps with VB or not.... you can also use scripting to do this.... but that will probably load word. There is a way though, using com objects.... I'll … | |
Re: Right, because ya know... this is the C# forum.... | |
Re: So... Suzz. Let's not post to threads that are two years old. | |
Re: Hey... Wingnut. How about you not post to threads that are like 2 years old.... start a new thread. | |
Re: If you are trying to print to the printer, why not use VB's built in printer object. Such as printer.print? | |
Re: Post some code for it. | |
Re: After some pretty hard-core searching, I've settled on the fact that you simply can't by yourself. I've looked into API's, WMI, and using Sendkeys to the device manager window itself :eek: (which works, btw, but it's really tacky, and certainly not something I'm going to suggest). After all is said … | |
Re: I'm not sure I know what you mean..... I am not understanding "parse tree" so much, and I'm not quite understanding what you want done with Tabs. If you post code, also, it might be beneficial to use code tags which is bracket [ then the word CODE then ]. … | |
Re: the said javascript that cooresponds to the submit button, takes on the form: document.formname.submit(); | |
Re: [CODE]<?php $dir = "."; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { echo "<A HREF=\"$file\">$file</A><BR>\n"; } closedir($dh); ?>[/CODE] | |
Re: I'm not certain I know how advanced your class has taken you, so I'm going to give 2 suggestions.... [CODE] 1) [moderate]: A Docter's Office Patient Database/Scheduler -Tons Of "Branch Off" ideas here -Keep Track Of Patient Visits and Problems -Calander With Docters Available Appointments -etc, etc, etc [/CODE] [CODE] … | |
Re: After The Tick Count (The memory test at the begining... or after it says "press del (or whatever) to enter setup) in the very begining, start pumping F8. This will eventually drop you to a startup menu. Choose the option that says "start with last good configuration (the last settings … | |
Re: And... Let's not post to threads that are years old. | |
Re: Erm, you know this thread is like 2 years old? | |
Re: Use the Microsoft Internet Transfer control.... You Pass it the URL, and tell it what you want to do with it, and it will do it. You can then save the information to a file, of the same name, or with a temporary name, and then do your printing. HOW … | |
Re: Step 1. Don't post to threads that are like 3 or 4 years old. Step 2. Don't ask a question for yourself on someone else's thread -ie: make your own thread Step 3. Make sure the vnc server is running, regardless if you start a session or not. | |
Re: Works Fine, What Are You Talking About ;): [CODE] #!/usr/bin/perl # number to factor is passed as an argument $number = $ARGV[0]; # $left is the unfactored part that remains $left = $number; # loop through all possible factors foreach $test (2..$number){ # exit when no factoring left to do … | |
Re: Call "c:\windows\system32\dfrg.msc" with shell or system processes or wsh.run or shellexecute. |
The End.