1,372 Posted Topics
Re: just check for the newline characters and replace them...something like: [code=perl]$linefromfile =~ s/\n//gi;[/code] Just remember though, that you will have to manually add your own newline character ("\n") whenever you want to save the data to the new file... otherwise it will be one big ass line. :icon_eek: | |
Re: you could try to code it in another language so that it runs faster and uses less time? | |
Re: [code]SELECT * From table where LOWER(name) = 'neil' [/code]? | |
Re: make sure the .dll's are registered in the registry (if required) and make sure VC is linking to them, in the linker. | |
Re: If you would spend some time looking through the forum, you would have found your answer with relative ease..... [url]http://www.daniweb.com/forums/thread165458.html[/url] | |
Re: you declare your array as [6] (six elements) but you try to use 7 (0-6). Change your string days to 7 | |
Re: [code=vb]if right(ucase(text1.text), 1) <> "R" then text1.text = text1.text & "R" else text1.text = "0" & text1.text end if[/code] ... | |
Re: first, remove the ; after rotate-- second, you can't have an opening { without a closing } (for loop), so add a brace. third, using rotate > value will for loop until rotate is no longer greater than value, but likely won't loop the final iteration. So if value is … | |
Re: [code=vb]dim x as string x = "white bread 0.67" parts = split(x, " ") xCost = parts(ubound(parts())) ' // ;-)[/code] | |
Re: There has been chatter about how to use Legacy VB with PDA's, without much real promise. A couple hype products (Crossfire and what not), but actually finding a working VB app on a PDA has been ultimately elusive. My strongest suggestion, is to look into VB.NET, with the Compact .Net … | |
Re: When talking about "programming" people tend to think that all code is a "program", but this just isn't true. Languages like VB, and C/C++, require that you first take the code that you write, and convert it to machine code (compile). After that (often done in the same step) you … | |
Re: Post the code that you have accomplished already, and show us where you are having trouble so that we can guide you. | |
Re: [url=http://letmegooglethatforyou.com/?q=for+loop+flow+chart]Try This Link[/url] | |
Re: How about we not post to threads that are like 3 years old? | |
Re: Also, I never see you call any kind of function to convert the string to an int: [code=cplusplus]#include <iostream> #include <sstream> using namespace std; int main(int argc, char **argv) { stringstream ss; std::string x; int integer; x = "5"; ss << x; ss >> integer; cout << integer << endl; … | |
Re: *Quietly Mumbles Quotes From The Bible According To RMS* | |
Re: wtf is that? That doesn't answer his question..... | |
Re: This line [inlinecode]ab = RichTextBox1.Text[/inlinecode] doesn't actually write anything to the file. You might want to replace that line with something that accesses myStream. | |
Re: [url]http://msdn.microsoft.com/en-us/library/system.security.permissions.registrypermission.aspx[/url] | |
Re: [code]#!/bin/sh echo ${USER}[/code] Password is a whole different (uglier) beast. | |
Re: [code]./configure --prefix=/usr/local[/code] ;) | |
Re: First, it's strongly frowned upon to post to threads that are more than three months old. Even if you have a question regarding an old thread, then you would start a new thread, and post a link to the old thread with your question. This will help to ensure that … | |
Re: What happens when the exchange changes (like daily)? | |
Re: You give me code first. All you have to do is total the votes, and use a simple if statement. | |
Re: Very Nice.... please mark the thread as solved. | |
Re: yeah a unique record ID would be the best way to go, because what if you have more than one Matt? How then will you distinguish him from another Matt? The code however for what you have, without the need to complicate it with userid's, would be, in your "load" … | |
Re: It already works using the number pad (ie: alt + 251 or whatever), but to do it how you want, you must subclass the form (which is kind of ugly), can't you just on keyup or keydown do something like this: [code]richtext1.text = richtext1.text & chrw(keycode)[/code] or am I missing … | |
Re: I'm not sure you can put winsock in permiscous mode. I know most sniffers come with like winpcap and what not... | |
Re: In The Combo (or drop down) menu's keypress event, you trap the user typing. For example, you could, change keyascii to be the backspace character, or set the .text property to "". You could, display a message box that tells the user that keyboard input is a restricted function. The … | |
Re: [QUOTE=DougC;784836]Is my only option to install VB2008 Express on a 64 bit machine and create a separate 64 bit version?...[/QUOTE] Yup. If you recompile it on a 64-bit vista platform, it should work.... other than that, good luck. | |
Re: [url=http://www.letmegooglethatforyou.com/?q=C%2B%2B+Abstract+Class]Here Is Your Answer[/url] | |
Re: In his code above, just remove the My.Computer. | |
Re: you can pretty much do what riju_sh02 said, but you could replace chr(13) with vbnewline. The constant is pretty much just a chr(10) and chr(13) (crlf, you can use vbcrlf too) | |
Re: Use VB.Net.... not VB 6 :) Seriously, I like VB6 a thousand times more than .NET, but the fact is, that code is meant for the .NET platform. VB 6 is not quite that object oriented and structured. I suggest however, that to do the same thing in VB6, use … | |
Re: Yeah, that code is [b]Not VB6 Code[/b]. In order to do something similar to what you have there: [code=vb]open path & "checkinfo.txt" for output as #1 'or for append mydata = ourCheck.employee & string(20, " ") mydata = mydata & string(10, " ") & ourCheck.check mydata = mydata & string(10, … | |
Re: In the mdi parent (main form) when you want to get the caption of the foreground/active window, you can use [inlinecode]msgbox me.activeform.caption[/inlinecode] to get the caption of the active child MDI form. To find out if the window is loaded and visible you can use this (add it to the … | |
Re: You have to calculate the distance, and use form.move....in a module (normal code module, not class) add this: [code=vb]Sub DoCenter(child As Form, parent As Form) Dim mTop As Integer Dim mLeft As Integer If parent.WindowState <> vbNormal Then Exit Sub mTop = ((parent.Height - child.Height) \ 2) mLeft = ((parent.Width … | |
Re: it looks like when you pass 0 to the constructor, that number is used as the size of your new array... [code=cplusplus]maxlen=size; top=-1; p=new int[maxlen];[/code] Then you try to push 1 on to it...but it's size is zero.... or am I crazy? | |
Re: Why can't you use a vector? It would be a lot less painful. | |
Re: When you have a problem, we can help you. We won't do this for you, however. | |
Re: [code=vb]Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Const WM_VSCROLL = &H115 Const SB_BOTTOM = 7 Private Sub Text1_Change() SendMessage Text1.hwnd, WM_VSCROLL, SB_BOTTOM, 0 End Sub[/code] | |
Re: [code]regsvr32 OPOSPOSPrinter.ocx[/code] | |
Re: your last else if is missing an opening and closing brace. { } And in a couple of spots, you are using parenthesis where they should be braces. [code=cplusplus]#include <iostream> using namespace std; int main () { int choice,num1,num2,answer; cout<<"This is a caculator program which will do math for you\n"; … | |
Re: Yeah, And the project is kind of big... so uh, where is the problem? |
The End.