Re: customProperties or similar for words in a field?

2015-10-10 Thread Dr. Hawkins
On Sat, Oct 10, 2015 at 6:24 PM, Richard Gaskin wrote: > Hello World That gets back to parsing backwards from the point of insertion, I think . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runr

Re: customProperties or similar for words in a field?

2015-10-10 Thread Richard Gaskin
Scott Rossi wrote: I probably don't understand the scope of the problem, but barring the use of wordOffset (am guessing some of your strings are multiple words), perhaps you could use htmlText with custom tags, i.e. Sept 10, 2015 and render the text as htmlText. In theory, the tags won't be sho

Re: customProperties or similar for words in a field?

2015-10-10 Thread Dr. Hawkins
On Sat, Oct 10, 2015 at 5:34 PM, J. Landman Gay wrote: > I can't think of anything elegant offhand. What popped into my head was a > "madlibs" approach where you put up a dialog requesting the various data > items and save the responses. Not pretty. > I'm partway there. I parse each input line

Re: customProperties or similar for words in a field?

2015-10-10 Thread Scott Rossi
I probably don't understand the scope of the problem, but barring the use of wordOffset (am guessing some of your strings are multiple words), perhaps you could use htmlText with custom tags, i.e. Sept 10, 2015 and render the text as htmlText. In theory, the tags won't be shown to the user, but wi

Re: customProperties or similar for words in a field?

2015-10-10 Thread J. Landman Gay
On 10/10/2015 10:28 AM, Dr. Hawkins wrote: On Sat, Oct 10, 2015 at 8:21 AM, J. Landman Gay wrote: This sounds like a job for the merge command. thanks,but that's a one-way trip. If the user changes something, I need to know which piece, as it shows up elsewhere. (And, potentially the use

Re: customProperties or similar for words in a field?

2015-10-10 Thread Dr. Hawkins
On Sat, Oct 10, 2015 at 8:21 AM, J. Landman Gay wrote: > > This sounds like a job for the merge command. > > thanks,but that's a one-way trip. If the user changes something, I need to know which piece, as it shows up elsewhere. (And, potentially the user could change the base text, too, which

Re: customProperties or similar for words in a field?

2015-10-10 Thread J. Landman Gay
On October 10, 2015 9:58:13 AM CDT, "Dr. Hawkins" wrote: > >I am now getting to motions, which will use data much like mail-merge >in a >word processor. So I might use something like > >Debtor ##dname## filed this petition on ##petdate## > > >to generate > > >Debtor John Doe filed this petitio

Re: customProperties or similar for words in a field?

2015-10-10 Thread Dr. Hawkins
It has also occurred to me to wrap in an html tag or some such to do this. On Sat, Oct 10, 2015 at 7:58 AM, Dr. Hawkins wrote: > Most of what I generate is forms, so keeping track of fields is easy and > natural. > > I am now getting to motions, which will use data much like mail-merge in a > w

customProperties or similar for words in a field?

2015-10-10 Thread Dr. Hawkins
Most of what I generate is forms, so keeping track of fields is easy and natural. I am now getting to motions, which will use data much like mail-merge in a word processor. So I might use something like Debtor ##dname## filed this petition on ##petdate## to generate Debtor John Doe filed th

Re: setting all the customProperties of A to those of B

2013-09-08 Thread dunbarx
I made a new stack and a group. I set two custom properties of that group. I then set the customProperties of the card to the customProperties of the group. Worked fine. Craig -Original Message- From: Dr. Hawkins To: How to use LiveCode Sent: Sun, Sep 8, 2013 9:37 am Subject: Re

Re: setting all the customProperties of A to those of B

2013-09-08 Thread Dr. Hawkins
On Sun, Sep 8, 2013 at 7:23 AM, Dave Kilroy wrote: > Yes I agree buttons are special - however just did some tests and setting > customProperties group to group was fine, as was card to card - group to > card failed for me until I specified the card the group was on - and then it >

Re: setting all the customProperties of A to those of B

2013-09-08 Thread Dave Kilroy
Yes I agree buttons are special - however just did some tests and setting customProperties group to group was fine, as was card to card - group to card failed for me until I specified the card the group was on - and then it worked fine (LiveCode 6.1 rc4 on Lion) "set the customproperties

Re: setting all the customProperties of A to those of B

2013-09-08 Thread Dr. Hawkins
On Sun, Sep 8, 2013 at 6:31 AM, wrote: > I would never think that could be an issue. Custom properties are not >object dependent. I set the customProperties of a card to that of a button. >Worked as I assumed it would. Buttons are special, though; they're set up to be behaviors.

Re: setting all the customProperties of A to those of B

2013-09-08 Thread dunbarx
I would never think that could be an issue. Custom properties are not object dependent. I set the customProperties of a card to that of a button. Worked as I assumed it would. Craig Newman -Original Message- From: Dave Kilroy To: use-revolution Sent: Sun, Sep 8, 2013 6:14 am

Re: setting all the customProperties of A to those of B

2013-09-08 Thread Dave Kilroy
You are using two different control types (group and card). Perhaps you can do the setting of customProperties between two controls of the same type without the need for an intervening variable Dr. Hawkins wrote > And > > put the customProperties of grp B into zz >

Re: setting all the customProperties of A to those of B

2013-09-07 Thread dunbarx
Not sure what is wrong, but this works as advertised. You are aware that the customProperties is an array, so you would see empty if you just, say: answer the customProperties of yourObject Craig -Original Message- From: Dr. Hawkins To: How to use LiveCode Sent: Sat, Sep 7

