Solved

vb.net Variables

Posted on 2014-09-16
4
129 Views
Last Modified: 2014-09-19
Hi Experts

Passing variables between forms / Function etc

for example
I have a employee xlistpanel showing employee names
I then select the employee and a separate xlistpanel shows supplies allocated to the employee
select the supply and a form (Supply) shows all relevant details for that supply
supply.show()

How do in the supply form see the employee selected id variable and the Supply  selected Id

Hope I make sense
0
Comment
Question by:Kevinfeening
  • 2
4 Comments
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40327219
When you create the instance variable for the Supply form pass to it the employee in the Constructor that you need.
0
 

Author Comment

by:Kevinfeening
ID: 40327222
Thanks but new to this

How do you pass the Employee id variable (empid) from the xlist and the Supply id (suppId) from the 2nd xlist to the constructor in the supply form
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40327316
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40327892
Hi Kevinfeening;

Please see @kaufmed post and article and if you still having issues please post here.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question