473,509 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB substitution question

Not exactly asp.net, but I bet you people know this.

I used to like using command substitution in VFP where I could build a
string of VFP code and then execute it by putting a '&' in front of that
string.
Like this:

lcX = 'MyTable'
Use &lcX

In VFP the above would be equivalent to
Use MyTable

Can I do this in VB.net too? I didn't see anything in help that seemed
to apply, but I figure it must be in there somewhere. I want to have a
little code snippet in a database execute and I don't know how to
convert from a string to executable code in my application. Thanks!

Matt
Nov 19 '05 #1
2 1021
Matt,
There's really not an easy way to do this. you might want to check out:
http://www.planet-source-code.com/vb...2145&lngWId=10

or do a google search, but you won't find anything as simple as &

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"MattB" <so********@yahoo.com> wrote in message
news:32*************@individual.net...
Not exactly asp.net, but I bet you people know this.

I used to like using command substitution in VFP where I could build a
string of VFP code and then execute it by putting a '&' in front of that
string.
Like this:

lcX = 'MyTable'
Use &lcX

In VFP the above would be equivalent to
Use MyTable

Can I do this in VB.net too? I didn't see anything in help that seemed
to apply, but I figure it must be in there somewhere. I want to have a
little code snippet in a database execute and I don't know how to
convert from a string to executable code in my application. Thanks!

Matt

Nov 19 '05 #2
Karl Seguin wrote:
Matt,
There's really not an easy way to do this. you might want to check out:
http://www.planet-source-code.com/vb...2145&lngWId=10

or do a google search, but you won't find anything as simple as &

Karl


I'll check it out. Thanks!

Matt
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1942
by: Paddy | last post by:
Hi, I got tripped up on the way eval works with respect to modules and so wrote a test. It seems that a function carries around knowledge of the globals() present when it was defined. (The...
1
5134
by: Jacob Grydholt Jensen | last post by:
I am trying to learn iSQL*Plus for the 1Z0-007 exam. I am having a bit of problems with the substitution variables. My understanding was that they behave as in SQL*Plus, but my experiments beg to...
2
1719
by: StopBsod | last post by:
Hi Group, I'm a newbie in XML and my problem/question should be quite simple to solve.... 1) an XML file with content like <location>file://path/to/something1</location>...
1
2368
by: kollareddy | last post by:
Hi all, I am new to xml/xsd world. I want to know the differences between complex type and element being abstract and if both can be declared so, in case of substitution goups.Also can xsi:type...
4
6898
by: Don | last post by:
I think "macro substitution" is the correct term for what I want to do, but, to be sure, here is a description of what I'd like to know is possible: I want to be able to create a create an object...
5
4400
by: Murali | last post by:
In Python, dictionaries can have any hashable value as a string. In particular I can say d = {} d = "Right" d = "Wrong" d = "test" In order to print "test" using % substitution I can say
4
12067
by: Ian | last post by:
Hi, Hopefully a simple question but my brain is hurting... I want to make a regex substitution, using search and replace patterns contained in variables. What I want to do is: $f =...
2
1262
by: Steve | last post by:
Hi, I'm currently teaching myself about XML schems at the same time as specifying the XML document for a project I've been given to write. (I'm new to the XML world, so progress is a little slow...
11
2500
by: mailforpr | last post by:
Is this design well-formed? It contradicts the LSP and Design by contract anyhow. LSP tells us that "In class hierarchies, it should be possible to treat a specialized object as if it were a base...
2
1169
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
In our application consisting of several custom user controls we want one of these controls to be excluded from the page cache. For this I tried to use the substitution control for output cache...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.