Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a limit on length of string to macro?
Message
De
31/05/2008 21:26:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01320797
Message ID:
01320800
Vues:
22
>Hi,
>
>I have come across an issue where when I try to macro expand a string (that contains INSERT command) and the string is over 612 characters I get error. If the string is less than 612, macro works.
>
>Is there a limit? And if there is, if there a way to get around it?
>
>Thank you in advance for any help.

The following quick test works:
x = "0"
FOR i = 1 TO 500
  x = x + " + 1"
next
? &x
String length is 2001.

I would say, check the syntax. Or some built-in limitation of the corresponding SQL command.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform