Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using Evaluate for a user input string

Posted on 1998-10-04
2
Medium Priority
?
260 Views
Last Modified: 2013-12-18
I have a manual agent, which asks the user for input using an inputbox. I want to change the case of the user input to Proper Case. I am trying to use Evaluate and @ProperCase but am unsuccesful. Could anyone suggest how this can be done using @Evaluate or otherwise ?
0
Comment
Question by:Shirish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:Shirish
ID: 1117524
Edited text of question
0
 
LVL 12

Accepted Solution

by:
fulscher earned 280 total points
ID: 1117525
Shirish,

The following is an excerpt from the Help Database. It contains all that you need. To find this kind of information, I have a full-text index on the HelpDB. In this case, I searched for "proper".

StrConv function in LotusScript

Converts a string to a different case or character set.

Syntax
StrConv ( expr , conversionType )

Elements
expr
A string or numeric expression. A numeric expression is converted to a string.

conversionType
An integer that defines the type of conversion:
Constant name      Value      Type of conversion
SC_UpperCase      1      Uppercase
SC_LowerCase      2      Lowercase
SC_ProperCase      3      Proper case
SC_Wide      4      Single byte to double byte
SC_Narrow      8      Double byte to single byte
SC_Katakana      16      Hiragana to Katakana
SC_Hiragana      32      Katakana to Hiragana

Return value
The return value is a variant containing the result of the conversion.

Usage
The valid values for the conversionType elements listed in the preceding table are defined as constants in the file lsconst.lss. If you want to use the constants instead of numbers, include this file in your script.
ConversionType values can be combined (ored) as follows:

Any combination of SC_UpperCase, SC_LowerCase, and SC_ProperCase causes SC_ProperCase.

Combining SC_Wide and SC_Narrow is illegal.

Combining SC_Katakana and SC_Hiragana is illegal.

If combined, the following operations occur in the following order: case operation, SC_Wide, SC_Katakana.

Case operations are applied to double-byte alphanumeric characters.

If expr is the null string, the result is the null string. If expr is Null, the result is Null.

For proper case, the following numeric character codes are treated as word separators in a string literal: 0 (null), 9 (horizontal tab), 12 (form feed), 32 (space), 0x3000 (doubl-byte space). The following are treated as separators in a multi-line string: 10 (line feed), 13 (carriage return).

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question