replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - delegate in Fotran.NET
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

delegate in Fotran.NET

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
m.burkhardt



Joined: 02 Sep 2008
Posts: 26

PostPosted: Wed Sep 17, 2008 11:54 am    Post subject: delegate in Fotran.NET Reply with quote

I have a problem to create a new delegate in Fortran .Net.
I do it c# like this
Code:

public delegate CallBackFunction(String str, Int16 n);


But how shold I do this in Fortran.NET?
I want to recommit a delegate within an ArrayList
like this
Code:

public delegate void CallBackFunction(String str, Int16 n);
public CallBackFunction MyCallBackFunction;

System.Collections.ArrayList al = new System.Collections.ArrayList(10);
al.Add((Object)MyCallBackFunction);

Salford.Fotran.MyRoutine(al);


In this case I want to use the delegate within my Fortran Subroutine MyRoutine.

So how shoult I create/use the delegate in Fotran. I think about something like that:
OBJECT("SYstem.delegate") :: mydelegate

mydelegate = al[0]

Greetings
Michael
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Andrew



Joined: 09 Sep 2004
Posts: 232
Location: Frankfurt, Germany

PostPosted: Tue Sep 23, 2008 11:23 am    Post subject: Reply with quote

I am afraid delegates are not supported within FTN95.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group