Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

VS 2010 Getting values between brackets where anothe value exists

$
0
0
Hey Everyone

I have a program that is designed to allow users to buy and sell models (as a small computing project). The user has to register an account which is stored in a database separately. They must Login to be able to edit their account information. I have a form called UserSettings. This contains the text boxes and drop down boxes with profile information (e.g. name, email, first and last name, etc). However at the bottom of this form I have two text boxes, one which is called "Default Model Download Location" and the other is called "Default model upload Location". In my application I have a routine that creates a file (called "mus", it stands for modeller user settings). Certain user settings are stored in here (like a ini file).

Example structure of a *.mus file:
Code:

ModelDownload_Directory=[C:\Modeller\Models\Download]
ModelUpload_Directory=[C:\Modeller\Models\Upload]

I want to be able to create a routine that goes like this:

Code:

txtModelDownloadLocation.text = value WHERE ModelDownload_Directory=
txtModelUpload_Directory.text = value WHERE ModelUpload_Directory=

I was thinking this could be possible if done with regex, but I've spend all day trying to figure it out and getting no where.

Thank you for reading and I would appreciate any help!

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>