Hello again. In creating this new vfp9 form from a 2.6 program, I have several buttons that are supposed to browse particular data. Keeping it simple: I have command button that is supposed to pull up the main data. In the click event I have - Do browcase.prg. What is happening is that its filling my screen with a huge blank browse table, nothing in it, but displaying a record number at the bottom.
Now before I open my main form, I run this browcase.prg and to select a record and it works fine. Here is the code of browcase program:
PROCEDURE browcase
SELECT CASE
PRIVATE lnrecno, lndefid
lnrecno = RECNO()
lndefid = case.def_id
ON KEY LABEL rightmouse KEYBOARD(CHR(23))
BROWSE COLOR SCHEME 10 NOEDIT NODELETE NOAPPEND;
FONT 'TIMES NEW ROMAN', 8 STYLE 'N' TITLE;
'<Ctrl-W> Select <Ctrl-Enter> Case Summary <Ctrl-P> Print Arrest Record <ESC> Return' ;
FIELDS defendant :30, CASE, warrant, gj_number :H='GJ #', gj_pdate :H='GJ Date', agency_no, agency : H= 'Agency', dc_no :H='DC #', mc_chrgs.charge, ;
victim.vic_name :H='Victim',;
attor_id :H='ADA ', cc_no :H='CC #',;
defendant.race, defendant.sex, defendant.dob :H='DOB',;
warrant, warr_date :H='Warrant Date', defendant.sid :H='SID'
IF LASTKEY() = 27
GO lnrecno
ENDIF
ON KEY LABEL ctrl+enter
ON KEY LABEL ctrl+p
RETURN
Why does the button not run to run this program correctly at the click event?
Thanks in advance! Trying to get this in some kind of working order by tommorrow
Now before I open my main form, I run this browcase.prg and to select a record and it works fine. Here is the code of browcase program:
PROCEDURE browcase
SELECT CASE
PRIVATE lnrecno, lndefid
lnrecno = RECNO()
lndefid = case.def_id
ON KEY LABEL rightmouse KEYBOARD(CHR(23))
BROWSE COLOR SCHEME 10 NOEDIT NODELETE NOAPPEND;
FONT 'TIMES NEW ROMAN', 8 STYLE 'N' TITLE;
'<Ctrl-W> Select <Ctrl-Enter> Case Summary <Ctrl-P> Print Arrest Record <ESC> Return' ;
FIELDS defendant :30, CASE, warrant, gj_number :H='GJ #', gj_pdate :H='GJ Date', agency_no, agency : H= 'Agency', dc_no :H='DC #', mc_chrgs.charge, ;
victim.vic_name :H='Victim',;
attor_id :H='ADA ', cc_no :H='CC #',;
defendant.race, defendant.sex, defendant.dob :H='DOB',;
warrant, warr_date :H='Warrant Date', defendant.sid :H='SID'
IF LASTKEY() = 27
GO lnrecno
ENDIF
ON KEY LABEL ctrl+enter
ON KEY LABEL ctrl+p
RETURN
Why does the button not run to run this program correctly at the click event?
Thanks in advance! Trying to get this in some kind of working order by tommorrow