[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GEM edit field question



On Sun, 31 Jul 2005 01:45:41 , Henk Robbers <h.robbers@chello.nl> wrote:
> Lonny Pursell wrote:
> > Hi,
> >
> > I'm very curious about something.  Whilst making my gfa editor and adding
> > the search feature I had a problem.  The 'at' sign or '@' is used
> > extensively in GFA as the short form for 'gosub'.  The Problem as you may
> > have guessed is that typing '@my_routine' gives a blank edit field.
> >
> > Never fully understood this.  Only have theories.
> >
> > Is it just a bad design from 1985 when the assumption was the '@' char would
> > probably not be used?  Anyone know?  Documented somewhere?
> >
>
> It is a known 'feature' of the te_ptext field.
> Atari Profibuch ST/STE/TT page 559, ST page 355
>
> It is kind of 'set placeholders' character when in the first position.
> @2345678  yields 8 space characters. The string must be as long as
> pe_ptmplt indicates.
>
> It looks like a quick way to set a field to spaces.
> Note that ESC sets the field to a "" (empty) string.
>
> The only solution for you is to prescribe another character which
> you will replace by @ subsequently.
>

This feature is really annoying when running a .ttp that needs @xyz
as a parameter.

Regards,

Peter