So I understand a space between characters in script is equivalent to pressing Enter key in command line. But how do I get command line to recognize spaces in strings? For example,
f = "\0 White Reflective"
Call Rhino.Command("-visApplyMaterial " + f)
The ‘f’ string above is read as “\0” because of the space.
Function Quote(ByVal s)
Quote = Null
If (VarType(s) = vbString) Then
Quote = Chr(34) & CStr(s) & Chr(34)
End If
End Function
Dim s
s = Quote("Hello Rhino!")
Call Rhino.Print(s)
Hi Dale, this is funny… a function to put a string in quotes but in order to send the string to the function you have to put it in quotes…
What is the stuff you guys are smoking? I want that too!