473,383 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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_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
Jul 17 '05 #1
4 3528
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" <ha*@faams.net> wrote in message news:3efed9a2_3@newsfeed...
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

Jul 17 '05 #2
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" <st**************@verizon.net> wrote in message
news:Q_*******************@nwrdny02.gnilink.net...
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" <ha*@faams.net> wrote in message news:3efed9a2_3@newsfeed...
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


Jul 17 '05 #3
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" <st**************@verizon.net> wrote in message
news:Q_*******************@nwrdny02.gnilink.net...
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" <ha*@faams.net> wrote in message news:3efed9a2_3@newsfeed...
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


Jul 17 '05 #4
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" <ha*@faams.net> wrote in message news:3eff15fd_4@newsfeed...
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" <st**************@verizon.net> wrote in message
news:Q_*******************@nwrdny02.gnilink.net...
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" <ha*@faams.net> wrote in message news:3efed9a2_3@newsfeed...
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



Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nat | last post by:
Hi there, I have code as following but it returns error Error Type: Microsoft VBScript compilation (0x800A03F6) Expected 'End' /urbisjhdintranet/metadata/resultList.asp, line 324 which is the...
19
by: JKop | last post by:
Been thinking about the following: class Mammal { public: virtual void Mate(Mammal &) = 0; };
67
by: Serve La | last post by:
I asked if MS has any plans to support C99 in the next VisualC. This is their answer. I think we should whine more :-) We feel that C++ addresses this space sufficiently. In general we have no...
35
by: Stan Milam | last post by:
The following code implements a strcat-like function which can receive a variable number of arguments. I thought it would be faster if I kept a pointer to the end of the string as it is built so...
7
by: Mr. Mountain | last post by:
In the following code I simulate work being done on different threads by sleeping a couple methods for about 40 ms. However, some of these methods that should finish in about 40 -80 ms take as long...
3
by: Maurice Walmsley | last post by:
I'll avoid tell you how lame I am and get straight to the question... I need a good expanation to the "ByVal sender As Object, ByVal e As System.EventArgs" part of; Public Sub...
30
by: Tibby | last post by:
Okay, I've made my DLL with COM interop so it can be used with VB6, and it works like a charm, my question is, how do I register it and it's .tlb file on another computer so I can use it there? ...
4
by: Iprogramforlawyers | last post by:
I need to take any amount of rows and turn them into one single row. I'm exporting some data from sql. The program its going into only has one note field. I've used UNION and those types of...
3
by: saundra | last post by:
This appears to be the code that is giving me trouble. Can someone help <? include("common.php"); require_once("$HeaderFile"); if(empty($_GET)){ $Start = '0'; }else{ $Start = $_GET;
37
by: Phlip | last post by:
1230987za wrote: Kanze is a classically-trained "unit tester". In some circles "unit" is a QA concept - specifically, if a test fails, you only need to inspect one unit. So "units" are...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.