The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 upper and lower
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gloorigin

Italy
7 Posts

Posted - 02/24/2003 :  12:01:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would need some help about Origin. I am doing a script window to do lots of plots in an automatic way and I would like to know if it is possible to change a string from UPPERCASE to LOWERCASE. I have the string
%u=%[%C,9:10];
and the output are two characters in UPPERCASE and I would like to have it in LOWERCASE.
how can I do??

Thank a lot for your help.
G.

Mike Buess

USA
3037 Posts

Posted - 02/24/2003 :  2:09:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There's no way to switch cases in LabTalk, but you can do it in Origin C if you have Origin 7...
string upper2lower(string inStr)
{
inStr.MakeLower();
return inStr;
}
%A="ABCD";
%A=upper2lower(%A)$;
%A=;
abcd

Mike Buess
Origin WebRing Member
Go to Top of Page

gloorigin

Italy
7 Posts

Posted - 02/25/2003 :  04:35:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks a lot for your help.
best regards,
G.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000