文档介绍:Microsoft Dynamics
NAV 2009 Programming
Cookbook
Build better business applications with NAV
Over 110 simple but incredibly effective recipes for taking
control of Microsoft Dynamics NAV 2009
Matt Traxinger
[ I enterprise 88
I / \vl\ I I professional expertise distilled
PUBLISHING
BIRMINGHAM - MUMBAI
Microsoft Dynamics NAV 2009 Programming Cookbook
Build better business applications with NAV
Copyright © 2010 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, Packt Publishing, nor its dealers
or distributors will be held liable for any damages caused or alleged to be caused directly
or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2010
Production Reference: 141010
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-849680-94-3
Cover Image by Sandeep Babu (******@gmaii. com)
Table of Contents
Preface 1
Chapter 1: Strings, Dates, and Other Data Types 7
Introduction 7
Retrieving the system date and time 8
Retrieving the work date 10
Determining the day, month, and year from a given date 12
Converting a value to a formatted string 14
Creating an array 16
Creating an Option variable 19
Converting a string to another d