Left() does not work anymore
Left() does not work anymore
(OP)
Hi,
I installed VB6 on a new PC.
Now I want to compile my existing VB application on my new PC (application was written on other PC), but the compiler does not recognize the function Left() anymore.
How can that?
The Mid() function does work.
But I don't have the intention to change all the Left() to Mid().
Does anyone know what the problem is?
Thanks.
Ilse
I installed VB6 on a new PC.
Now I want to compile my existing VB application on my new PC (application was written on other PC), but the compiler does not recognize the function Left() anymore.
How can that?
The Mid() function does work.
But I don't have the intention to change all the Left() to Mid().
Does anyone know what the problem is?
Thanks.
Ilse
RE: Left() does not work anymore
RE: Left() does not work anymore
The right function does not work.
I did not change my sources.
I just copied the sources from my old PC and I tried to compile them on my new PC. On my new PC VB6 does not recognize LEFT() and RIGHT().
RE: Left() does not work anymore
RE: Left() does not work anymore
Check the project references to see that none of the selected references is labled "MISSING."
It's possible one of the references is not present on your new PC...
Mark
"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach
RE: Left() does not work anymore
Here is my code:
myString = Left(strBuffer, lngLen)
When I run my application I get an error.
The compiler thinks that "Left" is an array, and does not see that this is the Left() function.
I changed my code to mystring = VBA.Left(strBuffer, lngLen) and this does work.
What reference must I add so that I don't have to add "VBA." before the left function?
Ilse
RE: Left() does not work anymore
RE: Left() does not work anymore
The strange thing is that the sources can be compiled on my old PC. I copied them to my new PC (without changing the code) and there the sources can not be compiled.
RE: Left() does not work anymore
dim x as string
x = left ("Hostess" , 4)
x should equal "Host"
If you just have left with no arguments then the compiler will think it is an array ..... left () etc.
RE: Left() does not work anymore
RE: Left() does not work anymore
RE: Left() does not work anymore
What happens?
2. What happens when you use the Right function?
3. Does the Left$() function work?
If Left$(), Right(), Right$() work, then you probably have a Control name, (or variable name as petevick mentioned), called "Left".
RE: Left() does not work anymore
http://support.microsoft.com/default.aspx?scid=kb;en-us;276560
Mark
"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach
RE: Left() does not work anymore
I have a DLL "dcString.DLL".
On my new PC I installed a new version of this DLL.
This version has an enumeration with left and right.
On my old PC it was still the old DLL without enumeration.
So the new DLL caused the problem.
Thanks all for your advice!
Ilse
RE: Left() does not work anymore
These two functions were working UNTIL I Added a
WORD report to the Project....
Does WORD have LEFT 'n RIGHT as Constants ?
( Can't see how Military using any Programming Language that does not have Left and Right wotking properly.... )
RE: Left() does not work anymore