Novell Home

Reading partial text in a variable

Novell Cool Solutions: Question & Answer

Posted: 4 Nov 2005

Q:
I am working on the script for Outlook 2003. Does anyone know how to read partial text in a variable, for a Windows application?

For example I have username as testdrive/jdeo, and I need to get "jdeo" from the username and assign it to a textbox.

A:
Try using the RegSplit command:
RegSplit "testdrive/(.*)" $Username ?Name. This should fill the ?Name with the name you want entered. You can check this with MessageBox ?Name

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.