Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and report
Message
From
15/08/2004 15:29:23
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
14/08/2004 15:12:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00933367
Message ID:
00933430
Views:
20
Hi Mohammed,

>hi,
>thank yoy for reply.
>i need a sample for cursor with record that i want to print.
>this is my code but didn't work,to return back to mygrid.
>select 2
>locate for ALLTRIM(no)=upper(ALLtrim(THISFORM.TEXT1.VALUE))  .and. cod=1
>if found()
>set filter to ALLTRIM(no)=upper(ALLtrim(THISFORM.TEXT1.VALUE))  .and. cod=1
>report form rept2 preview
>endif
>thisform.grid2.setfocus
>regards
*select 2   && I consider this how MyTable
lsNo = upper(ALLtrim(THISFORM.TEXT1.VALUE))
Select * From MyTable ;
   Where ALLTRIM(no) = lsNo and Cod=1 ;
   Into Cursor MyCursor
if RecCount("MyCursor") > 0
   Report form rept2 preview
endif
select 2
Use In MyCursor
thisform.grid2.setfocus()
Is it that you need?
Erick
Força Sempre!
Strength Always!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform