RE: OBJECT get variable type

2017-09-12 Thread Keith White via 4D_Tech
Hi >@Piotr: can you report this in the 4D forum as feature request? So I can vote Object filters don't do the same thing because placeholders cause the problems Koen already outlined. Here is the link to the feature request for alpha variable length limit (I also asked for similar alpha/text

Re: OBJECT get variable type

2017-09-11 Thread Chip Scheide via 4D_Tech
maybe - ON BEFORE KEYSTROKE test the current entered length vs expected/desired maximum (255, 4000 etc) On Mon, 11 Sep 2017 20:30:21 +1000, David Adams via 4D_Tech wrote: >> Tested with v16R4. Unfortunately this does not work nicely. > > No idea who thought this one up, but it wasn't me. I've

Re: OBJECT get variable type

2017-09-11 Thread David Adams via 4D_Tech
> Tested with v16R4. Unfortunately this does not work nicely. No idea who thought this one up, but it wasn't me. I've seen and heard plenty of 4D developers who keep a table with fields of various lengths. In your case, an alpha 255 and a text field. Then, you use that field on your form and 4D

Re: OBJECT get variable type

2017-09-11 Thread Keisuke Miyako via 4D_Tech
thank you for sharing. to be honest, I have never used the "filter" feature since it is not compatible with Japanese by design (we don't use a keyboard with 10,000 keys, so before/after keystroke doesn't make sense). I was hopeful it might work with filtering ASCII by length, well, apparently

Re: OBJECT get variable type

2017-09-11 Thread Koen Van Hooreweghe via 4D_Tech
Hi Keisuke, Tested with v16R4. Unfortunately this does not work nicely. The entry is indeed limited to the number of chars given. But… 1. when continuously typing, the cursor wraps around from the last char to the first and the already entered text is overwritten 2. you cannot select more than 1

Re: OBJECT get variable type

2017-09-11 Thread Keisuke Miyako via 4D_Tech
you can set a (rather simplistic) length limit to a variable by code. OBJECT SET FILTER(*;"__object_name_here";"! &@"+("#"*$maxlen)) http://doc.4d.com/4Dv15/4D/15.4/OBJECT-SET-FILTER.301-3273846.en.html http://doc.4d.com/4Dv15/4D/15.4/Filter-and-format-codes.300-3285353.en.html but I still

RE: OBJECT get variable type

2017-09-11 Thread Piotr Chabot Stadhouders via 4D_Tech
y...@4d.com] > Verzonden: zaterdag 9 september 2017 2:18 > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > Onderwerp: Re: OBJECT get variable type > > Hello, > > the variable type property serves two purposes: > > to filter the display in the property list, and

Re: OBJECT get variable type

2017-09-08 Thread Keisuke Miyako via 4D_Tech
Hello, the variable type property serves two purposes: to filter the display in the property list, and to declare the data source variable type in case no variable name is defined. otherwise, you only need to know OBJECT Get type which is constant for the object, and OBJECT Get pointer which

OBJECT get variable type

2017-09-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, V16 Maybe this is a stupid question but I just don't see it : When putting a variable on a form and set a variable name to t I attach a variable to the object, for example a C_TEXT variable However, there is also a property "Variable Type", that doesn't necessarily has to be of type text,