Search Results

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: dmf1978 ; Forum: Visual Basic 4 / 5 / 6 and child forums
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 4
Solved: string handling
Views: 1,333
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,213
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,213
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,213
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: 12
Views: 2,213
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,213
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,023
Posted By dmf1978
Hi,
Is your problem solved?
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2008
Replies: 4
Views: 1,588
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,023
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 Feb 27th, 2007
Replies: 22
Views: 7,575
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,575
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: 22
Views: 7,575
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,575
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,575
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...
Showing results 1 to 14 of 14

 


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

©2003 - 2009 DaniWeb® LLC