Jump to content

Array in Autolisp


alijahed

Recommended Posts

Hi All,

 

According to my experience about Basic, there was a way to create a database with Array. Is there any similar way in LISP?

I want to ask the user for some inputs and in the background save those information in my Array database and then use that database for my calculations and producing the result.

 

Cheers

 

Ali

Link to comment
Share on other sites

Generally speaking, the ARRAY equivalent in AutoLISP is LIST and for DICTIONARY have ASSOCIATED LIST.

 

Regards,

Link to comment
Share on other sites

I suppose the closest equivalent is the ActiveX Safearray, but the as Msasu says, the LIST is more natural and easier to manipulate.

Link to comment
Share on other sites

I suppose the closest equivalent is the ActiveX Safearray, but the as Msasu says, the LIST is more natural and easier to manipulate.

 

Thanks guys,

 

I have something to learn today.

 

Cheers

 

Ali

Link to comment
Share on other sites

Here are a few links that may aid in your learning:

 

List Manipulation:

http://ronleigh.info/autolisp/afude09.htm

http://www.theswamp.org/index.php?topic=31473.0

 

Safearray Manipulation:

http://www.theswamp.org/index.php?topic=31674.0

http://www.theswamp.org/index.php?topic=29248.0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...