Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integer variable in a string.
Message
De
30/08/2001 15:31:49
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
30/08/2001 15:09:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00551047
Message ID:
00551061
Vues:
19
James-

>str(strCountSeq) without any luck. any suggestions. thanks

What was wrong when you tried STR()? What did STR(strCountSeq) return? It's the equivelent of TRANSFORM (and faster, if you're doing this in a loop).

The following worked fine for me:
PUBLIC strSeq AS STRING, ;
  intCount AS INTEGER, ;
  strCountSeq AS STRING

intCount = 0

strCountSeq = LTRIM( STR( intCount ) )

strSeq = SUBSTR(DTOC(DATE()),1,2) + SUBSTR(DTOC(DATE()),4,2) + SUBSTR(TIME(1),10,2) + strCountSeq

?strSeq && 0830600 for example.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform