.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RETURN DATA FROM FORM

3 REPLIES 3
Reply
Message 1 of 4
qualitysof
244 Views, 3 Replies

RETURN DATA FROM FORM

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.
Johnny Tarmeño
qualitysof@gmail.com
51-991395220
Lima - Perú
3 REPLIES 3
Message 2 of 4
qualitysof
in reply to: qualitysof

I forgot to say, the form is in C#.NET.

Thank you.
Johnny Tarmeño
qualitysof@gmail.com
51-991395220
Lima - Perú
Message 3 of 4
Rudedog
in reply to: qualitysof

http://discussion.autodesk.com/thread.jspa?threadID=615975
Message 4 of 4
mohnston
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost