Novell Home

Variables in Dialog statements

Novell Cool Solutions: Question & Answer

Posted: 5 May 2005

Q:
Is there some way I can use a variable in a Dialog statement? For example:>br>
Dialog
Class ""
Title "Change password for " $Username
EndDialog

All the iterations and variations of the above example fail ...

A:
Here's how I solved it:

Dialog
Class ""
Ctrl #0
EndDialog
ReadText #0 ?TextZero
if "Change Password for" -In ?TextZero
Do Stuff
EndIf

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.