Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert DEFINE WINDOW statements to VFP Forms
Message
De
04/12/2003 12:38:41
 
 
À
04/12/2003 12:32:43
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00855826
Message ID:
00855969
Vues:
15
Hi Bob,

I already use the visual converter to convert our FPD26 screens to forms and then cut/paste the controls and fix them on a new form based on my base class. What I am referring to here is DEFINE WINDOW statements in prgs that include @..say and @...get statements on them for data collection. All of those must be changed to create a form also and it is much more time consuming working on those...

Remember:
DEFINE WINDOW editwin FROM 2,6 TO 20+glRow,73 TITLE "LOSS NOTICE" FLOAT SHADOW FONT (glFontName), (glFontSize)
ACTIVATE WINDOW editwin

@  1, 2 SAY com_name(mpo_insco(pol_number))
@  1,34 SAY "Policy #:"
@  3, 2 SAY "CSR:"
@  3,12 SAY "Trans-Date:"
@  3,36 SAY "Date of Claim:"
@  5, 2 SAY "Date sent...:"
@  5,34 SAY "How notice was sent:"
@  6, 2 SAY "Claim#......:"
@  7, 2 SAY "Adjuster....:"
*...
@  3,51 GET m.lossdate VALID vEpoch(@m.lossdate)
@  5,16 GET m.datesent VALID vEpoch(@m.datesent)
@  5,55 GET m.howsent
@  6,16 GET m.claimnum
@  7,16 GET m.adjuster
@  8,16 GET m.datepaid VALID vEpoch(@m.datepaid)
@  8,48 GET m.amtpaid PICTURE "@z 99999.99"
@  9,16 GET m.pmtfor
*...
READ CYCLE
Examples like the above (hundreds of them in our code) must be switched to forms...there are no .scx files for those because they were hand coded...

>>Has anyone determined the easiest/fastest way to convert DEFINE WINDOWs in prgs that contain @...SAYs and @...GETs in FPD26 into VFP forms?
>>
>>TIA,
>>
>>Tracy
>
>Have you tried the VFP converter? A 'visual' conversion will convert the SCX to a form. The problem, it will use all base classes.
>
>BOb
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform