473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

One Subroutine after another

MRW
Hello!

I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.

I'm noticing however, that it looks like the second subroutine is being
called before the first is done.

Does anybody have any experience with this?

Thanks for any help!

Aug 31 '06 #1
5 971
Show us your code on how your calling the two routines

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hello!

I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.

I'm noticing however, that it looks like the second subroutine is being
called before the first is done.

Does anybody have any experience with this?

Thanks for any help!

Aug 31 '06 #2
MRW
Very simply:

subRoutine1()
subRoutine2()

David Wier wrote:
Show us your code on how your calling the two routines

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hello!

I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.

I'm noticing however, that it looks like the second subroutine is being
called before the first is done.

Does anybody have any experience with this?

Thanks for any help!
Aug 31 '06 #3
No, I don't think that can happen. There must be something else going on
that is making you think that this is the case.

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
Very simply:

subRoutine1()
subRoutine2()

David Wier wrote:
>Show us your code on how your calling the two routines

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegr oups.com...
Hello!

I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.

I'm noticing however, that it looks like the second subroutine is being
called before the first is done.

Does anybody have any experience with this?

Thanks for any help!

Aug 31 '06 #4
MRW
Okay, thanks... I wasn't too sure... I've programmed in Flash before
where things like that can happen if your not careful. Wasn't sure if
there was something similar in NET.

Thanks again!

Marina Levit [MVP] wrote:
No, I don't think that can happen. There must be something else going on
that is making you think that this is the case.

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
Very simply:

subRoutine1()
subRoutine2()

David Wier wrote:
Show us your code on how your calling the two routines

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hello!

I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.

I'm noticing however, that it looks like the second subroutine is being
called before the first is done.

Does anybody have any experience with this?

Thanks for any help!
Aug 31 '06 #5
Well it can happen, but it could probably only happen if routine 1 started
something asynchronous - an asynchronous (non-blocking) call to web service
perhaps or making use of an IHttpAsyncHandler that altered session on
completion. if it didn't wait for a return before exciting the method a
session enabled webservice method or an ihttpasync EndProcessRequest could
alter session values while the worker thread went on to execute routine 2!
However, you would have had to code this in and its not for the faint
hearted.

If your not coding that complex an application then its unlikely to be
executing routine2 before 1 completes.
-
Regards

John Timney (MVP)

--
--
Regards

John Timney (MVP)
"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Okay, thanks... I wasn't too sure... I've programmed in Flash before
where things like that can happen if your not careful. Wasn't sure if
there was something similar in NET.

Thanks again!

Marina Levit [MVP] wrote:
>No, I don't think that can happen. There must be something else going on
that is making you think that this is the case.

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@74g2000cwt.googlegr oups.com...
Very simply:

subRoutine1()
subRoutine2()

David Wier wrote:
Show us your code on how your calling the two routines

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"MRW" <mw*****@yahoo.comwrote in message
news:11**********************@i3g2000cwc.googlegr oups.com...
Hello!

I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.

I'm noticing however, that it looks like the second subroutine is
being
called before the first is done.

Does anybody have any experience with this?

Thanks for any help!


Aug 31 '06 #6

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

Similar topics

2
by: Chris | last post by:
Hi, Is it possible to start a subroutine in for example (frmMainForm) from another form (frmSubForm)? I want to start a subroutine called cmdButton1_Click. I wrote (in frmSubForm): ...
4
by: Dursun | last post by:
I need to call a subroutine in FormA from within FormB. Let FormA be an MDIForm and let FormB be its MDIChild form. So, the FormB.MDIParent property will return an object refernce to the FormA...
2
by: Richard | last post by:
Hi. How can I pass a subroutine as a parameter to another subroutine? How would the formal parameter list needs to be declared in order to receive a rubroutine (address)? Thanks in advance, ...
7
by: Richard Grant | last post by:
Hi. In c/C++ i can pass the address of a subroutine to another subroutine as an actual parameter How do I do that in VB .NET What should be the syntax for a parameter to receive the address of a...
2
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! ...
4
by: otterbyte | last post by:
Hi, I have a bit of code which is confusing me to no end. Here are the basics: 1) The class module is being used in the module of a form. 2) There is an instance of the object declared at the...
5
by: dancer | last post by:
Using ASP.net 1.1 and VB Is it possible to declare variables in their own subroutine? I had my DIM statements within a sub that worked just fine. I wanted to be able to use them in another...
3
shrek123
by: shrek123 | last post by:
How can I pass output of some perl subroutine to a subroutine? I have Subroutine1 and wanna pass the return value of this subroutine as an argument to another subroutine. I tried this; ...
1
by: pavanponnapalli | last post by:
hi , I have got a code as under : sub dbcall { my %hash; my $i=0; print "<<<<<<<@_>>>>>>> \n"; foreach(@_)
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.