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: Mon, 31 Jan 2005 23:55:29 +0000
Delivered-to: gettingstarted at lists dot realsoftware dot com
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
Please help again.
Thanks.
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:24:59 -0600

if CanLose.Text < 0 then

if Val( VanLose.Text ) < 0 then
        CanLose.TextColor = &hFF0000
End if

Note that CanLose must have it's Styled flag set to true in the properties window.

HTH!

~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>