Re: setting all the customProperties of A to those of B

2013-09-07 Thread Dr. Hawkins
On Sat, Sep 7, 2013 at 11:43 AM, Dr. Hawkins wrote: > Do I need to use an intermediate variable? And put the customProperties of grp B into zz set the customProperties of cd A to zz does indeed work. But why is it necessary? -- Dr. Richard E. Hawkins, Esq. (702) 508-8

setting all the customProperties of A to those of B

2013-09-07 Thread Dr. Hawkins
I'm trying to set the customProperties of cd A to the customProperties of grp B But I'm getting an empty set. I can set them one by one, but I'd rather have it all at once. Do I need to use an intermediate variable? -- Dr. Richard E. Hawkins, Esq.

Re: setting existing customproperties

2013-08-01 Thread J. Landman Gay
On 8/1/13 6:57 PM, Dr. Hawkins wrote: I watched in the property inspector, but apparently I have to leave that view for the inspector to actually show the change. Oh that. Yeah. No dynamic updating. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software

Re: setting existing customproperties

2013-08-01 Thread Dr. Hawkins
On Thu, Aug 1, 2013 at 3:05 PM, J. Landman Gay wrote: > I set properties on stacks all the time, it works exactly like setting them > on a field or any other object. You don't need to use an array unless you > want to store an actual array without combining it first. > > What happened when it fail

Re: setting existing customproperties

2013-08-01 Thread Peter Haworth
On Thu, Aug 1, 2013 at 2:50 PM, Dr. Hawkins wrote: > (e.g., I have some fields with a custom "textClr" property from typos . . . Alex Tweedly's explicitProperties plugin will help protect you from misspelled custom property names. Pete lcSQL Software

Re: setting existing customproperties

2013-08-01 Thread J. Landman Gay
On 8/1/13 4:50 PM, Dr. Hawkins wrote: I've been setting custom properties of fields willy-nilly for some time now without a problem. I tried on stacks today, and failed. Reading the dictionary, it appears that I should be using an array. Is being able to set a custom property of a field a bug,

Re: setting existing customproperties

2013-08-01 Thread dunbarx
Richard. Something amiss. Setting and getting custom properties of fields is unremarkable. Craig -Original Message- From: Dr. Hawkins To: How to use LiveCode Sent: Thu, Aug 1, 2013 5:50 pm Subject: setting existing customproperties I've been setting custom properties of f

setting existing customproperties

2013-08-01 Thread Dr. Hawkins
I've been setting custom properties of fields willy-nilly for some time now without a problem. I tried on stacks today, and failed. Reading the dictionary, it appears that I should be using an array. Is being able to set a custom property of a field a bug, or am I missing something here? (e.g.,

Re: Sample stack demonstrating how to obtain all properties and customproperties of a stack?

2011-12-29 Thread Richard Gaskin
Keith wrote: Richard: I have a pretty large stack with lots of graphics and controls... I could just save the stack to save the settings, but each stack would be quite large in size. Also, if I need to upgrade the software, all of the saved stacks would need to be updated accordingly. I have de

Re: Sample stack demonstrating how to obtain all properties and customproperties of a stack?

2011-12-29 Thread Keith (Gulf Breeze Ortho Lab)
esume this is the way to go?) Thanks again, - Boo -Original Message- From: Richard Gaskin Sent: Thursday, December 29, 2011 11:30 AM To: use-livecode@lists.runrev.com Subject: Re: Sample stack demonstrating how to obtain all properties and customproperties of a stack? Bob Sneidar

Re: CustomProperties

2011-05-06 Thread Peter Brigham MD
On May 5, 2011, at 8:37 PM, dunb...@aol.com wrote: > You can. You can even set a custom property to an entire stack. > > > I use these all the time, they are incredibly powerful and convenient. > > > But I do not understand what it means to set a property to an object, as > opposed to a chunk

Re: CustomProperties

2011-05-06 Thread Thomas McGrath III
This does not however work in iOS. I just tried it and remembered that clipboard is not supported yet. Tom -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On May 5, 2011, at 11:37 PM, Jim Ault wrote: > These two lines should do it > > copy button "btnToStoreAsObjectForma

Re: CustomProperties

2011-05-06 Thread Thomas McGrath III
Jim, Ahh! I didn't think of the clipboard. I tried a bunch of things. Thank you -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On May 5, 2011, at 11:37 PM, Jim Ault wrote: > copy button "btnToStoreAsObjectFormat" > set the cpsObjects["cpBtn2"] of this stack to the clip

Re: CustomProperties

2011-05-05 Thread Jim Ault
These two lines should do it copy button "btnToStoreAsObjectFormat" set the cpsObjects["cpBtn2"] of this stack to the clipboarddata["objects"] Dictionary explains the clipboard array elements, one of which is "objects" Note special rules for stacks, cards, and groups. On May 5, 201

Re: CustomProperties

2011-05-05 Thread dunbarx
Code Sent: Thu, May 5, 2011 10:25 pm Subject: CustomProperties I thought it was possible to 'store' a button in a custom property? This cold is getting to me, I can't remember. I thought you could store all kinds of things into a custom property? Images, object, sounds, etc. -

CustomProperties

2011-05-05 Thread Thomas McGrath III
I thought it was possible to 'store' a button in a custom property? This cold is getting to me, I can't remember. I thought you could store all kinds of things into a custom property? Images, object, sounds, etc. -- Is this correct? Thanks, and apologies for my cold driven forgetfulness. -- T