Studio 8 - changing the text colour on a report

Gordon Wilson g_r_wilson at yahoo.com
Tue Oct 6 17:39:47 EDT 2020


 Hi Andy

The most significant difference between Do... $assign(...) and Calculate ... is that Do assign is not reversible whereas Calculate is reversible.

So, encapsulating a Do...$assign inside and Begin Reversible Block does not seem to work.

An example I have been using recently...

Begin Reversible Block    Do $cinst.$norefesh(kTrue)
End Reversible Block

Does not reverse...

Begin Reversible Block    Calculate $cinst.$norefesh as kTrue
End Reversible Block

Does reverse.

HTH ; )

Kind regards, Gordon.




    On Sunday, 4 October 2020, 04:10:59 am NZDT, Andy Hilton <andyh at totallybrilliant.com> wrote:  
 
 That raises the interesting question that I had always thought :

Calculate as

Was the exact same thing as 

Do xxxx.$assign()

Does anyone know definitively if there is any difference ?


Andy Hilton
Totally Brilliant Software Inc
Phone (US) : (863) 409 4870 
Phone (UK) : 0207 193 8582
Web : www.totallybrilliant.com <http://www.totallybrilliant.com/> 
Helpdesk : http://totallybrilliant.kayako.com
Email : andyh at totallybrilliant.com

> On Oct 3, 2020, at 11:06 AM, <malkishtini at gmail.com> <malkishtini at gmail.com> wrote:
> 
> Oops.I meant to say 
> Do
> $root.$ireports.rbusinesslabelsfx.$objs.OBJECTNAME.$textcolor.$assign(kRed)
> 
> HTH,
> Mayada
> -----Original Message-----
> From: malkishtini at gmail.com [mailto:malkishtini at gmail.com] 
> Sent: Saturday, October 03, 2020 11:03 AM
> To: 'OmnisDev List - English'
> Subject: RE: Studio 8 - changing the text colour on a report
> 
> Hi Randy,
> 
> One more thing to add here, I'm not sure if $assign works with " calculate
> as", so I would change the line of code to
> 
> Do
> $root.$ireports.rbusinesslabelsfx.$objs.OBJECTNAME.$textcolor.$assign(kTrue)
> 
> Regards,
> Mayada
> 
> 
> -----Original Message-----
> From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
> Of Jim Pistrang
> Sent: Saturday, October 03, 2020 10:56 AM
> To: Omnis List Mail
> Subject: Re: Studio 8 - changing the text colour on a report
> 
> Hi Randy,
> 
> I think the problem is that $textcolor is not a property of a report, it is
> a property of objects in the report class.
> 
> You need the name of the object here:
>  $root.$ireports.rbusinesslabelsfx.$objs.OBJECTNAME.$textcolor.$assign
> 
> Jim
> 
> 
>> Hi List,
>> 
>> I would like to have a colour picker when a user selects a report to
>> print but to start I just want to assign a colour to a report.  My piece
>> of notation doesn't work below:
>> 
>>     Calculate $root.$ireports.rbusinesslabelsfx.$objs.$textcolor.$assign
> as kRed
>> 
>> Any suggestions?
>> 
>> 
>> 
>> Thanks,
>> 
>> Randy Wilson
>> Plum Hollow Software Inc.
>> plum_hollow at cogeco.ca
>> 905-563-6516
>> 
>> 
>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> -- 
> Jim Pistrang
> JP Computer Resources
> 413-237-5710
> <https://jpcr.com>
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
  



More information about the omnisdev-en mailing list