Grasshopper

generative modeling for Rhino

  • Blog Posts
  • Discussions (4)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

mette thomsen's Discussions

printing a list
5 Replies

hi - i am very new to grasshopper but somehow got into vb - i need to1) define a string2) add dynamically to the string from a for loop3) print the stringi think it goes something like this:Dim…Continue

Started this discussion. Last reply by mette thomsen Nov 27, 2009.

 

mette thomsen's Page

Latest Activity

mette thomsen replied to mette thomsen's discussion printing a list
"hi Suryansh thanks so much - the clearing of the lists made all the difference! best Mette"
Nov 27, 2009
Suryansh Chandra replied to mette thomsen's discussion printing a list
"Your code is very buggy... I hope this helps: Dim knitList as New List(Of Int32) For j as int32 = 0 To 263 knitList.add(0) 'first fill your list with all 0s Next For i as int32 = 0 To inputList.Count-1 'i is declared right here,…"
Nov 27, 2009
mette thomsen replied to mette thomsen's discussion printing a list
"ohh sorry a new problem arised - can ask again? i have a list of 9 values that i want to position in a string as a boolean true or false the entire length of the string is 264 the 9 values are positions where the number should be 1 (true) i think…"
Nov 27, 2009
mette thomsen replied to mette thomsen's discussion printing a list
"thank you!!! this was exactly what i needed!"
Nov 27, 2009
Suryansh Chandra replied to mette thomsen's discussion printing a list
"Use this: Dim mystring As String myString = "" For i As int32 = 0 To 9 mystring = mystring & i & "," print(mystring) Next"
Nov 27, 2009
mette thomsen posted a discussion

printing a list

hi - i am very new to grasshopper but somehow got into vb - i need to1) define a string2) add dynamically to the string from a for loop3) print the stringi think it goes something like this:Dim myString As StringDim i As Integerfor i = 0 to 9addString (", " (" & i & "))Print(myString)unfortunately my addString command doesnt exist - and this doesnt work - does anyone have an idea? i would like the list to be one long line separated by commasthanksmetteSee More
Nov 27, 2009
mette thomsen is now a member of Grasshopper
Nov 27, 2009

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service