Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 vs 8 syntax
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
01449751
Message ID:
01449755
Vues:
38
>Hi All,
>
>When trying to compile/rebuild a prg in VFP 8 it fails with the syntax error message refering to the following line of code:
>
>UPDATE a ;
>SET a.utext5 = b.ProNumber, ;
> a.utext6 = CAST(b.ScheduledShipDate as char(30)) ;
>FROM (lcArrivalFilePath) a JOIN Results b ;
> ON a.pieceid = b.ConfigCharEight
>
>It does work fine in 9.0 ...
>Thank you,
>Daniel

In addition, CAST function was added in VFP9 too.

For VFP8 it looks like you may want to use traditional scan / endscan approach, e.g.
select Results
scan
   if seek(ConfigCharEight, m.lcArrivalFilePath, 'PieceID')
        replace uText5 with Results.ProNumber, ;
       utext6 with transform(Results.ScheduledShipDate) in (m.lcArrivalFilePath)
  endif
endscan
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform