Item.Strings v ListText

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Item.Strings v ListText

Post by armsys » Tue Jan 25, 2011 4:26 am

It seems to me both Item.Strings and ListText properties are identical.
Why should 2 properties be used to store identical contents?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jan 25, 2011 7:50 am

Item.Strings is internal and cannot be set with Macro Scheduler code (it is a property of a sub-object). ItemText is therefore supplied as a way to set it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Jan 25, 2011 8:54 am

That's interesting. Now I understand Item.Strings can't be manupilated by Macro Scheduler code. Are both supposed/required to be identical?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jan 25, 2011 9:18 am

Just forget about Items.Strings since you can't access it or modify it. Forget it exists and use ListText instead. Use ListText to access and modify it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts