|
|
libcats.org
Access 2007 Programming by Example with VBA, XML and ASPJulitta KorolIn particular, the chapter on Arrays. Most books skip this topic entirely or will have a page or 2. This has an entire chapter on it, with many "complete" examples, and the reason I bought the book. This may, in fact, be the definitive reference for arrays. But there is a remarkable error in that chapter, which describes how, for 2D arrays, the first index is for rows, the second for columns, such as Array(rowindex,columnindex). But I discovered, after a few hours of confusion, that it's the other way around! The problem is evident from the continuous "out of range" errors I was getting. I had to print.debug almost every cell in my array to confirm this. Also, the SELECT statement in the example that uses the GetRows Method to fill a 2D array (ironically not in the chapter on Arrays) should include the ORDER BY clause, so the data in the array will be in the same order as in the table from which it's importing. I was printing the table, for reference, but the array was, not obviously, sorted in a different order! For sure, the code in these books often doesn't work, but I'm sure it's hard to proof all the code, since typos in code just aren't as obvious as with regular prose.
Популярные книги за неделю:
Система упражнений по развитию способностей человека (Практическое пособие)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 818 Kb
Сотворение мира (3-х томник)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 817 Kb
Introduction to Functional Programming (Prentice Hall International Series in Computing Science)Автор: Richard Bird, Автор: Philip WadlerКатегория: Математика, Прикладная математика
Размер книги: 4.73 Mb
Только что пользователи скачали эти книги:
Механизмы управления эколого-экономическими системамиАвтор: Бурков В.Н., Автор: Новиков Д.А., Автор: Щепкин А.В.
Размер книги: 1.69 Mb
Karl Marx Frederick Engels: Collected Works : Engels : 1883-86 (Karl Marx, Frederick Engels: Collected Works Vol.47)Автор: Karl Marx, Автор: Friedrich Engels
Размер книги: 184.21 Mb
Life of George Bent written from his lettersАвтор: George Bent, Автор: George E. Hyde
Размер книги: 1.83 Mb
The Era of Transitional Justice: The Aftermath of the Truth and Reconciliation Commission in South Africa and BeyondАвтор: Paul Gready
Размер книги: 2.38 Mb
The Technique of the Love Affair by Originally by Doris Langley MooreАвтор: Norrie Epstein
Размер книги: 227 Kb
|
|
|