vb6 code , help

Posted on 2005-03-02
Medium Priority
Last Modified: 2010-04-17
 Name "c:\update\" + Form1.izqupdate As Left$("c:\update\ + Form1.izqupdate, InStrRev("c:\update\" + Form1.izqupdate, ".")) & "exe"

can you help me with this please
Question by:xodos
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 28

Expert Comment

ID: 13442148
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.
LVL 28

Accepted Solution

vinnyd79 earned 2000 total points
ID: 13442203
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question