You are on page 1of 37

 





 

|

     .

      .

   .

 .

  .

 .

  .

    .

 .

      .

      ` .

Constants      ! .

    ! .

.

.

  !!.

 "   #  .

 .

.

 .

 .

.

   .

!  $  .

 .

! .

 þ .

Oariables  .

.

! .

 .

  .

 .

.

"%     .

 ! .

 " &  !.

 # '  .

  .

 .

!  $ .

&    .

.

 ! .

  .

  !.

$ .

  .

    .

.

    "" ( .

Yimensioned Arrays  $  .

.

 .

  .

  &( $  .

.

 .

.

  .

 !  ! .#  )|*+.

 !.

 ! .    )-|*+.

* ± .        )þ|*   ).|.

˜ nctions  ˜ nctionName )p p *  !  .

! .

   .

.

     .

   .

.

"   !    .

"  &.

! .

!      .

       .

! .

"  & .

! .

!  .

.

 .

! .

  .

)*" Ë .

tatements        .

.

 .

")K p  .

p p     K  p     .

"  !   ! "    .

.

." .

mabels  tatement mabels -   /  ! .

! .

  ! "    .

 !.

 ! .

   ( " ] .

 bro tines  .

  !$   ! .

   .

! .

  ! 0" &( ! .

 !.

 #  .

    (   .

.

   (  Go b "  .

.

   .

 .

!    (  Call " M .

 bro tines     (  .

 !! .

2!.

 .

 ! .

 .

 ! .

 .

!.

  .

  "  %  !  .

 (! .

2!.

.

    3.

"  ! .

2!.

.

  ( .

"  & ! .

   .

    &    .

 4.

 "& .

  1 ! .

( .

.

.

"  .

    (  " |1 .

 ecial Yatatage BAC  bro tines  5    4 !    YmognfoYmogWarnYmog˜atalYransformError     .

     YExec te  .

 .

   Call " || .

@ erators   .

 .

.

! .

 .

    .

 .

.

 "  y es of @ erators  .

   .

 .

  .

 .

 .

! .

#     .

(  Cats .

:  .

  .

(  Î     .

 .

  .

  .

 .

  f .

 .

 5   .

 .

    .

 .

 |` .

Arithmetic @ erators  &   .

   .

 .

  .

.

 ! #  %     .

.

 !  .

 " .

 .

 .

    6   7     7 . 2    2 -    -  . 3    .

       .

 .

.

.

    .

 .

 .

  .

"""8``  6 .

.

 .

.

1.

.

$ (.

  |þ .

Concatenating trings  &     .

 .

: .

Cats 0.

 .

  ! .

  .

.

 "  59:8&.

 ð   <= "<#<36 <#9#<" 4 ..

>8  ð .

 .

  8= "3 &.

." 4 .

>< ð   <& .

.

<#<`<-<`<#<þ<#<(  ("8  ð .

 .

  <& .

.

(þ(  ("8 |( .

Extracting  bstrings  .

 .

(  .

" ?@ .

 .

  !.

 #V Vp     &.

  .

" <   VVV !    .

" V     Vp.

 K  V     .

 .

" "#  "#  V V " |± .

elational @ erators @ erator elation Exam le / .

: /  9:% 6 .

A .

BC .

CB D/  9A%9CB% 5 .

C 5  9C% E .

B E.

.

  9B% 5 .

C: .

:C .

AB 5  .

/  9C:% E .

B: .

:B .

AC E.

.

  .

/ 9B:% |Ë .

f @ erators  ip p :f .

  hen  VV Else  VV  $K .

  !      .

 (    " VV !     !.

    .

% V  VV !     !.

.    !" |.

mogical @ erators 6.

.

  !     # & .

1 !+  .

.

 .

.

" .

 !+  .

 .

 .

.

.

 .

" & F5   .

.

 .

!"D      !"  And ) .

 / &*  @r ) .

 / !*  Not ) .

  * |] .

eserved Words     / E E E E  E & D! D  5 5 0 5 3 3  6 6  .

    &  '    "E |M .

ystem Oariables `1 .

ystem Oariables `| .

Assignment @ erators `` .

BAC ˜ nctions and tatements Com iler Yirectives   .

 .

  .

 .

  (.

  .

.

! .

   " o do this« Use this«   .

.

   ! .

 $Yefine     ! .

 $Undefine   !       $fYef $fNYef  D   .

.

.

 $ncl de `þ .

Com iler Yirectives-Exam le  $Yefine  K  ?  p.

D      .@   .  G' !  (   !!   G !  3  """ GD! ! 3  .

  .

 "  5 D! )<&.

! .

.

.

|:<#.

|<&<* GD! `( .

ob Control  '   .

.

   ! .

 ! 4.

.

    (  .

  .

 .

!.

 ! .

   ! .

  ! .

    .

.

   .

!   .

 ! .

$ !.

$ .

 " `± .

ob Control  o do this« Use this«   !   (  .

 YAttachob  .

.

! .

    YetParam (  .

    ! .

   ( Yetobmimit .

  /   .

 Y nob   ! .

   !   YWait˜orob  E ! .

    .

.

 YGetProjectnfo .

   E ! .

    .

 YGetobnfo   .

 .

.

   E ! .

    YGettagenfo   .

  .

 .

.

   E ! .

   0  YGetminknfo  .

  .

 .

.

  `Ë .

Program Control o do this« Use this«  .

 !Case  Begin Case   !   ! .

.

.

 Case ! (   !Case  End Case  .

.

 .

 0 !   .

.

  Call   .

.

  Go b   !      @n«Go b .

.

   .

!.

 .

 .

et rn .

.

   !  .

 !˜or«Next ˜or    !   !˜or«Next Next   `. .

Yata ˜ormatting o do this« Use this«   .

! .

  @conv   .

   conv   .

! .

  ˜mt   .

     ˜mtYP `] .

$  `M .

 .

þ1 .

 .

  þ| .

  þ` .

 .

H"6 Exam le þþ .

E  Exam le þ( .

D!H"& H" þ± .

E & Exam le Goo Exam le Go b þË .

  &    ( .

!  (#    !   .

 .

  .

/ .

.

 "  &  .

   Ymog˜atal .

 "  ! to .

Abort    !  .

.

 .

   "     Print "'   Ymognfo  (.

.     !  "     Exec te      "'  YExec te " þ.