Results 1 to 2 of 2

Thread: Wordwrap?

  1. #1

    Thread Starter
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Post

    Im having trouble firing this code :

    Private Sub mnuwordwrap_Click()

    strreturnstr = WordWrap(ByVal strtext As String, ByVal intwidth as Integer) As String

    End Sub

    Its trying to call the function wordwrap but I get "list seperator or ) needed" and it highlights the as after strtext. Any suggestions?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    WordWrap(ByVal strtext As String, ByVal intwidth as Integer) As String would be the definition of a function. To call the function, change the code to strreturnstr = WordWrap(MyString, MyInt).

    ------------------
    Marty

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