03-09-2009 12:53 PM
Solved! Go to Solution.
03-09-2009 01:00 PM
secr1973 wrote:
I have looked in the forum but can't seem to find a solution, any ideas? Thanks
I found this example by simply searching for "UDL".
03-09-2009 01:46 PM
03-09-2009 03:10 PM - edited 03-09-2009 03:11 PM
That VI was just an example that opened the dialog with a blank connection. In that example, after you configured the connection with the dialog and dismissed it, the dialog would return the resultant connection object which was used to open a connection. If you want to pre-load a connection object then you need to do that before, and pass it to the PromptEdit method. For example see attached image.
A .udl file is just a text file, so you can simply read the connection string using the standard File I/O functions in LabVIEW, and then write it back out again after the dialog is dismissed.
03-09-2009 03:38 PM