Re: Best way to check if a Field is a label?

2015-07-10 Thread Peter M. Brigham
Still catching up on my list emails, so a little behind again. I use a virtual property writable to identify user input fields. It test not just for locktext but also for traversalon and autohilite. getprop writable a virtual field property -- writable = true if locktext =

Re: Best way to check if a Field is a label?

2015-07-10 Thread Bob Sneidar
I go one better. I label all my fields “fold” and the name of the database table column I want to associate with it. I then have 2 commands: Populate and Extract. Populate will take the array passed to it and fill all the fields on the card with the matching data from the array. Extract, as you

Re: Best way to check if a Field is a label?

2015-07-10 Thread Bob Sneidar
HAH! Fold. Seriously. I hate auto correct. It’s “fld”. Bob S On Jul 10, 2015, at 14:25 , Bob Sneidar bobsnei...@iotecdigital.commailto:bobsnei...@iotecdigital.com wrote: I label all my fields “fold” and the name of the database table column I want to associate with it.

RE: Best way to check if a Field is a label?

2015-07-08 Thread FlexibleLearning.com
Hi Peter As you will have gathered, there is no label property as such, simply a field with pre-defined attributes including lockText. It depends what you are trying to do and why you need to identify them, but if you need to regularly test the easiest way may be to manually specify a

Re: Best way to check if a Field is a label?

2015-07-08 Thread Peter W A Wood
Thanks, Hugh I’m trying to find the best way to clear all the fields in which data can be entered on a card. At the moment I use this code: repeat with y = 1 to the number of fields of this card if not the lockText of Field y then put empty into Field y end if end repeat It

Re: Best way to check if a Field is a label?

2015-07-08 Thread Mike Bonner
I name my fields with a trailing L or F which lets you do the same thing as using a custom prop. repeat with i = 1 to the number of fields of this card if (the last char of the short name of field i is F) then put random(1525434) into field i end repeat On Wed, Jul 8, 2015 at 4:27

Re: Best way to check if a Field is a label?

2015-07-08 Thread Peter W A Wood
That’s a good tip. Thanks Mike On 8 Jul 2015, at 21:11, Mike Bonner bonnm...@gmail.com wrote: I name my fields with a trailing L or F which lets you do the same thing as using a custom prop. repeat with i = 1 to the number of fields of this card if (the last char of the short name

Re: Best way to check if a Field is a label?

2015-07-08 Thread Richard Gaskin
Mike Bonner wrote: I name my fields with a trailing L or F which lets you do the same thing as using a custom prop. Same here. The first three letters are lbl, and if I don't need to handle them in a resizeStack message that's usually their whole name. But if I do need to identify them

Re: Best way to check if a Field is a label?

2015-07-08 Thread Mark Wieder
On 07/08/2015 07:24 AM, Richard Gaskin wrote: Same here. The first three letters are lbl, and if I don't need to handle them in a resizeStack message that's usually their whole name. But if I do need to identify them individually, then it's lbl the short name of whatever field they relate to.

Re: Best way to check if a Field is a label?

2015-07-08 Thread J. Landman Gay
I do something similar by naming the field with either a suffix -lbl or just lbl alone. Then the field scan can just check whether the name contains lbl. On July 8, 2015 5:27:08 AM CDT, Peter W A Wood peterwaw...@gmail.com wrote: Thanks, Hugh I’m trying to find the best way to clear all the

Re: Best way to check if a Field is a label?

2015-07-08 Thread Dr. Hawkins
On Wed, Jul 8, 2015 at 3:27 AM, Peter W A Wood peterwaw...@gmail.com wrote: I’m trying to find the best way to clear all the fields in which data can be entered on a card. At the moment I use this code: Situation dependent, of course, but I have sections with things like switch case