A strange effect:
In the program I have like:
cVar:=SPACE(50)
@ 1,0 DCGET cVar PICTURE "@S25 !"+REPLICATE("X",49)
because I want that first letter to be capitalized.
The problem arises when I enter the 6th character with the Alt key (polish diacritics are Alt-a, Alt-c, Alt-e, Alt-n, Alt-o and Alt-z). The character always displays as a capital letter. It does not depend on the length of the variable or the GET field. This is always the case when PICTURE is like "@Sn !". This always happens at the 6th character. What could be the reason?
Regards
Piotr
Problem with DCGET PICTURE "@Sn !"
-
- Posts: 481
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Problem with DCGET PICTURE "@Sn !"
What should "S25" do ?
Cant find "S" in the docs.
Cant find "S" in the docs.
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Problem with DCGET PICTURE "@Sn !"
Hi,
"@Sn" i a PICTURE function, horizontal scroll of entry field when the value is longer than <n>. <n> is an integer determining the width of the entry
Piotr
"@Sn" i a PICTURE function, horizontal scroll of entry field when the value is longer than <n>. <n> is an integer determining the width of the entry
Piotr
-
- Posts: 481
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Problem with DCGET PICTURE "@Sn !"
Hi,
then you can try
@ 1,0 DCGET cVar PICTURE "!"+REPLICATE("X",49) GETSIZE 25
This should do the same, perhaps the undocumented picture clause "S" produces your anomality ?
then you can try
@ 1,0 DCGET cVar PICTURE "!"+REPLICATE("X",49) GETSIZE 25
This should do the same, perhaps the undocumented picture clause "S" produces your anomality ?
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Problem with DCGET PICTURE "@Sn !"
Hi Wolfgang,
this is not UNDOCUMENTED function - see at Xbase guide (under "@...GET").
"...
Formatting functions with GET...PICTURE
Function Data type Formatting
A C Only letters are allowed
B N Displays numbers left justified
C N Displays CR (Credit) after positive numbers
D C Displays character strings in SET DATE format
K CDLN Deletes edit buffer when the first key is not a cursor key
L<c> N Fills numeric values with the character <c> from the left
R C Inserts unknown formatting characters into the display, but does not store in the variable
S<n> C Horizontal scroll of entry field when the value is longer than <n>. <n> is an integer determining the width of the entry field.
X N Displays DB (Debit) behind negative numbers
Z N Displays only blank spaces when the value is 0
( N Displays negative numbers with leading blank spaces in parentheses
) N Displays negative numbers without leading blank spaces in parentheses
$ N Places the country specific currency character in front of a number
! C Converts letter characters to upper case
Piotr
this is not UNDOCUMENTED function - see at Xbase guide (under "@...GET").
"...
Formatting functions with GET...PICTURE
Function Data type Formatting
A C Only letters are allowed
B N Displays numbers left justified
C N Displays CR (Credit) after positive numbers
D C Displays character strings in SET DATE format
K CDLN Deletes edit buffer when the first key is not a cursor key
L<c> N Fills numeric values with the character <c> from the left
R C Inserts unknown formatting characters into the display, but does not store in the variable
S<n> C Horizontal scroll of entry field when the value is longer than <n>. <n> is an integer determining the width of the entry field.
X N Displays DB (Debit) behind negative numbers
Z N Displays only blank spaces when the value is 0
( N Displays negative numbers with leading blank spaces in parentheses
) N Displays negative numbers without leading blank spaces in parentheses
$ N Places the country specific currency character in front of a number
! C Converts letter characters to upper case
Piotr
-
- Posts: 481
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Problem with DCGET PICTURE "@Sn !"
Sorry, i looked at the parameter of Transform().
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang