|
|
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
Только что пользователи скачали эти книги:
Мировая экономика. Московский международный институтАвтор: Хмелев И.Б., Автор: Логвинова И.Л.Категория: Новые поступления
Размер книги: 9.27 Mb
Боевая машина пехоты БМП-1. Памятка экипажу по эксплуатацииАвтор:Категория: Военная техника
Размер книги: 2.34 Mb
Introduction to Probability TheoryАвтор: Paul G. Hoel, Автор: Sidney C. Port, Автор: Charles J. Stone
Размер книги: 2.86 Mb
Подготовка и анализ экономической информации: Методические указания к выполнению курсовой работыАвтор: Золотухин О.И.Категория: Экономика
Размер книги: 87 Kb
Winning the White House, 2008Автор: Kevin J. McMahon, Автор: David M. Rankin, Автор: Donald W. Beachler, Автор: John Kenneth White
Размер книги: 1.39 Mb
Proceedings of the 15th European Conference on Soil Mechanics and Geotechnical Engineering: Geotechnics of Hard Soils - Weak Rocks (Parts 1, 2 and 3)Автор: A. Anagnostopoulos, Автор: M. Pachakis, Автор: Ch. Tsatsanifos
Размер книги: 80.04 Mb
|
|
|