Hello,

I have created a custom exception class with RuntimeException as the parent
class.  I created a method called 'printStackTrace' to dump the stack to a
print method. When I compile this I get the error 'This method requires
fewer parameters than were passed' on the 'me.Stack(i).

sub printStackTrace
    dim count, i as integer

    count = UBound(me.Stack)
    for i = 0 to count
      me.print me.Stack(i)
    Next
end sub

However if I do this there is no compile error.

sub printStackTrace
    dim count, i as integer
    dim temp() as String

    count = UBound(me.Stack)
    temp = me.Stack
    for i = 0 to count
      me.print temp(i)
    Next
end sub

The docs say that RuntimeException.Stack is a property, so why does the
first code example fail?

David Abrames

-----------------------------------------------------------------

A little nonsense now and then is cherished by the wisest men. - Willy Wonka


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to