Picture Clause to force Lower Case

Picture Clause to force Lower Case

Postby Rick Lipkin » Fri Feb 26, 2021 8:36 pm

To All

Having trouble finding the correct PICTURE clause to force lower case .. this is for upper case PICTURE "@!" what about lower case ??

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Picture Clause to force Lower Case

Postby Marc Venken » Fri Feb 26, 2021 10:44 pm

I Think it is not possible with PICTURE. See post of Mr. Rao

Picture function

A picture function specifies formatting rules for the entire output string. It must begin with the @ sign followed by one or more letters listed in the table below:

Picture function characters Function Formatting rule

B Formats numbers left-justified
C Adds CR (credit) after positive numbers
D Formats dates in SET DATE format
E Formats dates and numbers in British format
L Pads numbers with zeros instead of blank spaces
R Nontemplate characters are inserted
X Adds DB (debit) after negative numbers
Z Formats zeros as blanks
( Encloses negative numbers in parentheses
! Converts alphabetic characters to uppercase

Picture mask

The picture mask must be separated by a single space from the picture function. When no picture function is used, the picture string is identical with the picture mask. The mask defines formatting rules for individual characters in the output string. Characters from the following table can be used. The position of a character of a picture mask specifies formatting for the character of the output string at the same position. An exception is the @R function which causes non-mask characters being inserted into the output string.

Picture mask characters Charactere Formatting rule

A,N,X,9,# Formats digits for any data type
L Formats logicals as "T" or "F"
Y Formats logicals as "Y" or "N"
! Converts alphabetic characters to uppercase
$ Adds a dollar sign in place of a leading space in a number
* Adds an asterisk in place of a leading space in a number
. Specifies a decimal point position
, Specifies a comma position
Regards

G. N. Rao.
Hyderabad, India
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1426
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Picture Clause to force Lower Case

Postby Rick Lipkin » Fri Feb 26, 2021 10:58 pm

Marc

Sorry if I am missing the correct picture clause ... I want the picture clause to convert all to lower case ..

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Picture Clause to force Lower Case

Postby karinha » Sat Feb 27, 2021 2:31 am

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Picture Clause to force Lower Case

Postby Armando » Sat Feb 27, 2021 4:26 am

Rick:

Doesn't it work for you to define it in resources?

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3209
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Picture Clause to force Lower Case

Postby nageswaragunupudi » Sat Feb 27, 2021 7:44 am

There is NO picture clause in (x)Harbour/Clipper to force LowerCase.

But you can use the style ES_LOWERCASE (value 0x10).

If you define the GET from resources, add the style ES_LOWERCASE in the rc file.

If you define GET from source code, add this line
Code: Select all  Expand view

oGet:WinStyle( ES_LOWERCASE, .t. )
 

after defining the Get.

Please make sure you added the define
Code: Select all  Expand view

#define ES_LOWERCASE        0x0010
 

earlier in the module.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10622
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Picture Clause to force Lower Case

Postby Rick Lipkin » Sat Feb 27, 2021 2:55 pm

Rao

Thanks for your help ... this form was from resources and I did see you can define the field for Lower Case ... just never thought to look there ...

Thanks Again
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests