Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any idea on creating a semi-monthly report for time reco
Message
From
08/09/2003 03:24:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/09/2003 03:08:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00826971
Message ID:
00826993
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform