Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interleave strings
Message
 
 
À
22/04/2009 08:27:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01395869
Message ID:
01395928
Vues:
74
Agnes,

Look at the DeQoute example code on my website, it contains a VC++6 project and all the instructions on how to create a DLL with it that you can call from VFP. It would be blazingly fast because you can run the code with one pointer for the output buffer and N pointers for the number of strings. I'd switch based on the number of inputs
/* pseudo code */
case 1
   for ( i = 0, i < len( input1 ), i++ )
      {
      *output++ = *input1++;
      }

case 2
   for ( i = 0, i < len( input1 ), i++ )
      {
      *output++ = *input1++;
      *output++ = *input2++;
      }

case 4
   for ( i = 0, i < len( input1 ), i++ )
      {
      *output++ = *input1++;
      *output++ = *input2++;
      *output++ = *input3++;
      *output++ = *input4++;
      }
>My first idea. But my compiler (VC++6) doesn't like the code and did I mention that I have no knowledge about C? ::)
>
>It's just that the C puts the chars in its array style of handling and that would mean something like STUFF to implement it into the Fox. Since it is all appended this seems to tricky.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform