Results 1 to 3 of 3

Thread: Few questions.

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Few questions.

    Is there no Instr fucntion for VB 2005, if not would this roughly do the trick, havent' tested it?

    VB Code:
    1. Private Function Instr(byval TargetString as String, byval StringToFind as string) as Boolean
    2.  
    3. For i as integer = 1 to TargetString.length
    4.  
    5.   If not StringToFind.length + i > TargetString.length then
    6.   If TargetString.substring(i,StringToFind.length) <> string.empty then
    7.  
    8.     return true
    9.     exit for
    10.  
    11.   End if
    12.   End if
    13.  
    14. Next
    15.  
    16. End Function


    I looks like you dispose of objects now which completly erases them from memory, so what is the need for a
    VB Code:
    1. set myObj = nothing
    ?

    have they done away with API Dec's you just use Import now right as in C++ ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width