[Openroad-users] Auto-tab

Andrew andrew at delta-link.com.au
Sat Jul 19 02:18:25 EST 2008


Hi Ian,

Um, this is what I have already tried:

ON CHILDBUFFERCHANGED t1[*].line =
declare
    i                       = integer not null;
    len                     = integer not null;
{
    len = length(EntryField(curframe.triggerfield).BufferText);
    if (len> 65) then
        i = field(t1).currow;
        t1.InsertRow(rownumber = i + 1);
        field(t1).SetInputFocus(row = i + 1);
    endif;
}

Works well, BUT...
But, if I go back to a row that is full and then paste some text, say 5 
characters worth, then the total length of the line is 70 characters.
The CharsPerLine and the variable size of the line column are set to 66.
This is hard to explain. Looks like the CharsPerLine value is being ignored.
Maybe I will have to add a lot more code to handle this issue...

Kind regards,
Andrew.


Ian Utley wrote:
> Hi,
>
>     I implemented this a few years ago, basically you combine the
> BufferChanged event (to check that the length of the entered text is at
> maximum) and a sequence of Win32 API calls to push a tab key onto the
> keyboard queue. Alternatively, if you know what the next field is, you
> can set the inputfocus within the bufferchanged event to goto the next
> field.
>
> Ian.
>
> Ian Utley
> Luminary - An Ingres Company
> Tel: +44 (0) 845 371 4090
> Email: Ian.Utley at luminary.co.uk
>  
> For more information on Luminary go to http://www.luminary.co.uk 
> Luminary Solutions Limited Registered in England No 4854134 VAT Reg No.
> 829 3166 13 
> Registered Office: Lacon House, Theobald's Road, London, WC1X 8RW
>   
>> -----Original Message-----
>> From: openroad-users-bounces at peerlessit.com [mailto:openroad-users-
>> bounces at peerlessit.com] On Behalf Of Andrew
>> Sent: 18 July 2008 02:59
>> To: International OpenROAD Users
>> Subject: [Openroad-users] Auto-tab
>>
>> Hi All,
>>
>> OR4.1Sp3
>>
>> Has anyone managed to successfully implemented some sort of auto-tab
>> feature?
>>
>> I need some help with getting this to work in table fields.
>>
>> Any help will be appreciated.
>>
>> Regards,
>> Andrew.
>> ________________________________________________________________
>> OpenROAD-Users mailing list
>>
>> You can maintain your subscription here:
>> http://www.peerlessit.com/mailman/listinfo/openroad-users
>>
>> To unsubscribe click on this link
>> mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
>>
>> To subscribe click on this link
>> mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
>>     
>
> ________________________________________________________________
> OpenROAD-Users mailing list
>
> You can maintain your subscription here:
> http://www.peerlessit.com/mailman/listinfo/openroad-users
>
> To unsubscribe click on this link
> mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
>
> To subscribe click on this link
> mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe 
>
>
>   


More information about the Openroad-users mailing list