- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
25 Posted Topics
Re: Hi, Use the Replace function. The syntax is [CODE]Replace(string, find, replace)[/CODE] Doing it in your code: [CODE=VB] Private Sub Command1_Click() Dim dText As String, dNextLine As String, lLineCount As Long lLineCount = 1 Open "C:\Users\Chern\CINEMA\reserve.txt" For Input As #1 Do While Not EOF(1) Line Input #1, dNextLine dNextLine = Replace(dNextLine, … | |
Re: [QUOTE=Teropod;651642]o.O It looks like some one got questions from exam.[/QUOTE] I think so! Come on boy, sit and code by yourself! :icon_cheesygrin: | |
Re: I hope it could help. [code=vb]Private Function CountWords(strText As String) As Long Dim x As Long Dim words As Long Dim lenStr As Long Dim lenPrevWord As Long Dim currentAscii As Integer ' Number of chars in string lenStr = Len(strText) ' Number of chars in the last word processed … | |
Re: Hi, I will show you how to do this using PHP. I dont know if it works using HTML files (maybe using JavaScript to catch the values?) [CODE=VB] Dim sUrl As String = "" sUrl = "http://127.0.0.1/passvars/test.php?" sUrl &= "user=" & txtUser.Text & "&" sUrl &= "pass=" & txtPass.Text System.Diagnostics.Process.Start(sUrl) … | |
Re: Hi, Take a look on this library [URL="http://www.codeplex.com/DotNetZip"]DotNetZip[/URL]. Hope it helps. | |
Re: Hi, Can you give us more details about it? | |
Re: Hi, Try this code: [CODE=VB] Private Function SeparateString(str As String) As String Dim x As Integer Dim retStr As String retStr = "" For x = 1 To Len(str) retStr = retStr & Mid(str, x, 1) & "," Next x SeparateString = retStr End Function [/CODE] It is a function … | |
Re: Sorry, But it is not VB code. And please, use the [ CODE][/CODE ] tags. | |
Re: Hi, Try this [CODE=VB] Dim byteA As Long Dim byteB As Long Dim sumBytes As Long Dim fourBits As Long Dim twelveBits As Long byteA = 32 ' 00100000b = 32d byteB = 64 ' 01000000b = 64d ' Adding the two bytes to get a Word ' sumBytes = … | |
Re: Hi, First, this is not VB6 code. It is VB.Net. To load an image, you must code:[CODE=VBNET] Dim coinImage As Image Dim imagePath As String = "" If choice = 0 Then headCount = headCount + 1 imagePath = "Heads.gif" Else tailCount = tailCount + 1 imagePath = "Tails.gif" End … | |
Re: The only thing that don't make me feel good having read this thread is the sign of plike: [I]COBOL was designed so that managers could read code. BASIC was designed for people who are not programmers. FORTRAN is for scientists. PILOT is for teachers. [B]C, however, is for programmers[/B].[/I] Because … | |
Re: Hi, Think of a property just as if it were a regular variable. You can get or assign only one value at once. If you need to pass more than one parameter to a property, instead use a regular Sub procedure. Hope it helps, | |
Re: Hi, Your code is doing well. Just in case, I have added the while loop in yours: [CODE=VBNET] Dim x As Integer Do While x <= 45 If x >= 20 Then If x <= 25 Then Debug.Print(x) End If If x >= 40 Then If x <= 45 Then … | |
Re: Hi, I see you have the contents of the text file in the array arrlines. Then, guess that you have the value you want to delete in the valueToDel variable: [CODE=VB] ... Dim c As Integer = 0 Dim valueToDelete As String = "some string" Dim arrLinesTemp() As String Dim … | |
Re: HI, I have a question... The code given doesn't compile. Borland Turbo C++ v3.0 says something like RunWindowsXP() is not defined... Maybe do I need the winxp.h header which is not included? Please, tell me, where can I download this header? Do I must compile it using GCC? Please, help … | |
Re: Hi, Try this [CODE=VBNET] Dim folderInfo As New IO.DirectoryInfo("c:\windows") Dim arrFilesInFolder() As IO.FileInfo Dim fileInFolder As IO.FileInfo arrFilesInFolder = folderInfo.GetFiles("*.*") For Each fileInFolder In arrFilesInFolder ListBox1.Items.Add(fileInFolder.Name) Next [/CODE] Hope it helps | |
Re: I am with you Wayne. In addition, the messagebox interrupts the user, and also, it is modal. | |
Hi friends, I'm coding an application using VB.Net 2008 Express which work with images. It can save the results of this work in a file using an own format (not a regular image file) for future re-processing. I wish to put a thumbnail inside the saved file, so it can … | |
Hi, I am working in an application that uses Drag & Drop in VB6, and I need to determine which type of control is the user dragging. I have in the form several controls: PictureBox, TextBox and ListBox. I know that I can use TypeOf() in VB .Net, but, what … | |
Re: Hi! Have you tried to press F4 key (or going to View > Property window) inside VB6? | |
Hi! Before we get started, take a look on the picture below: [IMG]http://img524.imageshack.us/img524/5440/mapms1.gif[/IMG] If you use your imagination, you could see there a road map with two points: the "start point" and the "goal point". The truck must start in the "start point", follow the "road nÂș2", then the "road … | |
Hi First I want to say sorry for my bad english (I speak and write spanish) I am working in a program written by me in VB6, which load a image file (JPEG) and looks in every pixel of it to take the RGB component of each one of them, … |
The End.