Why does this NOT give You cannot access the instance member error (XS9112)

This forum is meant for questions and discussions about the X# language and tools
Post Reply
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Why does this NOT give You cannot access the instance member error (XS9112)

Post by ic2 »

After I sent my latest X# solution to Kees he got 13 errors XS9112: You cannot access the instance member 'Assembly'

E.g. on this line:

Code: Select all

iNewRow:=max(Self:dataGridViewEmails:CurrentRow.Index-1,0)
The setting "Allow DOT for instance variable" is not set for me.

Why didn't I get this error? (using X# 2.14)

Dick
User avatar
wriedmann
Posts: 3754
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Why does this NOT give You cannot access the instance member error (XS9112)

Post by wriedmann »

Hi Dick,
please see below:
05-05-2023_16-54-55.png
05-05-2023_16-54-55.png (80.63 KiB) Viewed 382 times
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
ic2
Posts: 1858
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Why does this NOT give You cannot access the instance member error (XS9112)

Post by ic2 »

Hello Wolfgang,

Good catch.

I am using 2.14 because Winforms could get lost in 2.15. Probably in combination with some specific installed VS plugins but I didn't want to takte the risk.

Dick
Post Reply