Resource File

Ask general questions here.
narmand
Posts: 13
Joined: Thu Mar 21, 2013 11:20 pm

Resource File

Post by narmand » Fri May 31, 2013 5:52 am

On VB.NET project , How do I reference the string values of a recourse file?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Resource File

Post by Support Team » Mon Jun 03, 2013 3:02 pm

Hello,

Could you please describe in more detail what you want to do?
Thank you!

Regards,
Bernhard

narmand
Posts: 13
Joined: Thu Mar 21, 2013 11:20 pm

Re: Resource File

Post by narmand » Wed Jun 05, 2013 7:32 pm

I would like to use the resource file and add string values to my project, how do I go about referencing the name in my vb project. I would like to use this to replace hard coded values such as URL's.

For example

Resource file
name = test_url
content = www.google.com

Code Module

Host.Local.OpenBrowser(test_url, "IE", "", False, True)

Is this the proper method to reference the resource file string name?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Resource File

Post by Support Team » Thu Jun 06, 2013 1:48 pm

Hello,

If you want to use variables in your code you can either use global parameters or a data connector instead of the resource file.
If you want to use an external resource file, you can use the methods from the .NET IO Namespace in order to parse the file and save the specific values into you variable.

Regards,
Bernhard