Im currently writing an XML program where you can submit information about a person through comboboxes and textboxes. Im running into problems saving the data to a certain folder.
For Example: Creating Football Player information
- Enter Name of Player (textbox)
- Enter Team Name (choose from combobox)
- Enter Position (choose from combobox)
- etc
I would like to save the data in a file named for the Team Name and Position Name
Example, if the Team Name selected was "Washington Redskins" and the Position selected was "Quarterback", I would like to save the file to C:\Washington Reskins\Quarterback
My Current Code is as follows:
VB Code:
Code: Public ReadOnly Property DataFilename() As String Get Dim folderpath1 As String = cmbNewTeam.Text Dim folderpath2 As String = cmbNewPosition.Text ' get our working folder... Dim folder As String folder = "c:\" & folderpath1 "\" & folderpath2 "\" ' return the folder with the name "Player Profile.xml"... Return folder & "\Player Profile.xml" End Get End Property
If you look at the "folder =" part, you can see what Im trying to do. I just need the correct format for doing this. I know someone out there can figure this simple problem out. Thanks!!




Reply With Quote