Connecting Tech Pros Worldwide Forums | Help | Site Map

Hmmm..where do I start?

Hal Davison
Guest
 
Posts: n/a
#1: Jul 17 '05
I have an application that uses a TreeView for an interactive menu function
with its elements being populated from a database.

In the KEY component of the TreeView I put the acutal name of the program or
form to execute. Somthing like "frmOrder_status".

How can I execute that specific form with a Show operation?

Node.Key.Show don't seem to work.

Any suggestions?


--
Hal Davison
Davison Consulting



Stephane Richard
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Hmmm..where do I start?


Unfortunately, VB doesn't support macro substitution of the sort. What you
can do is

Select Case Node.Key
Case "frmOrder_Status'
frmOrder_Status.Show
Case "whatever other form names you have"
FormName.Show
End Select

hoep thsi helps

Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs


"Hal Davison" <hal@faams.net> wrote in message news:3efed9a2_3@newsfeed...[color=blue]
> I have an application that uses a TreeView for an interactive menu[/color]
function[color=blue]
> with its elements being populated from a database.
>
> In the KEY component of the TreeView I put the acutal name of the program[/color]
or[color=blue]
> form to execute. Somthing like "frmOrder_status".
>
> How can I execute that specific form with a Show operation?
>
> Node.Key.Show don't seem to work.
>
> Any suggestions?
>
>
> --
> Hal Davison
> Davison Consulting
>
>[/color]


Hal Davison
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Hmmm..where do I start?


Well...

At least that is an approach that will work for now.

What we do is populate a TreeView object with dynamic menu structures from
our SQL Server
along with the form informationm stored in the Node.Key.

But your solution looks like it will be the winner for today.

Thanks again..!!


"Stephane Richard" <stephane.richard@verizon.net> wrote in message
news:Q_YLa.26617$N%6.21911@nwrdny02.gnilink.net...[color=blue]
> Unfortunately, VB doesn't support macro substitution of the sort. What[/color]
you[color=blue]
> can do is
>
> Select Case Node.Key
> Case "frmOrder_Status'
> frmOrder_Status.Show
> Case "whatever other form names you have"
> FormName.Show
> End Select
>
> hoep thsi helps
>
> Stéphane Richard
> Senior Software and Technology Supervisor
> http://www.totalweb-inc.com
> For all your hosting and related needs
>
>
> "Hal Davison" <hal@faams.net> wrote in message news:3efed9a2_3@newsfeed...[color=green]
> > I have an application that uses a TreeView for an interactive menu[/color]
> function[color=green]
> > with its elements being populated from a database.
> >
> > In the KEY component of the TreeView I put the acutal name of the[/color][/color]
program[color=blue]
> or[color=green]
> > form to execute. Somthing like "frmOrder_status".
> >
> > How can I execute that specific form with a Show operation?
> >
> > Node.Key.Show don't seem to work.
> >
> > Any suggestions?
> >
> >
> > --
> > Hal Davison
> > Davison Consulting
> >
> >[/color]
>
>[/color]


Hal Davison
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Hmmm..where do I start?


OK hopefully this can be done:

Dim X as Integer
Dim Y as Integer
Dim Z as integer

User enters in input box: Z = X + Y

Can VB evaluate the expression and do the math and dump a result?

--Hal.

"Stephane Richard" <stephane.richard@verizon.net> wrote in message
news:Q_YLa.26617$N%6.21911@nwrdny02.gnilink.net...[color=blue]
> Unfortunately, VB doesn't support macro substitution of the sort. What[/color]
you[color=blue]
> can do is
>
> Select Case Node.Key
> Case "frmOrder_Status'
> frmOrder_Status.Show
> Case "whatever other form names you have"
> FormName.Show
> End Select
>
> hoep thsi helps
>
> Stéphane Richard
> Senior Software and Technology Supervisor
> http://www.totalweb-inc.com
> For all your hosting and related needs
>
>
> "Hal Davison" <hal@faams.net> wrote in message news:3efed9a2_3@newsfeed...[color=green]
> > I have an application that uses a TreeView for an interactive menu[/color]
> function[color=green]
> > with its elements being populated from a database.
> >
> > In the KEY component of the TreeView I put the acutal name of the[/color][/color]
program[color=blue]
> or[color=green]
> > form to execute. Somthing like "frmOrder_status".
> >
> > How can I execute that specific form with a Show operation?
> >
> > Node.Key.Show don't seem to work.
> >
> > Any suggestions?
> >
> >
> > --
> > Hal Davison
> > Davison Consulting
> >
> >[/color]
>
>[/color]


Stephane Richard
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Hmmm..where do I start?


Not per say no,

However, if you go to
http://www.planet.source-code.com and do a search for expression evaluation
in teh VB category, you should have several examples there on how to do this
kind of work.

--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Hal Davison" <hal@faams.net> wrote in message news:3eff15fd_4@newsfeed...[color=blue]
> OK hopefully this can be done:
>
> Dim X as Integer
> Dim Y as Integer
> Dim Z as integer
>
> User enters in input box: Z = X + Y
>
> Can VB evaluate the expression and do the math and dump a result?
>
> --Hal.
>
> "Stephane Richard" <stephane.richard@verizon.net> wrote in message
> news:Q_YLa.26617$N%6.21911@nwrdny02.gnilink.net...[color=green]
> > Unfortunately, VB doesn't support macro substitution of the sort. What[/color]
> you[color=green]
> > can do is
> >
> > Select Case Node.Key
> > Case "frmOrder_Status'
> > frmOrder_Status.Show
> > Case "whatever other form names you have"
> > FormName.Show
> > End Select
> >
> > hoep thsi helps
> >
> > Stéphane Richard
> > Senior Software and Technology Supervisor
> > http://www.totalweb-inc.com
> > For all your hosting and related needs
> >
> >
> > "Hal Davison" <hal@faams.net> wrote in message[/color][/color]
news:3efed9a2_3@newsfeed...[color=blue][color=green][color=darkred]
> > > I have an application that uses a TreeView for an interactive menu[/color]
> > function[color=darkred]
> > > with its elements being populated from a database.
> > >
> > > In the KEY component of the TreeView I put the acutal name of the[/color][/color]
> program[color=green]
> > or[color=darkred]
> > > form to execute. Somthing like "frmOrder_status".
> > >
> > > How can I execute that specific form with a Show operation?
> > >
> > > Node.Key.Show don't seem to work.
> > >
> > > Any suggestions?
> > >
> > >
> > > --
> > > Hal Davison
> > > Davison Consulting
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread