READ CYCLE VFP7 vs VFP8

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Guy BONEMME (guy.bonemme_nospam__at_skynet.be)
Date: 06/08/04


Date: Tue, 8 Jun 2004 13:52:41 +0200

Hi,

We use a an ancient routine messagebox() for many years
in several programs vfp6 and vfp7 that we found easy and
comfortable for maintenance.

Testing the same program with vfp8, I experience problem
at the READ CYCLE instruction.

The message Window is displayed correctly
with button colors etc. untill the READ CYCLE is reached.
Then the content inside the window disapear,
Moving the mouse cursor where a button exist, display this button,
and disapear again whent the curcor is moved out.
The text label inside the windows doesn't appear anymore.
One click on one of the button and the procedure continue
as normal.

Here below is the code concerned:
Does any one know what is the difference between vfp7 and 8
on this instruction/?

IF NOT EMPTY(cvalfunc) AND TYPE([CVALFUNC]) == [C]
  READ CYCLE ;
   WHEN chk_menu() ;
   MODAL OBJECT ndefault ;
   VALID EVAL(cvalfunc+IIF(![()] $ cvalfunc, [()], []))
 ELSE
  READ CYCLE ;
   WHEN chk_menu() ;
   MODAL OBJECT ndefault
 ENDIF
 IF BETWEEN(nchoice, 1, nbuttons)
  retval = IIF(TYPE('nnumeric') == [N] AND nnumeric == 1, ;
   nchoice, aprompt[nchoice])
 ENDIF
 RELEASE WINDOW wmsgbox
ENDIF

Thanks
Guy Bonemme



Relevant Pages

  • Re: READ CYCLE VFP7 vs VFP8
    ... Guy BONEMME wrote: ... > We use a an ancient routine messagebox() for many years ... > with button colors etc. untill the READ CYCLE is reached. ... > Then the content inside the window disapear, ...
    (microsoft.public.fox.helpwanted)
  • Re: C0000005 error
    ... I used to get such errors frequently with VFP7, ... REPORT FORM PREVIEW WINDOW ... I use a local HP Laser Jet 4L(generic Windows printer driver) not ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Phase of FFT compared to phase of Sinusoid
    ... periodic data. ... We would plot 12 points of a half cycle of the output waveform for a half cycle of input using the tube's characteristic curves and mirror, them for the other half cycle, then manually do a 24-point DFT. ... There was no window, only 12 plotted points. ...
    (comp.dsp)
  • Re: TWM: cycle to next/previous window.
    ... > I use TWM and thoroughly enjoy the minimalism of it! ... > cycle to next/previous window. ... mouse on a window border lets you drag and resize. ...
    (comp.unix.shell)
  • Re: my headache wont go away
    ... Which reminds me ... >> that I should try the self-cleaning cycle on mine when the weather gets ... > bathroom type vent fan in the ceiling near the oven, ... window was no longer of much use. ...
    (rec.food.cooking)