Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the equivalent of str(OEPDM,2,0,'0') in vfp
Message
From
23/04/2002 12:59:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648196
Message ID:
00648294
Views:
17
 SeekStr = CompCode          +;
                  SSN               +;
                  left(rtrim(NameL)+', '+rtrim(NameF),37)+;
                  str(OEPDY,4)      +;
                  str(OEPDM,2,0,'0')+;
                  str(OEPDD,2,0,'0')

 if .not.(;
                           CompCode          +;
                           SSN               +;
                           left(rtrim(NameL)+', '+rtrim(NameF),37)+;
                           str(OEPDY,4)      +;
                           str(OEPDM,2,0,'0')+;
                           str(OEPDD,2,0,'0')   = SeekStr)
                        
                           select 'QChange'
                           replace CouldntUpd with .T.
                           loop
endif           

This is what V.dbase help says about STR

STR(<expN> [, <length expN> [, <decimals expN> [, <expC>]]])
expC

The character to pad the beginning of the returned character string with when the length of the returned string is less than digits long. The default pad character is a space. If you want to specify a value for , you must also specify values for <
length expN> and . You can specify more than one character for , but STR( ) uses only the first one.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform