I know how to declare a variable in a method in squeak, but how do I make one that I can use in a different method, like the loginName and projectName variable?
Offline
Declare them in the class. Just click on the class (for example ScratchSpriteMorph) and in the bottom pane you'll find class and instance variables. Add it to the instance for something each instance has, or to class for something that will occur only once (such as a database of strings or pictures, like the ScratchSkin or fonts).
You can only access instance variables from the class. To access class variables, however, you can use <className> <variableName>.
To make it simpler if you know other languages, instance vars are normal ones in an object, and class vars are shared/global variables.
Offline
So how do I make it so people can login with an account online, and then login to gopher with the account? Bye the way, how did u remove the created by weebly footer. Can you give me the inscructions?
Offline
WindowsExplorer wrote:
So how do I make it so people can login with an account online, and then login to gopher with the account? Bye the way, how did u remove the created by weebly footer. Can you give me the inscructions?
I don't understand, sorry. We're talking about Squeak here right?
And I told you, I was "experimenting" with CSS's 'visibility' tag.
Offline
WindowsExplorer wrote:
how did you do that though?
did it not occur to you that it might be 'visibility: none' ?
or was it hidden... meh.
Last edited by LS97 (2011-08-16 15:21:04)
Offline
WindowsExplorer wrote:
No, its that I don't know where to find it?
Oh, right! Just go to edit HTML/CSS of page. In design tab.
Last edited by LS97 (2011-08-16 15:30:17)
Offline
WindowsExplorer wrote:
done taht, but which line is it on?
The line that contains weeblyfooter
Offline
WindowsExplorer wrote:
All I can see is:
http://www.jotform.com/uploads/penguin1 … 08/gp3.jpg
Anywhere! Just after the margin tag will be fine. Add a line return, and add
visibility: hidden;
to the code before the bracket.
Offline