• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

vb6 code , help

 Name "c:\update\" + Form1.izqupdate As Left$("c:\update\ + Form1.izqupdate, InStrRev("c:\update\" + Form1.izqupdate, ".")) & "exe"

can you help me with this please
  • 2
1 Solution
Is izqupdate defined as Public on Form1? You should have this in your declarations area on Form1:

Public izqupdate as String

Also make sure you do not have it declared anywhere else with the Dim statement or it will override the Public declaration.
Also,probably a typo but there was a " missing from the above:

Name "c:\update\" + Form1.izqupdate As Left$("c:\update\" + Form1.izqupdate, InStrRev("c:\update\" + Form1.izqupdate, ".")) & "exe"

I would also recommend using & instead of + for appending strings together.Both of them will work,but it's a good idea to use + when you are working with addition on numbers and use & for appending strings.

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now