msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

data entry into control array of text boxes - help!

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS
Author Message
budgie



Joined: 04 Oct 2007
Posts: 40

PostPosted: Mon Aug 21, 2006 8:40 pm    Post subject: data entry into control array of text boxes - help! Reply with quote

I have a form with five columns, each being a control array of 20 text boxes.
These are (to be) used for display of data for editing as required by the user.

To receive and process user input in a non-CA text box scenario I use LostFocus
to recover/check entered data, together with KeyUp and KeyPress events for
handling movement from box to box.

Now that I'm faced with a control array, am I faced with having TWENTY LostFocus
event procedures per column to capture user input? I've gone totally blank on
this. If anyone really wants to see the form I'll post it somewhere.

Archived from group: microsoft>public>vb>dos
Back to top
View user's profile Send private message
budgie



Joined: 04 Oct 2007
Posts: 40

PostPosted: Wed Aug 23, 2006 6:13 pm    Post subject: Re: data entry into control array of text boxes - help! Reply with quote

On Mon, 21 Aug 2006 16:40:00 +0800, budgie wrote:

>I have a form with five columns, each being a control array of 20 text boxes.
>These are (to be) used for display of data for editing as required by the user.
>
>To receive and process user input in a non-CA text box scenario I use LostFocus
>to recover/check entered data, together with KeyUp and KeyPress events for
>handling movement from box to box.
>
>Now that I'm faced with a control array, am I faced with having TWENTY LostFocus
>event procedures per column to capture user input? I've gone totally blank on
>this. If anyone really wants to see the form I'll post it somewhere.


Ah, OK, the penny has dropped on this one and life has returned to normal -
almost.

Can anyone see a reason for an "illegal function call" ERR05 in

frmPE3.txtRx(0).SETFOCUS

where the form name is "frmPE3" and "txtRx(0)" is the name of the first textbox
in a control array of 20 text boxes, indexes ranging from 0 to 19. This is
preventing a controlled focus when the form's textbox controls are cleared.

Nothing in the error description/explanation fits this circumstance. I would
appreciate any constructive suggestions.
Back to top
View user's profile Send private message
Bob O`Bob



Joined: 04 Oct 2007
Posts: 1456

PostPosted: Fri Aug 25, 2006 8:41 pm    Post subject: Re: data entry into control array of text boxes - help! Reply with quote

budgie wrote:
> On Mon, 21 Aug 2006 16:40:00 +0800, budgie wrote:
>
>> I have a form with five columns, each being a control array of 20 text boxes.
>> These are (to be) used for display of data for editing as required by the user.
>>
>> To receive and process user input in a non-CA text box scenario I use LostFocus
>> to recover/check entered data, together with KeyUp and KeyPress events for
>> handling movement from box to box.
>>
>> Now that I'm faced with a control array, am I faced with having TWENTY LostFocus
>> event procedures per column to capture user input? I've gone totally blank on
>> this. If anyone really wants to see the form I'll post it somewhere.
>
>
> Ah, OK, the penny has dropped on this one and life has returned to normal -
> almost.
>
> Can anyone see a reason for an "illegal function call" ERR05 in
>
> frmPE3.txtRx(0).SETFOCUS


When?


>
> where the form name is "frmPE3" and "txtRx(0)" is the name of the first textbox
> in a control array of 20 text boxes, indexes ranging from 0 to 19. This is
> preventing a controlled focus when the form's textbox controls are cleared.
>
> Nothing in the error description/explanation fits this circumstance. I would
> appreciate any constructive suggestions.



that doesn't seem to be the same error we usually see, but you can't
setfocus to a control unless the form is FULLY loaded and visible.



Bob
--
Back to top
View user's profile Send private message
Bob O`Bob



Joined: 04 Oct 2007
Posts: 1456

PostPosted: Fri Aug 25, 2006 8:57 pm    Post subject: Re: data entry into control array of text boxes - help! Reply with quote

Bob O`Bob wrote:
> that doesn't seem to be the same error we usually see, but you can't
> setfocus to a control unless the form is FULLY loaded and visible.

Whoops! I just realized which group this is.
Perhaps it's just as true in VBDOS, but I can't be as certain.
It's probably worth looking into anyway.


Bob
--
Back to top
View user's profile Send private message
budgie



Joined: 04 Oct 2007
Posts: 40

PostPosted: Fri Sep 01, 2006 12:04 am    Post subject: Re: data entry into control array of text boxes - help! Reply with quote

On Fri, 25 Aug 2006 16:57:21 -0700, Bob O`Bob wrote:

>Bob O`Bob wrote:
>> that doesn't seem to be the same error we usually see, but you can't
>> setfocus to a control unless the form is FULLY loaded and visible.
>
>Whoops! I just realized which group this is.
>Perhaps it's just as true in VBDOS, but I can't be as certain.
>It's probably worth looking into anyway.

It certainly appears to be the same. I had the SHOW statement *following* the
cleanup and preparation. When I moved the SHOW to before the SETFOCUS, the
problem disappeared.

Tnx for the heads-up.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group