Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Integer variable in a string.
Message
From
30/08/2001 15:31:49
 
 
To
30/08/2001 15:09:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00551047
Message ID:
00551061
Views:
18
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform