gettingstarted
[Top] [All Lists]

Re: Return value Red if negative

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: Return value Red if negative
From: "Lennox Jacob" <lenpartico at hotmail dot com>
Date: Tue, 01 Feb 2005 00:05:14 +0000
Delivered-to: gettingstarted at lists dot realsoftware dot com
Thanks Aaron,
It worked.
Thanks again.
Lennox.

From: Aaron Ballman <aaron at realsoftware dot com>
Reply-To: Getting Started <gettingstarted at lists dot realsoftware dot com>
To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Return value Red if negative
Date: Mon, 31 Jan 2005 17:58:21 -0600


On Jan 31, 2005, at 5:55 PM, Lennox Jacob wrote:

Thanks Aaron,
But still having problems...
CanLose.text = format(R2, "-#.##")
 if Val( CanLose.Text ) < 0 then
   CanLose.TextColor = &hFF0000
 End if
... Expected color, but got integer

Ack! Good catch -- that should be &cFF0000 (not &h, which is an integer, but &c which is a color).

Again, typing in email editor, not code editor... Sorry about that!

~Aaron
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>

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

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

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

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

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