$$ allows on to put a variable name in another variable and use it. I
would like a function, usable only in UDFs, that would return the actual
variable name associated with a function argument. This is,
approximately, the inverse of $$. One can achieve this by requiring the
user to to send all arguments as strings and using $$ throughout, but
that puts an undue burden on the function user. 3 1099
Bob Stearns wrote: $$ allows on to put a variable name in another variable and use it. I would like a function, usable only in UDFs, that would return the actual variable name associated with a function argument. This is, approximately, the inverse of $$.
Not possible. Think about it - what if the arguments aren't named
variables, e.g.:
foo(6, 6*$val, getNumber());
--
Oli
Bob Stearns wrote: $$ allows on to put a variable name in another variable and use it. I would like a function, usable only in UDFs, that would return the actual variable name associated with a function argument. This is, approximately, the inverse of $$. One can achieve this by requiring the user to to send all arguments as strings and using $$ throughout, but that puts an undue burden on the function user.
But how do you refer to the variable when you don't know its name?
Bob Stearns wrote: $$ allows on to put a variable name in another variable and use it. I would like a function, usable only in UDFs, that would return the actual variable name associated with a function argument. This is, approximately, the inverse of $$.
Not possible. Think about it - what if the arguments aren't named
variables, e.g.:
foo(6, 6*$val, getNumber());
--
Oli This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raymond Hettinger |
last post by:
Here is a discussion draft of a potential PEP.
The ideas grew out of the discussion on pep-284.
Comments are invited. Dart throwing is optional.
Raymond Hettinger
...
|
by: Raymond Hettinger |
last post by:
Please comment on the new PEP for reverse iteration methods.
Basically, the idea looks like this:
for i in xrange(10).iter_backwards(): # 9,8,7,6,5,4,3,2,1,0
<do something with i>
The...
|
by: engsolnom |
last post by:
I need to use the built-in method 'reverse', but notice strange behavior.
Foe example:
print my_list.reverse() doesn't work.
new_list = my_list.reverse() doesn't work.
my_list.reverse()...
|
by: Jim Langston |
last post by:
I have a class I designed that stores text chat in a
std::vector<sd::string>. This class has a few methods to retrieve these
strings to be displayed on the screen.
void ResetRead( bool Reverse,...
|
by: ford_desperado |
last post by:
Why isn't ALLOW REVERSE SCANS the default?
Why do we have to
- drop PK
- create an index
- recreate PK
What are the advantages of indexes that do not allow reverse scans?
|
by: Fady Anwar |
last post by:
Hi while browsing the net i noticed that there is sites publishing some
software that claim that it can decompile .net applications i didn't bleave
it in fact but after trying it i was surprised...
|
by: mike7411 |
last post by:
Is there any easy way to reverse the order of the bits in a byte in
C++?
(i.e. 00000001 becomes 10000000)
|
by: rick |
last post by:
Why can't Python have a reverse() function/method like Ruby?
Python:
x = 'a_string'
# Reverse the string
print x
Ruby:
x = 'a_string'
# Reverse the string
|
by: rajash |
last post by:
Thanks for the additional comments.
Here is a solution to an exercise I had problems with. I still don't
think it's really what's wanted as it uses a "state variable" n - but
I can't see how to...
|
by: sunnyluthra1 |
last post by:
Hi,
I was creating an Application in MS Access for Geocoding a particular Address from Google to get the Lat & Long.
I successfully able to did that.
Here is the code:...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |