Re: Instr()



Michael C wrote:
"Mike Williams" <mike@xxxxxxxxxxxxxxxxx> wrote in message news:e1R9Z9U1HHA.4880@xxxxxxxxxxxxxxxxxxxxxxx
Instr() API? There is no Instr() API! Presumably you mean the VB6 Instr function? It is fast, but that's mainly because computers are fast these days.

API means application programming interface, which applies to any function really. It's a fairly general term.

But "normally" reserved for features outside the language itself like a graphics library or somesuch. "Intrinsic" functions are more nearly the description for VB's built-in functions (to pick a nit)...

The VB Instr function is fast mainly because (like most other functions) it simply calls some "under the hood" routine that has been written either in machione code or (more likely) in ASM

I'd say it was written in C myself. Assembler and machine code are pretty much the same thing.

I would agree w/ that, certainly -- I would guess it is either taken directly from or very closely derived from the C strstr() rtl (as are most if not all of the other intrinsics).

--

.



Relevant Pages

  • Re: Instr()
    ... but that's mainly because computers are fast these ... API means application programming interface, ... in machione code or in ASM ...
    (microsoft.public.vb.general.discussion)
  • Re: Instr()
    ... "intrinsics". ... external function, hence an API? ... these references they are most definately references to a dll. ... or Microsoft Windows API in all locations I find... ...
    (microsoft.public.vb.general.discussion)
  • Re: Instr()
    ... language convention and even Standard which describe such as "intrinsics". ... though they are wrappers to an API developed for the Windows OS. ...
    (microsoft.public.vb.general.discussion)
  • Re: Instr()
    ... the use of "API" for intrinsics and standard library routines is well out of the stream of ordinary nomenclature. ... are inbuilt functions any different from any other API? ...
    (microsoft.public.vb.general.discussion)

Loading