VLAX.cls

VLAX.cls

Anonymous
Not applicable
456 Views
5 Replies
Message 1 of 6

VLAX.cls

Anonymous
Not applicable
I found Frank's webpage on developing hybrid applications. I tried it and
the first part, where you pass only one layer name back to Vlisp, worked
fine. I'm impressed with how fast you can develope dialog boxes. Here's the
problem. After I copied the VLAX.cls file and made the changes in VLisp and
VBA parts of the program, I can still only select (highlight) one layer in
the dialog box. When I click "OK" with the one layer selected, the program
returns to the VBA editor and I get the error message, "Run-time error 2000:
Member not found: funcall". This appears to be in the Setlispsymbol sub. I'm
fairly comfortable with VLisp, but don't know from nothin' about VBA. Can
somebody tell me where to start looking for the answer to this problem?

Thanks,
Mack
0 Likes
457 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
> This appears to be in the Setlispsymbol sub.

That was my fault. There was a report last week about a missing paren
in the in the code for SetLispSymbol. I hadn't had the chance to fix
it yet. After a quick look, it turned out to be an *extra* paren. I
just uploaded a fixed copy.

As for only being able to select one layer, check the listbox
properties and make sure that the MultiSelect property is set to
fmMultiSelectMulti.

--
"That's no ordinary rabbit."
http://www.acadx.com


"Mack" wrote in message
news:FA5F6F44659297857EED208E6A341200@in.WebX.maYIadrTaRb...
> I found Frank's webpage on developing hybrid applications.
0 Likes
Message 3 of 6

Anonymous
Not applicable
Looks like the reply I sent this morning never made it out of my
Inbox. Following up on a report I received concerning this problem
last week, I found an extra paren in VLAX.cls. I uploaded a fresh copy
this morning. See if that solves the problem.

As for the multiple selection, be sure to set the MultiSelect property
of your list box to fmMultiSelectMulti.

--
"That's no ordinary rabbit."
http://www.acadx.com


"Mack" wrote in message
news:FA5F6F44659297857EED208E6A341200@in.WebX.maYIadrTaRb...
> I found Frank's webpage on developing hybrid applications.
0 Likes
Message 4 of 6

Anonymous
Not applicable
I read over Franks article and all looks ok......but

Frank correct if I am wrong.....VLAX now creates SafeArrays...correct
if so then this code as posted on acadx.com will not work.
(if example:layer
(foreach layer example:layer
(command "-layer" "off" layer "")
)
)
Do a watch on the symbol and it is returned as a safearray.
I think you need to either parse through the EXAMPLE:LAYER symbol with
Lbound and Ubound or (vlax-safearray->list var) then convert the string to a
list.

-- -------------------------------------------------------------------------
Rob StarzPlogv 3.0 & 2000 (plot logging) for r14 & 2000***Enhancement Tools
for Arch. Desktop *****!!!! DormerX out in Sept
!!!!http://www.stardsign.com/main.htm
"Mack" wrote in message
news:FA5F6F44659297857EED208E6A341200@in.WebX.maYIadrTaRb...
> I found Frank's webpage on developing hybrid applications. I tried it and
> the first part, where you pass only one layer name back to Vlisp, worked
> fine. I'm impressed with how fast you can develope dialog boxes. Here's
the
> problem. After I copied the VLAX.cls file and made the changes in VLisp
and
> VBA parts of the program, I can still only select (highlight) one layer in
> the dialog box. When I click "OK" with the one layer selected, the program
> returns to the VBA editor and I get the error message, "Run-time error
2000:
> Member not found: funcall". This appears to be in the Setlispsymbol sub.
I'm
> fairly comfortable with VLisp, but don't know from nothin' about VBA. Can
> somebody tell me where to start looking for the answer to this problem?
>
> Thanks,
> Mack
>
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
I read over Franks article and all looks ok......but

Frank correct if I am wrong.....VLAX now creates SafeArrays...correct
if so then this code as posted on acadx.com will not work.
(if example:layer
(foreach layer example:layer
(command "-layer" "off" layer "")
)
)
Do a watch on the symbol and it is returned as a safearray.
I think you need to either parse through the EXAMPLE:LAYER symbol with
Lbound and Ubound or (vlax-safearray->list var) then convert the string to a
list.


--
-------------------------------------------------------------------------
Rob Starz
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
***Enhancement Tools for Arch. Desktop *****
!!!! DormerX out in Sept !!!!
http://www.stardsign.com/main.htm
"Mack" wrote in message
news:FA5F6F44659297857EED208E6A341200@in.WebX.maYIadrTaRb...
> I found Frank's webpage on developing hybrid applications. I tried it and
> the first part, where you pass only one layer name back to Vlisp, worked
> fine. I'm impressed with how fast you can develope dialog boxes. Here's
the
> problem. After I copied the VLAX.cls file and made the changes in VLisp
and
> VBA parts of the program, I can still only select (highlight) one layer in
> the dialog box. When I click "OK" with the one layer selected, the program
> returns to the VBA editor and I get the error message, "Run-time error
2000:
> Member not found: funcall". This appears to be in the Setlispsymbol sub.
I'm
> fairly comfortable with VLisp, but don't know from nothin' about VBA. Can
> somebody tell me where to start looking for the answer to this problem?
>
> Thanks,
> Mack
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
Rob Starz hit the nail on the head (see his posts above). I've
corrected VLAX to compensate. Let me know if that doesn't fix the
problem.

P.S. Isn't VBA form development sooooo much easier than DCL? 😉

--
"That's no ordinary rabbit."
http://www.acadx.com


"Mack" wrote in message
news:FA5F6F44659297857EED208E6A341200@in.WebX.maYIadrTaRb...
> I found Frank's webpage on developing hybrid applications. I tried
it and
> the first part, where you pass only one layer name back to Vlisp,
worked
> fine. I'm impressed with how fast you can develope dialog boxes.
Here's the
> problem. After I copied the VLAX.cls file and made the changes in
VLisp and
> VBA parts of the program, I can still only select (highlight) one
layer in
> the dialog box. When I click "OK" with the one layer selected, the
program
> returns to the VBA editor and I get the error message, "Run-time
error 2000:
> Member not found: funcall". This appears to be in the Setlispsymbol
sub. I'm
> fairly comfortable with VLisp, but don't know from nothin' about
VBA. Can
> somebody tell me where to start looking for the answer to this
problem?
>
> Thanks,
> Mack
>
>
0 Likes