Hmmm..where do I start?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hal Davison

    Hmmm..where do I start?

    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_statu s".

    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

    #2
    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_Statu s'
    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

    For all your hosting and related needs


    "Hal Davison" <[email protected] t> 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_statu s".
    >
    > 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]


    Comment

    • Hal Davison

      #3
      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.richa [email protected]> wrote in message
      news:Q_YLa.2661 7$N%6.21911@nwr dny02.gnilink.n et...[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_Statu s'
      > 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" <[email protected] t> 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_statu s".
      > >
      > > 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]


      Comment

      • Hal Davison

        #4
        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.richa [email protected]> wrote in message
        news:Q_YLa.2661 7$N%6.21911@nwr dny02.gnilink.n et...[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_Statu s'
        > 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" <[email protected] t> 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_statu s".
        > >
        > > 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]


        Comment

        • Stephane Richard

          #5
          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

          For all your hosting and related needs
          "Hal Davison" <[email protected] t> 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.richa [email protected]> wrote in message
          > news:Q_YLa.2661 7$N%6.21911@nwr dny02.gnilink.n et...[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_Statu s'
          > > 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" <[email protected] t> 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_statu s".
          > > >
          > > > 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]


          Comment

          Working...