.NET

Reply
Member
qualitysof
Posts: 4
Registered: ‎10-09-2007
Message 1 of 4 (72 Views)

RETURN DATA FROM FORM

72 Views, 3 Replies
10-09-2007 03:46 PM
Hi, someone have an example where show me a form and it returns the corresponding data in a list?, like this for example:

(15 "Carlos" 25.6 ("Ana" "Luis" "Pedro") "YES")
This list, I want to use it in a LISP application.

Thank you.
Member
qualitysof
Posts: 4
Registered: ‎10-09-2007
Message 2 of 4 (72 Views)

Re: RETURN DATA FROM FORM

10-09-2007 03:52 PM in reply to: qualitysof
I forgot to say, the form is in C#.NET.

Thank you.
Distinguished Contributor
Rudedog
Posts: 1,222
Registered: ‎10-14-2004
Message 3 of 4 (72 Views)

Re: RETURN DATA FROM FORM

10-10-2007 11:07 AM in reply to: qualitysof
http://discussion.autodesk.com/thread.jspa?threadID=615975
Distinguished Contributor
mohnston
Posts: 184
Registered: ‎09-22-2006
Message 4 of 4 (72 Views)

Re: RETURN DATA FROM FORM

10-12-2007 02:52 PM in reply to: qualitysof
To where is the data returned?
Internally to your .NET program? To the command line? To a text file?

If it is internal to your application then one way would be to:
1. Create a public variable (better yet a property) in your form class.
2. Create an instance of the form and display it.
3. Set the value of the public variable in your newly created form.
4. Capture the value of the variable before the form is closed.

pseudo-code:
frmMyForm ofrm = new frmMyForm();
ofrm.Show();
string myListForLISP = ofrm.myNewListVariable;
ofrm.Close();

end of pseudo-code:

Just make sure that the form doesn't "Close" until you close it from the calling procedure. You can "Hide" it until you get your string. Message was edited by: Mark Johnston
He went further out onto the limb.
CAD Programming Solutions
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.