Re: Mid function
- From: allinrishi2@xxxxxxxxxxxxxx
- Date: Sun, 12 Apr 2009 13:57:41 -0700 (PDT)
On Apr 13, 1:49 am, allinris...@xxxxxxxxxxxxxx wrote:
On Apr 12, 9:52 pm, "Bob Butler" <no...@xxxxxxxxxxx> wrote:
<allinris...@xxxxxxxxxxxxxx> wrote in message
news:f626b9de-ee43-4f64-a8bc-b8cd691d07c3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Friends
what happened to the mid() function?
I am really baffled. I have many other applications where I use the
mid function and they work fine.
but when i started working on a new project, it throws an error
invalid procedure call or argument
there is nothing complicated in the code
someVariable=mid(aStringVariable, 1, 5) ... that would extract the
first 5 characters of aStringVariable
I even tried CopyPasting a working piece of code from an OLD project.
It works fine in the OLD Project
But in the new project throws the above error
Any Microsoft mischief?
(In an ASP page also the samething happens)
My guess is that you have created a variable named 'mID' or a procedure or
module or something named 'mid'. In regular VB I'd also suggest checking
Tools / References for anything flagged 'missing' but if the same code as
ASP produces the error then chances are it's a naming collision. You can
try using VBA.Mid() instead and it that works then either you, or some
object you have referenced, has something named 'mid'.- Hide quoted text -
- Show quoted text -
..but Bob, this is not an isolated case. when I googled I have come
across people who had the same problems Not only with mid, but left,
right, instr also
As I see, it is something going wrong with the string functions. And
surprisingly, It works for a while say one or two days, then starts
throwing error..
again, it may rectify itself without anything being done. really Odd!
and while googling I had come across postings to the effect **mid
function is never supported in vba and asp** and **mid is an
unrecognized function** etc etc
try googling 'asp/vb mid function error' or similar phrases, you shall
see for yourself..
anyway, can anybody suggest an alternative for mid function?
Thanx- Hide quoted text -
- Show quoted text -
....I suspect some automatic updates is the culprit..
.
- Follow-Ups:
- Re: Mid function
- From: Ralph
- Re: Mid function
- References:
- Mid function
- From: allinrishi2
- Re: Mid function
- From: Bob Butler
- Re: Mid function
- From: allinrishi2
- Mid function
- Prev by Date: Re: Mid function
- Next by Date: Re: Mid function
- Previous by thread: Re: Mid function
- Next by thread: Re: Mid function
- Index(es):
Relevant Pages
|
Loading