realbasic-nug
[Top] [All Lists]

Re: How do you sort Object arrays?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How do you sort Object arrays?
From: Joe Huber <joehuber at talasoft dot com>
Date: Sat, 30 Sep 2006 15:54:02 -0700
Cc:
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <003b01c6e4d5$77d01390$6401a8c0 at HP> <D986D823-8523-48CE-9DA5-ED614C8D6EF8 at mobleybros dot com>
At 3:11 PM -0700 9/30/06, Phil M wrote:
The second surprise was that Extends works with array types.

FWIW Extends also works with base types like Integer and String.

Instead of using the ever maligned STR function I coded my own version

Function AsText(Extends i as integer, fmt as string = "-0") As string
  return Format(i, fmt)
End Function


and most of the time I just call it like this;

  MsgBox "This is an integer displayed as text: " + MyInteger.AsText

Regards,
Joe Huber
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>