I'm not sure if im delluded but what I would like to do is create a method that will return the results of a query, so that i can reuse the connection code. As i understand it, a query returns an object but how do i pass that object back? I want to send the query into the method as a string argument, and have it return the results so tha...
Hello,
I want to write a script which adds in a string a backslash () everytime it finds a quotation marks or \r. It works but for " and ', but I don't know how to write it for \r. Could anyone help me? THANKS
<script type="text/javascript">
var test="Let\'s test if this \"works\" properly";
var escapedString = test.replace(/(['"])/g, ...
if(metres >= 0) return true;
else return false;
Can I do this with a single calculation? (ignoring the ternary operator)
...
All,
def a(p):
return p+1
def b(func, p):
return func(p)
b(a,10) # 11
here I do not want the result "11" actually, what I want is a function object with the parameter has been binded, let's name it c.
when I use c() or something alike, it will give me the result 11, possible?
Thanks!
...
What's best practice (in VB.Net):
Function GetSomething() as String
GetSomething = "Here's your string"
End Function
or
Function GetSomething() as String
Dim returnString as String = "Here's your string"
Return returnString
End Function
Obviously, neither of these implementations make any sense, but they're just meant t...
Hi,
I have more than one form on the same page:
I would like to know if there is any way I can submit the right form when the user press the "return keyboard key" ?
Thanks
...
Didn't think carefully about this post before submitting. Apologies.
...