Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO .. SDF integer padding bug?
Message
 
À
19/08/2005 16:00:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01042355
Message ID:
01042409
Vues:
18
>>And why i need to doubts in VFP when I write:
>>
STR(15,9)
>>i know the result. And what happen when the result is
>>
'     15  '
>> 123456789
>>and I don't know this.
>
>
>CLEAR
>_screen.resettodefault("FontName")
>? "|"+STR(15,9)+"|"
>? "|"+"123456789"+"|"
>_screen.FontName = "Courier New"
>
>? "|"+STR(15,9)+"|"
>? "|"+"123456789"+"|"
>
>when the alignment checks him it always needs to keep in mind the font.

O'key Fabio,
I want to said that when i write
STR(15,9)
I know that the spaces are on the left and the LEN() is 9
and not on the right.

But the question is:
Is this bug
Try this:
CLOSE DATABASES ALL
CREATE TABLE c:\temp\junk (fname c(15), lname c(25), int1 I)
INSERT INTO c:\temp\junk VALUES ('JOHN','SMITH',1)
INSERT INTO c:\temp\junk VALUES ('JANE','SMITH',2)
INSERT INTO c:\temp\junk VALUES ('STEVE','SMITH',3)
INSERT INTO c:\temp\junk VALUES ('SAMANTHA','SMITH',4)
COPY FIELDS INT1,FNAME, LNAME TO C:\TEMP\JUNK SDF
MODIFY FILE C:\TEMP\JUNK

CLOSE DATABASES ALL
CREATE TABLE c:\temp\junk (int1 I, fname c(15), lname c(25))
INSERT INTO c:\temp\junk VALUES (1,'JOHN','SMITH')
INSERT INTO c:\temp\junk VALUES (2,'JANE','SMITH')
INSERT INTO c:\temp\junk VALUES (3,'STEVE','SMITH')
INSERT INTO c:\temp\junk VALUES (4,'SAMANTHA','SMITH')
COPY FIELDS INT1,FNAME, LNAME TO C:\TEMP\JUNK SDF
MODIFY FILE C:\TEMP\JUNK
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform