AnsweredAssumed Answered

Pass variable from VB.net to Python.

Question asked by dalejs on Nov 20, 2014
Latest reply on Nov 26, 2014 by dalejs


Thanks for looking at my question.  From searching on the internet either this cannot be done, or what code I find does not work.  It shows the VB.net side, but not what has to be done on the Python side.

 

This should be simple, I have a form in VB.net where the user selects an excel file to be converted to a dbf file then added to a geodatabase.  I can hard code the file and geodatabase name into my python script and it works fine.  I can run the script (with the hard coded names within) from my VB.net form, works fine.

 

What I want to do is when the user selects a file name from the listbox, that file name is then sent to the Python script as a variable when the script is called from VB.net.  Then within the Python script it picks up that variable.

 

Am I even close as to how I think this should work.  Dale,

Outcomes