Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My wish to VFP 7.0
Message
De
15/03/2001 08:37:03
 
 
À
15/03/2001 08:29:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00484748
Message ID:
00485280
Vues:
9
>>>>I know this may sound like heresy to some, but I make extensive use of VFP's ability to execute &-macro defined command lines. This is an extremely powerful feature that sets VFP apart from any other language I know of.
>>>
>>>Just for debate's sake, could you give an example of one of these uses? I have yet to see a good one...
>>
>>I use this to build a SQL statement to work out the maximum column widths of data in a grid - as it's generic the SQL has to be built for each column in the grid depending on the data type.
>>
>>
>>Select max(_screen.Textwidth(column1))), ;
>>max(_screen.TextWidth(Transform(column2)), ;
>>
>>
>>etc.
>
>There's no macro expansion in your above code.

Yes I know. That was an example of the code that I build up into a string then & it.

The point is that as you don't know what will be in the grid's columns until it is in-situ on a form the code in the baseclass has to be generic.
Will Jones
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform