Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #1K
~10K People Reached
Favorite Tags

25 Posted Topics

Member Avatar for chern4ever

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, …

Member Avatar for Jx_Man
0
3K
Member Avatar for fakhrealam

[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:

Member Avatar for jhai_salvador
0
266
Member Avatar for Kcin

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 …

Member Avatar for dspnhn
0
507
Member Avatar for CatchItBaby

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) …

Member Avatar for CatchItBaby
0
404
Member Avatar for cellus205

Hi, Take a look on this library [URL="http://www.codeplex.com/DotNetZip"]DotNetZip[/URL]. Hope it helps.

Member Avatar for cellus205
0
202
Member Avatar for sutanu_halder
Member Avatar for bprabhumdu

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 …

Member Avatar for bprabhumdu
0
146
Member Avatar for army88m2
Member Avatar for chid_
0
112
Member Avatar for praksk

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 = …

Member Avatar for dmf1978
0
475
Member Avatar for sddproject

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 …

Member Avatar for sddproject
0
197
Member Avatar for plike922

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 …

Member Avatar for dmf1978
0
178
Member Avatar for Tekito

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,

Member Avatar for Tekito
0
99
Member Avatar for army88m2

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 …

Member Avatar for army88m2
0
221
Member Avatar for ruchika beddy

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 …

Member Avatar for dmf1978
0
404
Member Avatar for crafted
Member Avatar for peter_budo

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 …

Member Avatar for dmf1978
3
182
Member Avatar for linux

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

Member Avatar for linux
0
645
Member Avatar for iSoftware
Member Avatar for Bill Purkins
Member Avatar for dmf1978
0
176
Member Avatar for ruchika beddy
Member Avatar for dmf1978

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 …

0
62
Member Avatar for dmf1978

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 …

Member Avatar for dmf1978
0
136
Member Avatar for donaldunca
Member Avatar for donaldunca
0
105
Member Avatar for dmf1978

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 …

0
59
Member Avatar for dmf1978

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, …

Member Avatar for dmf1978
0
1K

The End.