Control arrays in Embedded VB 
Author Message
 Control arrays in Embedded VB

I'd really appreciate advice.    I'm intending to port a working VB6
application to a handheld like a pocket PC. The application has one control
array of 11 labels for holding display data, and another of 36 laid out
like a keyboard.
I want to control the keyboard closely to eliminate invalid data being
entered such as letters when I expect numbers.

However, I'm new to this development environment which is embedded VB
(loaded from the MS web site) and am finding it a bit baffling.  It does
not seem to support control arrays - it just has no mention of them and
they crash the environment or the PC if you force them into the form
(cut/pasted with word - serves me right!).

I can reduce interaction with these labels by maintaining their property
settings in arrays but am left with a minimum of writing caption and
borderstyle with one set, caption and backcolor with another, creating 11 +
36  nearly identical click routines, and creating code of the sort:

sub SetBoxCaption(index as integer, newvalue as string)
select index
case 1: box1.caption = newvalue$
case 2:
..
..
case 35: box35.caption = newvalue$
end select
end sub

ditto for borderstyle and backcolor.   That is so very tedious and
inelegant.

Am I missing something really obvious?    Is there some other control,
container or technique I could use?    Am I trying to do this in a way
which is totally 'un-natural'?   Am I using the wrong tools altogether?
Also, the environment help is a bit turgid; can anyone recommend good
literature on this?

Thanks in anticipation.

Phil Brady



Tue, 02 Aug 2005 02:20:55 GMT  
 Control arrays in Embedded VB
On Thu, 13 Feb 2003 18:20:55 +0000, "P.R.Brady"

Quote:

>I'd really appreciate advice.    I'm intending to port a working VB6
>application to a handheld like a pocket PC. The application has one control
>array of 11 labels for holding display data, and another of 36 laid out
>like a keyboard.
>I want to control the keyboard closely to eliminate invalid data being
>entered such as letters when I expect numbers.

<snip>
I looked at eVB about a year ago
- and ran a mile
- it looks a real dog-pile

It might be an idea to check out :-
   www.appforge.com

I've looked through the product description, but not actually tried it
out.



Tue, 02 Aug 2005 17:36:04 GMT  
 Control arrays in Embedded VB

Quote:

> On Thu, 13 Feb 2003 18:20:55 +0000, "P.R.Brady"

> >I'd really appreciate advice.    I'm intending to port a working VB6
> >application to a handheld like a pocket PC. The application has one control
> >array of 11 labels for holding display data, and another of 36 laid out
> >like a keyboard.
> >I want to control the keyboard closely to eliminate invalid data being
> >entered such as letters when I expect numbers.
> <snip>
> I looked at eVB about a year ago
> - and ran a mile
> - it looks a real dog-pile

> It might be an idea to check out :-
>    www.appforge.com

> I've looked through the product description, but not actually tried it
> out.

Thanks Jerry,
     looks good 'on paper' so to speak, and will also run on a Palm which
is a real advantage.
I'll investigate further.
Phil


Tue, 02 Aug 2005 22:14:53 GMT  
 Control arrays in Embedded VB
On Fri, 14 Feb 2003 14:14:53 +0000, "P.R.Brady"

Quote:

>Thanks Jerry,
>     looks good 'on paper' so to speak, and will also run on a Palm which
>is a real advantage.
>I'll investigate further.
>Phil

Please do - and could you tell me what you find

Personally if it had Form.Print implemented I would definitely give it
a whirl.

As it is, it looks as if it does what you wanted



Tue, 02 Aug 2005 23:06:01 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Embedding licensed ActiveX Controls within a VB ActiveX Control

2. Passing parameters from embedded VB to embedded VC++

3. Help: Using the datarepeater control with an ActiveX control containing an embedded datacombo control

4. How to use Ole Control to embed a word doc in VB.Net

5. Using VB to embed OLE Container Control's .doc into Access 2.0 table

6. update content of a embedded ole object from vb controls

7. embedded vb rich text control

8. Need 3rd party control to embed a WebBrowser in VB

9. Correction: Need 3rd party control to embed a WebBrowser in VB

10. Embed Crystal Report Inside a VB From Picture Box Control

11. Control Manager On Embedded.vb

12. Where find ActiveX Control for VB Embedded

 

 
Powered by phpBB® Forum Software