Forum » Programiranje » [VB.net] find
[VB.net] find
korenje3 ::
Men se bo zmešal...
A kdo ve zakaj mi tole ne dela?
V glavnem x.Displaymember je enako "PictureBox_Person"
error je pa (zadnja linija):
System.NullReferenceException: 'Object reference not set to an instance of an object.'
imgcontainer was Nothing.
A kdo ve zakaj mi tole ne dela?
MsgBox(OriginalImage(0).Displaymember) Dim imgcontainer As ObjectList = OriginalImage.Find(Function(x) MsgBox("a: " & x.Displaymember & " " & "PictureBox_Person") If x.Displaymember = "PictureBox_Person" Then Return True Return False End Function) MsgBox(imgcontainer.Displaymember)
V glavnem x.Displaymember je enako "PictureBox_Person"
error je pa (zadnja linija):
System.NullReferenceException: 'Object reference not set to an instance of an object.'
imgcontainer was Nothing.
i9-12900k; 32GB DDR5-6000 CL36; Nvidia RTX 3080 ti;
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W
- spremenil: korenje3 ()
korenje3 ::
Ah ok našel... problem je bil v veliki črki ...
Dim imgcontainer As ObjectList = OriginalImage.Find(Function(x) x.Displaymember.Equals("PictureBox_Person"))
i9-12900k; 32GB DDR5-6000 CL36; Nvidia RTX 3080 ti;
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W
Zgodovina sprememb…
- spremenil: korenje3 ()
korenje3 ::
ne, je že ok. taki so comparatorji pri vb.net.
i9-12900k; 32GB DDR5-6000 CL36; Nvidia RTX 3080 ti;
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Visual Basic - matrike z datagridviewOddelek: Programiranje | 1253 (925) | blay44 |
» | vb.net: dynamic textboxOddelek: Programiranje | 1186 (1076) | saule |
» | [Excel]Kako izvleči vrednost?Oddelek: Programiranje | 3792 (3515) | Mobidick |
» | .vbs & .batOddelek: Programiranje | 1035 (955) | darkolord |
» | [VB] Komunikacija s serijskimi napravamiOddelek: Programiranje | 2312 (1586) | mNeRo |