Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant pass control as argument if its a control array #1231

Closed
dmrvb opened this issue Oct 7, 2022 · 1 comment
Closed

Cant pass control as argument if its a control array #1231

dmrvb opened this issue Oct 7, 2022 · 1 comment

Comments

@dmrvb
Copy link

dmrvb commented Oct 7, 2022

Implementing control arrays is exciting stuff and another big step forward, The list of errors from my big app is rapidly reducing. Will it compile for Christmas!
a little bug:.......
.
I have a function that takes a textbox as an argument.
This does not work if I pass a textbox that is in a control array

Function Tvalue(tx as textbox) as long
..............
end function

xxx = Tvalue(mytextbox(1))

gives errors:
This property is read only
Unable to take a reference to a withevents array element pass as byval instead.

Desktop (please complete the following information):

  • OS: [ Windows 11]
  • twinBASIC compiler version..... the latest one that almost supports control arrays.

Additional context
Add any other context about the problem here.

@WaynePhillipsEA
Copy link
Collaborator

Fixed in BETA 143, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants