Re: circular references
From: AlexS (salexru2000NO_at_SPAMsympaticoPLEASE.ca)
Date: 07/08/04
- Next message: Charles Law: "Re: How to Prevent the Click Event when a Button is Clicked"
- Previous message: The Grim Reaper: "Re: VB Learning Help"
- In reply to: Stephen Robertson: "circular references"
- Next in thread: Stephen Robertson: "Re: circular references"
- Reply: Stephen Robertson: "Re: circular references"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 8 Jul 2004 19:48:08 -0400
If you can't compile this project with Visual Studio - try SharpDevelop.
However, this is not the point of my remark.
Usually circular references - or perceived as circular - are indicating
design problems. You can consider for example passing frmsearchresult
selection (or which frmperson to new) back to original frmperson or its
parent, which will manage new instance. Maybe person who mentioned events
meant something like this. You can use events or direct properties for this.
And several other techniques. In case of events, you can invoke event
handler when selection changes in frmsearchresult. And handler will be set
by main controller of your application.
Would you care to explain more what is the problem? I might miss something.
HTH
Alex
"Stephen Robertson" <eastforkfarms@yahoo.com> wrote in message
news:c362e131.0407081455.aa0307@posting.google.com...
> We are currently in a dead end with a circular reference issue using
> vb.net, and are hoping someone might help us resolve it.
>
> Idea...
>
> We have frmmain calling frmperson (dim f as new frmperson) in search
> (no record) mode. When the search is executed, frmperson calls
> frmsearchresult (dim f as new frmsearchresult) which is a listing of
> persons. From frmsearchresults, frmperson is called (dim f as new
> frmperson) with the resulting record.
>
> Problem...
>
> We will get a circular reference between frmperson and
> frmsearchresult.
>
> I have read the mention of events as a workaround. Could someone
> please elaborate on how the use of events could possibly help us in
> our situation?
>
> Or, is there another way?
>
> Thank you very much,
>
> Dawn Robertson
- Next message: Charles Law: "Re: How to Prevent the Click Event when a Button is Clicked"
- Previous message: The Grim Reaper: "Re: VB Learning Help"
- In reply to: Stephen Robertson: "circular references"
- Next in thread: Stephen Robertson: "Re: circular references"
- Reply: Stephen Robertson: "Re: circular references"
- Messages sorted by: [ date ] [ thread ]