Grasshopper

algorithmic modeling for Rhino

Hi, all.

 

I've just realised using 'x.Count()' is working at my computer (Windows 7).

 

but, when I open the defintion at other computer (Windows XP),

 

it isn't working.....and, this makes sense.

 

I just wonder why it is working at my computer?

 

Is there any kind of auto fixing code at Windows 7?

 

Thanks!

Views: 183

Replies to This Discussion

Hi YJ,

 

there is no autofixing. Is it the same versions of Grasshopper? The same version of .NET?

 

Count is most likely a Property and as such should not have brackets. VB is fairly forgiving in that it will allow you to put brackets there anyway, C# will not. But to my knowledge this behaviour is consistent across all .NET versions and all Windows versions.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service