The way I have achieved this (if in fact it's what you're looking for) is to the put the following at the start of your .prg:
#DEFINE PrintFromPreview .F.
LOCAL loPreviewContainer AS FORM, ;
loReportListener AS REPORTLISTENER, ;
loExHandler AS ExtensionHandler OF SYS(16)
loPreviewContainer...
Olaf
I tried that in the forms INIT by adding:
GO top
thisform.Refresh
I still get the same result.
With regards to posting this question in another forum, yes that it is right. But having done some research trying to find a sollution, it appears to me that the best place to get answers is...
Ok Mike, with your suggestion this is what I have done:
Created a "test" table with the appropriate fields and added some times (08:00, 08:15 in 15 minutes increments to 09:00), five records in all
I used the following code:
CREATE CURSOR csrSlots (TimeSlot C(32))
SELECT MyTable && this is...
MikeLewis:
The help file gives an example for create cursor as:
CREATE CURSOR employee ;
(EmpID N(5), Name Character(20), Address C(30), City C(30), ;....etc
Is the same principle as:
SELECT * FROM MYDBF WHERE FIELDNAME=condition INTO CURSOR mytable
I still dont have an understanding of how...
Hello MikeLewis
Ok, sounds like what I could be looking for. I'll check the help file.
Just one thing though, would that display the fields vertically in the grid as my original post?
I will have a look at this (thank you)
I am a Visual FoxPro Version 9 user and I'm trying to create an appointment management system for our business. I have been using FoxPro for a while so I apologise if this question is easy for some (or if the answer is staring me in the face).
When you create a grid with fields from a table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.