DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 5 123 ... LastLast
Results 1 to 15 of 75

Thread: strPtr()?

Hybrid View

  1. #1
    - John of Arc - Guest

    strPtr()?

    How does on use strPtr() from VB?
    Is it not documented anywhere?
    Are there other such undocumented features?

    Thanks.



  2. #2
    mike Guest

    Re: strPtr()?


    There is also ObjPtr and VarPtr. There others also, eg: the textbox has a
    clear method.

    To find them, push F2, right click and select Show Hidden Members

    Mike

    "- John of Arc -" <666@666.666> wrote:
    >How does on use strPtr() from VB?
    >Is it not documented anywhere?
    >Are there other such undocumented features?
    >
    >Thanks.
    >
    >



  3. #3
    Phil Weber Guest

    Re: strPtr()?

    > How does one use strPtr() from VB? Is it not documented
    > anywhere? Are there other such undocumented features?


    John: A search for "StrPtr" at http://search.microsoft.com/us/dev/ turned up
    the following:

    http://support.microsoft.com/support.../q199/8/24.asp
    http://msdn.microsoft.com/library/bo...b5/Ch08_31.htm

    ---
    Phil Weber



  4. #4
    Michael \(michka\) Kaplan Guest

    Re: strPtr()?

    Why not look up the myriad of answers from where you posted elsewhere?

    --
    MichKa
    (insensitive fruitarian)

    random junk of dubious value, a multilingual website, the
    54-language TSI Form/Report to Data Access Page Wizard,
    and lots of replication "stuff" at the (no scripts required!)
    http://www.trigeminal.com/


    "- John of Arc -" <666@666.666> wrote in message
    news:39064efb@news.devx.com...
    > How does on use strPtr() from VB?
    > Is it not documented anywhere?
    > Are there other such undocumented features?
    >
    > Thanks.
    >
    >




  5. #5
    Adelle Hartley Guest

    Re: strPtr()?

    Open the object browser in VB and browse the VBA library.
    If you right-click within the object browser you get a "Show Hidden members"
    option.
    If you switch this on, you will find StrPtr listed under _HiddenModule.

    Note that with anything you find out about this way:
    "Microsoft does not guarantee that they will be available in future releases
    of Visual Basic."

    Not that you should let that put you off using StrPtr if you really need it.
    Just think
    about the life-time of your source code and whether it matters if the
    feature you use
    isn't available in the next version of VB.

    Adelle.

    mike <m_culley@one.net.au> wrote in message news:39066c24$1@news.devx.com...
    >
    > There is also ObjPtr and VarPtr. There others also, eg: the textbox has a
    > clear method.
    >
    > To find them, push F2, right click and select Show Hidden Members
    >
    > Mike
    >
    > "- John of Arc -" <666@666.666> wrote:
    > >How does on use strPtr() from VB?
    > >Is it not documented anywhere?
    > >Are there other such undocumented features?
    > >
    > >Thanks.
    > >
    > >

    >




  6. #6
    Phil Weber Guest

    Re: strPtr()?

    > Why not look up the myriad of answers from where
    > you posted elsewhere?


    Michael: Where might that be?
    ---
    Phil Weber



  7. #7
    Michael \(michka\) Kaplan Guest

    Re: strPtr()?

    microsoft.public.vb.winapi is where I saw him post....

    --
    MichKa
    (insensitive fruitarian)

    random junk of dubious value, a multilingual website, the
    54-language TSI Form/Report to Data Access Page Wizard,
    and lots of replication "stuff" at the (no scripts required!)
    http://www.trigeminal.com/


    "Phil Weber" <pweber@teleport.com> wrote in message
    news:39067acd$1@news.devx.com...
    > > Why not look up the myriad of answers from where
    > > you posted elsewhere?

    >
    > Michael: Where might that be?
    > ---
    > Phil Weber
    >
    >




  8. #8
    Phil Weber Guest

    Re: strPtr()?

    > microsoft.public.vb.winapi is where I saw him post....

    Michael: Thanks. I searched on deja.com before I asked, but couldn't find
    anything. I was mostly concerned that he may have multi-posted to this
    server, where I can do something about it. ;-)
    ---
    Phil Weber



  9. #9
    Larry Triezenberg Guest

    Re: strPtr()?

    Interesting. Question being: how (or why) would you use a textbox.clear? I
    see .additem, .clear, .removeitem but get an error 438 (Object doesn't
    support this property or method) if I call it. Don't know why I'd want to,
    does it (they) serve some purpose?

    mike wrote in message <39066c24$1@news.devx.com>...
    >
    >There is also ObjPtr and VarPtr. There others also, eg: the textbox has a
    >clear method.



  10. #10
    Phil Weber Guest

    Re: strPtr()?

    > Question being: How (or why) would you use a TextBox.Clear?
    > I see .AddItem, .Clear, .RemoveItem but get an error 438 (Object
    > doesn't support this property or method) if I call it. Don't know
    > why I'd want to; do they serve some purpose?


    Larry: AddItem, Clear, _Default and RemoveItem are defined for most of VB's
    intrinsic controls. I suspect that these controls implement a standard
    interface which includes these methods, but only certain controls (such as
    List- and ComboBoxes) actually support them.
    ---
    Phil Weber



  11. #11
    Larry Triezenberg Guest

    Re: strPtr()?

    Phil, that's kind of what I figured, but since it was posted as (potentially
    useful) information I thought that I might be somehow missing something...

    Larry Triezenberg
    "What should it be if it shouldn't be fun?" (John Hartford)

    Phil Weber wrote in message <3906c69f$1@news.devx.com>...
    >Larry: AddItem, Clear, _Default and RemoveItem are defined for most of VB's
    >intrinsic controls. I suspect that these controls implement a standard
    >interface which includes these methods, but only certain controls (such as
    >List- and ComboBoxes) actually support them.




  12. #12
    Michael \(michka\) Kaplan Guest

    Re: strPtr()?

    LOL, no problem. I just wish people would pick a place and then give people
    a chance to answer before picking somewhere else..... considering how
    quickly people posted answers and all.

    I do not think multiposting to msnews and devx is useful as it forces
    conversations to not be easily followable in both places, etc.

    --
    MichKa
    (insensitive fruitarian)

    random junk of dubious value, a multilingual website, the
    54-language TSI Form/Report to Data Access Page Wizard,
    and lots of replication "stuff" at the (no scripts required!)
    http://www.trigeminal.com/


    "Phil Weber" <pweber@teleport.com> wrote in message
    news:39068886$1@news.devx.com...
    > > microsoft.public.vb.winapi is where I saw him post....

    >
    > Michael: Thanks. I searched on deja.com before I asked, but couldn't find
    > anything. I was mostly concerned that he may have multi-posted to this
    > server, where I can do something about it. ;-)
    > ---
    > Phil Weber
    >
    >




  13. #13
    Karl E. Peterson Guest

    Re: strPtr()?

    Hi Phil --

    > > How does one use strPtr() from VB? Is it not documented
    > > anywhere? Are there other such undocumented features?

    >
    > John: A search for "StrPtr" at http://search.microsoft.com/us/dev/ turned up
    > the following:
    >
    > http://support.microsoft.com/support.../q199/8/24.asp
    > http://msdn.microsoft.com/library/bo...b5/Ch08_31.htm


    Thought DevX would've found http://www.mvps.org/vb/tips/varptr.htm <sniff>

    Later... Karl



  14. #14
    Phil Weber Guest

    Re: strPtr()?

    > Thought DevX would've found
    > http://www.mvps.org/vb/tips/varptr.htm


    Karl: It does, it's the number one hit! I searched MSDN because John asked
    whether it was "documented," by which I assumed he meant by Microsoft.
    ---
    Phil Weber



  15. #15
    Phil Weber Guest

    Re: strPtr()?

    > I do not think multiposting to msnews and DevX is useful
    > as it forces conversations to not be easily followable in both
    > places, etc.


    Michael: I completely agree. Unfortunately, we have no jurisdiction over
    what people post to other servers. All I can do is try to make these groups
    so much more valuable that people won't feel the need to post elsewhere
    (looks like our shill David Mark is doing a good job at making msnews less
    appealing. :-).
    ---
    Phil Weber

    P.S. -- That's a JOKE, people! :-)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center