Ask a Question related to ASP.NET General, Design and Development.
-
Kathy Burke #1
Run sub procedure -- "expression expected" ???
Hi again,
I'm trying to run a sub from within another:
Public Sub txtScan_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
txtScan.TextChanged
ProcessSN(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
ByVal is indicating "expression expected". What is the correct way to
run a sub from another?
Thanks.
Kathy
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Kathy Burke Guest
-
#39588 [NEW]: unpack("a*", "abc\0") does not work as expected
From: pprasse at actindo dot de Operating system: linux 2.6.10 PHP version: 4.4.4 PHP Bug Type: Scripting Engine problem Bug... -
"Acrobat PDF file format is having difficulties expected a non-negative integer"
Posted this in a wrong folder before. Opening many of my AI 10 docs in AI CS is getting me this error message: "Acrobat PDF file format is having... -
"Expected a dict object" with Acrobat Prof 6.0 = lock up
Trying to view a PDF from a website (www.skidmorednagenealogy.com)(PDF entitled "Family Genetics Project") Using Adobe Acrobat Professional 6.0... -
"wrong argument type nil (expected String)" from Dir.chdir
I'm running Ruby 1.6.8. Can anybody tell me why this line: Dir.chdir("/") results in the error "wrong argument type nil (expected String)"... -
#26122 [NEW]: Logical Operator "and" not functioning as expected
From: iam at nimajneb dot com Operating system: Mac OSX 10.2.6 PHP version: 4.3.2 PHP Bug Type: Math related Bug... -
KD #2
Run sub procedure -- "expression expected" ???
Hi Kathy!
The ProcessSN procedure seems to be an event handler of
some sort.
I would guess that it would be the solution for you to
move whatever code you have in that procedure to a
separate procedure. Then call the new procedure from both
the txtScan_TextChanged and ProcessN event handling
procedure.
Finally if you want to call another procedure you just
use the procedurename and send in the necessary datatypes.
Ex: "SomeProc(MyObject, strValue)" would be a correct way
to call "private SomeProc(ByVal SomeObj As Object, ByVal
SomeStr As String)"
correct way to>-----Original Message-----
>Hi again,
>
>I'm trying to run a sub from within another:
>
> Public Sub txtScan_TextChanged(ByVal sender As
> System.Object, ByVal e As System.EventArgs) Handles
> txtScan.TextChanged
>
> ProcessSN(ByVal sender As System.Object, ByVal e As
> System.EventArgs)
>
> End Sub
>
>ByVal is indicating "expression expected". What is the***>run a sub from another?
>
>Thanks.
>Kathy
>
>*** Sent via Developersdex [url]http://www.developersdex.com[/url]>Don't just participate in USENET...get rewarded for it!
>.
>KD Guest
-
Kathy Burke #3
Re: Run sub procedure -- "expression expected" ???
Thanks KD...that made it clearer. I'll go play with it.
thanks.
KathyBurke
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Kathy Burke Guest



Reply With Quote

