Jump to content

convert Result buffer to arrays


Recommended Posts

Posted

Is there any way to convert Result buffer to arrays?

I need to convert one list to equivalent array when it is supplying from command prompt along with user defined lisp function as argument.

For eg :

-----code----------starts--

_

Public Function VBLf_MFL(ByVal rbfArgs As ResultBuffer) As ResultBuffer

MsgBox(rbfArgs.ToString())

End Function

-----code---------- Ends –

When I am providing.. (GetD (list "kk" "pp" 1 )) to command prompt.. I will get the following message .

I want to convert it into array… is there any way instead of writing a string splitting function..(prefer VB.Net code..)

Posted

Have you tried something like

 

_

Public Function VBLf_MFL(ByVal rbfArgs As ResultBuffer) As ResultBuffer

 

Dim tv() As TypedValue = rbfArgs.AsArray

 

For i = 0 To tv.Length - 1

MsgBox(tv(i).ToString())

Next

 

End Function

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...