Search Results

Showing results 1 to 27 of 27
Search took 0.01 seconds.
Search: Posts Made By: dmf1978 ; Forum: Visual Basic 4 / 5 / 6 and child forums
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2008
Replies: 22
Views: 7,511
Posted By dmf1978
Hey, thanks :)
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 3
Views: 1,900
Posted By dmf1978
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 6
Views: 4,166
Posted By dmf1978
Hi,
Use the Replace function.
The syntax is Replace(string, find, replace)
Doing it in your code:

Private Sub Command1_Click()

Dim dText As String, dNextLine As String, lLineCount As Long...
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 4
Solved: string handling
Views: 1,326
Posted By dmf1978
Hi,
Try this code:

Private Function SeparateString(str As String) As String
Dim x As Integer
Dim retStr As String

retStr = ""
For x = 1 To Len(str)
retStr =...
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 12
Views: 2,185
Posted By dmf1978
I see. I'll change it. Thanks.
If you think that your problem is solved, please, mark as solved this thread.

Regards
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 2,185
Posted By dmf1978
HI,
I see your point. But what he need is to separate some bits from a word. To do this, the easy way is to use masks. The mask thing is not an invention of mine.

Take a look here:...
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 2,185
Posted By dmf1978
And it is nice too, but as he say, he don't have string binary values. All that I know is the existence of two bytes. I've coded taking account of these.
As you said... Have fun ;)
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 2
Views: 483
Posted By dmf1978
Sorry,
But it is not VB code.
And please, use the [ CODE][/CODE ] tags.
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 2,185
Posted By dmf1978
Hi,
Well, I guess you have to shift right the variable fourBits 12 positions.
Try this (I am not really sure it will work, because I have not VB here)

Dim byteA As Long
Dim byteB As...
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 2,185
Posted By dmf1978
Hi,
Try this

Dim byteA As Long
Dim byteB As Long
Dim sumBytes As Long
Dim fourBits As Long
Dim twelveBits As Long

byteA = 32 ' 00100000b = 32d
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2008
Replies: 3
Views: 2,003
Posted By dmf1978
Hi,
Is your problem solved?
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2008
Replies: 4
Views: 1,577
Posted By dmf1978
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...
Forum: Visual Basic 4 / 5 / 6 Jul 21st, 2008
Replies: 3
Views: 2,003
Posted By dmf1978
Hi,
First, this is not VB6 code. It is VB.Net.
To load an image, you must code:
Dim coinImage As Image
Dim imagePath As String = ""

If choice = 0 Then
...
Forum: Visual Basic 4 / 5 / 6 Jul 21st, 2008
Replies: 4
Views: 1,410
Posted By dmf1978
I think so!
Come on boy, sit and code by yourself! :icon_cheesygrin:
Forum: Visual Basic 4 / 5 / 6 Mar 16th, 2008
Replies: 2
Views: 2,030
Posted By dmf1978
Thanks!
I was using something like this:
If TypeOf (ctl) Is TextBox Then
...
End If
The problem is with "(" and ")". It doesnt work in VB6.
Forum: Visual Basic 4 / 5 / 6 Mar 16th, 2008
Replies: 2
Views: 2,030
Posted By 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...
Forum: Visual Basic 4 / 5 / 6 Feb 27th, 2007
Replies: 22
Views: 7,511
Posted By dmf1978
Veena, you must be joking! :lol:
Don't you? :-|

Try this with your code "Hello world" and please post how many words your program find.
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2007
Replies: 22
Views: 7,511
Posted By dmf1978
CountWords is the function coded inside the module "mdlWordCount.bas".

Did you open de prjWordCount.vbp file to load the project in the VB6 IDE or just the frm file?
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2007
Replies: 2
Views: 1,273
Posted By dmf1978
Hi!
Have you tried to press F4 key (or going to View > Property window) inside VB6?
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2007
Replies: 22
Views: 7,511
Posted By dmf1978
Hi! Tell me why my program doesnt work so I can fix it.
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2007
Replies: 22
Views: 7,511
Posted By dmf1978
I have uploaded a sample VB6 project to demonstrate the use of this function.
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2007
Replies: 22
Views: 7,511
Posted By dmf1978
I hope it could help.
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...
Forum: Visual Basic 4 / 5 / 6 Feb 25th, 2007
Replies: 0
Views: 1,521
Posted By dmf1978
Hi!

Before we get started, take a look on the picture below:

http://img524.imageshack.us/img524/5440/mapms1.gif

If you use your imagination, you could see there a road map with two points:...
Forum: Visual Basic 4 / 5 / 6 Aug 13th, 2006
Replies: 7
Views: 11,225
Posted By dmf1978
Ok Comatose, but dont put yourself in such trouble. I can live by now with the bmp format file. :)

I will post here about the places where I get some information on this.

Do you want to know...
Forum: Visual Basic 4 / 5 / 6 Aug 13th, 2006
Replies: 7
Views: 11,225
Posted By dmf1978
Thanks Comatose!

The need to store the pixel data in arrays is to do some processing. Not for the save stuff. Once I have procesed the "input image", I need to save the modified result image in a...
Forum: Visual Basic 4 / 5 / 6 Aug 12th, 2006
Replies: 7
Views: 11,225
Posted By dmf1978
Thanks for reply.

I have found a diamond!!! Try this: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=65964&lngWId=1

He uses a PictureBox to load the JPEG file and then,...
Forum: Visual Basic 4 / 5 / 6 Aug 11th, 2006
Replies: 7
Views: 11,225
Posted By 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...
Showing results 1 to 27 of 27

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC