Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UDF's second rate citizen in Rushmore ?
Message
From
09/09/2006 16:53:25
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
09/09/2006 15:35:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01151219
Message ID:
01152571
Views:
39
>The second is even less related to SQL but more to my personal style of coding and xBase/vfp behaviour: in xBase the table field to be changed can be coded as a name expression
>replace all ;
>     (loFldVar.Plz) with "60435";
>   , (loFldvar.Street) with "Koselstrasse 18A";
>   in (lcmyTable)
>
>as well as Macroexpansion
>
>replace all &lcPlz with "60435", &lcStreet with "Koselstrasse 18A"
>
>whereas the update - SQL works only as Macroexpansion:
>
>Update (lcmyTable) ;
>   Set &lcPlz    = "60435";
>     , &lcStreet = "Koselstrasse 18A"
>
>Probably I should switch over to building the whole SQL command either in code or via Textmerge, but some habits are "just there". This often comes up when reformulating some fieldmapping code from xBase-code to SQL: espeially when the xBase already uses objects via for code clarity it nags me hard enough to test again<g>. But OTOH name expression works with "store" only and not the typical "myTarget = mySource"...

I'd change to using TEXT ENDTEXT. You know 15 or 20 macro expansions is slower than 1.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform