michelleDub
Technical User
hi,
I'm trying to save details from a VB application in two ways. Firstly as a .txt file which stores variable valuse which can be reloaded to the application from the text file.
however I would alos like the user to be able to choose to save the file as a html file which will save a table of the variables and their values.
I'm using the Common Dialog and I have a .txt and .html filters. I want the outputs for the save to be different depending on the filter type chosen. I know I could do this with an if statement with something like
'If (file type = html file) then
'Write ...............
'Else
'Write .............
'End If
If anyone knows how I can check the chosen filter for the if statement it would be great.
thanks
Michelle
I'm trying to save details from a VB application in two ways. Firstly as a .txt file which stores variable valuse which can be reloaded to the application from the text file.
however I would alos like the user to be able to choose to save the file as a html file which will save a table of the variables and their values.
I'm using the Common Dialog and I have a .txt and .html filters. I want the outputs for the save to be different depending on the filter type chosen. I know I could do this with an if statement with something like
'If (file type = html file) then
'Write ...............
'Else
'Write .............
'End If
If anyone knows how I can check the chosen filter for the if statement it would be great.
thanks
Michelle