Results 1 to 3 of 3

Thread: Check if this function has bad coding in it please!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Angry

    Is there something wrong with this function:
    Code:
    Function RetLine(Text As String, Line As Long) As String
        Dim Lines As String
        Lines = Split(Text, vbCrLf)
        RetLine = Lines(Line)
    End Function
    If there is something wrong then please tell me! Is there a better way of implementing something like this!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Lines is an array, so try:

    Code:
    Dim Lines() As String
    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    thanx
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


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