On Sep 30, 2006, at 6:54 PM, Joe Huber wrote:
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
I do the same thing; for instance --
Function StringValue(extends b as Boolean) as String
if b then
return "True"
else
return "False"
end if
End Function
Charles Yeomans
_______________________________________________
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>