|
-
May 15th, 2013, 05:18 PM
#1
Thread Starter
New Member
VB6 and windows 7
Since i have a new PC with windows 7 instead of windows xp
the functions time and mid does'nt work anymore, may be that one or more libraries are missing.
Can anyone help me with this problem.
Thanks
Henk
-
May 16th, 2013, 01:55 AM
#2
Re: VB6 and windows 7
Can you show the code involving the functions that doesn't seem to work?
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
May 16th, 2013, 07:26 AM
#3
Thread Starter
New Member
Re: VB6 and windows 7
hierbij een stukje code:
Down, Seconden is een public variabele
Bij debugging geeft het programma een fout op Time en Mid, vroeger werkte dit feilloos.
vervang ik Time door Now, dan ben ik 1 foutmelding kwijt
Private Sub Timer2_Timer()
Dim L1 As String
Dim L2 As String
Dim Seconden As Integer
If Down = 1 Then
Seconden = Val(Text5.Text & Text6.Text)
If Label1.Caption <> CStr(Time) Then
'seconden
Seconden = Seconden - 1
If Seconden >= 0 Then
If Seconden > 9 Then
L1 = Mid(Seconden, 1, 1)
L2 = Mid(Seconden, 2, 1)
Text5.Text = L1
Text6.Text = L2
Else
L1 = Mid(Seconden, 1, 1)
Text5.Text = 0
Text6.Text = L1
End If
Else
-
May 16th, 2013, 07:43 AM
#4
Re: VB6 and windows 7
Check the Project References and Components lists for any that are marked as "Missing".
If you have any of these, then you'll get errors from all sorts of "built-in" stuff - it's usually Mid$ that "breaks" on my machine.
Regards, Phill W.
-
May 18th, 2013, 08:46 AM
#5
Re: VB6 and windows 7
Phill W is absolutely correct that you should be dealing with that (before thinking about other options/possibilities)... there is a guide to help you with this error in the article What does this error mean, and how do I fix it? from our Classic VB FAQs (in the FAQ forum)
-
May 20th, 2013, 12:47 AM
#6
Banned
Re: VB6 and windows 7
people use windows 7-8 for only small changes such as drag and minimize all app , why not just install the theme over windows xp
-
May 20th, 2013, 04:23 AM
#7
Re: VB6 and windows 7
There are a lots of extra features which make it worthwhile for many people, not to mention the fact that support (from Microsoft, and hardware/software manufacturers) is an issue for many people.
Besides, your personal choice about which version of Windows to use is irrelevant to this thread (despite a mention of Windows 7, the issue is almost certainly nothing to do with it, and even if it is then changing to a different Window version may not be an option), so your post does not really belong here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|