Search Results

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: dmf1978
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 4
Solved: string handling
Views: 1,323
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,177
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,177
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: C Jul 25th, 2008
Replies: 15
Views: 1,397
Posted By dmf1978
The only thing that don't make me feel good having read this thread is the sign of plike:

COBOL was designed so that managers could read code.
BASIC was designed for people who are not...
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 2,177
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,177
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,177
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: 1,997
Posted By dmf1978
Hi,
Is your problem solved?
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2008
Replies: 4
Views: 1,574
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: VB.NET Jul 22nd, 2008
Replies: 3
Views: 1,932
Posted By dmf1978
Hi,
Try this

Dim folderInfo As New IO.DirectoryInfo("c:\windows")
Dim arrFilesInFolder() As IO.FileInfo
Dim fileInFolder As IO.FileInfo

arrFilesInFolder =...
Forum: Visual Basic 4 / 5 / 6 Jul 21st, 2008
Replies: 3
Views: 1,997
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,486
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,486
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,486
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,486
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,486
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 16 of 16

 


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

©2003 - 2009 DaniWeb® LLC