I am also having problems with POST KEY in v16. It simply doesn't work :)
Sample code:

*Case of*

*:* ($i="copy")

*POST KEY*(*Character code*("c");Command key mask)

*:* ($i="paste")

*POST KEY*(*Character code*("v");Command key mask)

*:* ($i="cut")

*POST KEY*(*Character code*("x");Command key mask)

*:* ($i="selectAll")

*POST KEY*(*Character code*("a");Command key mask)

End case


The database is definitely running in Unicode mode - it was created new in
v16.


Any ideas? Still a bug?


Pat

On 11 October 2017 at 16:39, Ken Daniel via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> All, I finally solved my problem. All I had to do was check* Unicode Mode*
> in Design > Database Settings > Compatibility. Thanks very much to everyone
> for their suggestions and help. :-) Ken
>
>
> *P.S. Ultimately it was Vance Villanueva from 4D Tech Support that helped
> me solve the problem. He prepared a screencast showing me that post key
> worked using my database and I noticed during the screencast a message
> popped up warning that the database must be used in Unicode mode in order
> to be opened and asking to temporarily switch to Unicode mode. I had never
> seen that message before and that's what lead me to check the Unicode Mode
> in my database.*
>
> On Mon, Oct 9, 2017 at 9:41 AM, Ken Daniel <kendan...@maxkatzbag.com>
> wrote:
>
> > Koen & Steve, thanks for the tip, but in this case I am using POST
> > KEY(Character code(".");Command key mask) and had the shortcut of Ctrl .
> > assigned to a button. It only fails to work in this one converted
> database.
> > I've converted another database to v16 for a different application and it
> > works fine. I've compared the two databases and can't discern any
> > difference. In another test, if I execute POST KEY (Character
> Code("a")), I
> > can see it populate a variable field with the letter "a", but it just
> won't
> > execute the code assigned to the button with that shortcut. Ken
> >
> > On Mon, Oct 9, 2017 at 9:07 AM, Koen Van Hooreweghe via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> Hi Ken,
> >>
> >> What particular shortcut are you using?
> >> Also check the case of the character you are using, as Stephen pointed
> >> out. In v14 I discovered a bug when running the command POST
> KEY(Character
> >> code("A");Command key mask). This was fine in v13 and earlier, but
> crashes
> >> v14, v15 and v16.
> >> My report got bug number ACI0093238 in july 2015, but as I just tested
> in
> >> v16.2 it has not been fixed yet.
> >>
> >> On the other hand the code should be: POST KEY(Character
> >> code(“a");Command key mask), which works fine in v14 and later.
> >>
> >> IIRC in compiled mode it seemed to be working, but 4D would crash a bit
> >> later.
> >>
> >> Kind regards,
> >> Koen
> >>
> >
> > On Mon, Oct 9, 2017 at 8:38 AM, Stephen J. Orth <s.orth@the-aquila-group.
> > com> wrote:
> >
> >> Ken,
> >>
> >> If I recall correctly, I ran into an issue due to case sensitivity.
> Make
> >> sure the case of the assigned letter is the same as how you are using
> it in
> >> the command.
> >>
> >>
> >> Steve
> >>
> >>
> >
> >>
> >> > Op 8 okt. 2017, om 15:21 heeft Ken Daniel via 4D_Tech <
> >> 4d_tech@lists.4d.com> het volgende geschreven:
> >> >
> >> > All, I'm having a problem with the Post Key command not working in a
> >> > database converted from 4Dv14 to v16. Post Key works fine in 4Dv14,
> and
> >> > works in 4Dv15 and even in a newly created database in v16, but not in
> >> my
> >> > converted database. I've tried resetting the Preferences and Database
> >> > Settings to Factory Settings and changing event actions, but nothing
> has
> >> > worked. Anyone have any suggestions as to what the problem may be?
> >> Thanks,
> >>
> >>
> >>
> >> --------------------
> >> Compass bvba
> >> Koen Van Hooreweghe
> >> Kloosterstraat 65
> >> 9910 Knesselare
> >> Belgium
> >> tel +32 495 511.653
> >>
> >> **********************************************************************
> >> 4D Internet Users Group (4D iNUG)
> >> FAQ:  http://lists.4d.com/faqnug.html
> >> Archive:  http://lists.4d.com/archives.html
> >> Options: http://lists.4d.com/mailman/options/4d_tech
> >> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> >> **********************************************************************
> >
> >
> >
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************




-- 
*************************************************
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to