Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any idea on creating a semi-monthly report for time reco
Message
De
08/09/2003 03:24:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/09/2003 03:08:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00826971
Message ID:
00826993
Vues:
26
>hi cetin,
>
>the usual report i create when i want to display all employee nos is this,
>
>0001
>0002
>0003
>0004
>0005
>
>
>now i want to create a report that will display the empnos in this format,
>
>0001 0002 0003 0004 0005
select distinct empno from myTable into array arrEmps
lnEmps = _Tally
if lnEmps <= 255 && Field limit
 local array arrStruc[lnEmps,4]
 arrStruc = 0
 for ix=1 to lnEmps
   arrStruc[ix,1] = 'F'+padl(ix,3,'0')
   arrStruc[ix,2] = 'I'
   arrStruc[ix,3] = 4
 endfor
 create cursor myEmps from array arrStruc
 dimension arrEmps[1,lnEmps]
 append from array arrEmps
 brow
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform