ben, you can avoid those long lines by taking of your code from the code tags.
you can use html to make nicer.
like:

code:


Function cmdChangeExpiryDate_Click()
          Dim $adsUser
      $adsUser = GetObject($strUserPath)
          If $txtExpiryDate.Text = ""
                        $= $FORM.MsgBox("The expiration date cannot be empty.", "User expire date change")
                          $txtExpiryDate.Text = $adsUser.AccountExpirationDate
      Else
                      $adsUser.AccountExpirationDate = $txtExpiryDate.Text
                      $adsUser.SetInfo
                              If @ERROR
                                            $= $FORM.MsgBox("Expiration date has not been changed due to an error.", "User expire date change")
                    Else
                                      $= $FORM.MsgBox("Expiration date is changed to (" + $txtExpiryDate.Text + ").", "User expire date change")
                  EndIf
    EndIf
    $adsUser = Nothing
EndFunction




just came to my mind, there are tools too for doing this... just can't remember the site...


[ 17. August 2002, 13:00: Message edited by: Lonkero ]
_________________________
!

download KiXnet