Working through the introduction to programming.
On page 66
Did this:
Navigate to the FillFontListBox method and enter this into the Parameters field:
searchString As String
Page 67 read this:
Every parameter needs to have a name and a data type, just like a variable. In fact, you can think of a parameter as a variable that can be used inside the method. If necessary, toggle the disclosure triangle next to the line that says, Sub FillFontListBox at the top.
There is no Sub FillFontListBox at the top. The only thing that has a disclosure triangle is Method Name FillFontListBox
Without setting whatever this is, if I run the program, I get "Not enough arguments: missing String value for parameter “searchString” FillFontListBox
Method and sub mean the same thing (a method is a subroutine), so “Method Name FillFontListBox” is what you are looking for. You need to enter searchString As String as a parameter for that method.
OK. So I just needed to read down further to see that error was expected, but I still have no idea what the book is talking about with a disclosure triangle next to the line that says, “Sub FillFontBox” at the top, since there is nothing like that there.
One more question arising from the book. In a Text Field what property allows the text to wrap within the box?. I don’t see one in the inspector and it isn’t explained in the pdf book that I could see.
TextEdit is the base class for both TextArea and TextField. TextEdit is an abstract class and it is not intended for instantiation. Use TextArea for multiline and styled controls and TextField for single line text fields.[/code]
Also: if you use Xojo 2019r2, beware of the Introduction to Programming with Xojo book: it works for the previous version.
At last, you have example projects with the download: that may help you.
Its modification date is May 31st, 2017. Things changed in two years.