PDA

Click to See Complete Forum and Search --> : Wordwrap?


MPrestonf12
Jan 8th, 2000, 08:16 AM
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?

MartinLiss
Jan 8th, 2000, 09:36 AM
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