home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mentor
- Path: sparky!uunet!news.mentorg.com!buzzb!buzzb
- From: buzzb@buzzb.mentorg.com (Buzz Brehm)
- Subject: Re: Help on circumflex operator in Ample
- Message-ID: <1993Jan21.211322.16599@news.mentorg.com>
- Sender: buzzb@buzzb (Buzz Brehm)
- Date: Thu, 21 Jan 1993 21:13:22 GMT
- Distribution: usa
- References: <1993Jan20.202145.20006@cbnewsm.cb.att.com>
- Nntp-Posting-Host: buzzb.mentorg.com
- Organization: mentor
- Keywords:
- Followup-To:
- Lines: 43
-
- In article <1993Jan20.202145.20006@cbnewsm.cb.att.com>, mysore@cbnewsm.cb.att.com (arun.d.kumar) writes:
- |> I was trying to use the circumflex(^)operator to evaluate a string in the
- |> following function:
- |> function $dmgr_session_att_version_pulldown_menu(), INVISIBLE
- |> {
- |> local dvever=$get_env("ATT_DVE_VERSION");
- |>
- |> $create_menu(
- |> "dmgr_session_window", @pulldown, "dmgr_session_att_version_pulldown",
- |> $menu_default_columns, $menu_default_color,
- |>
- |> ---> $menu_text_item(^($strcat("ATT_DVE_VERSION: ",dvever)))
- |> //$menu_text_item( )
- |> );
- |> }
- |> I got the following error message
- |> Error: Unable to evaluate string"ATT_DVE_VERSION: 1.3.0" at the line shown.
- |> The value of dvever is 1.3.0.
- |> My question is can circumflex operator operate on strings ?
- |> or does it work only on constants ?. I want to display the version
- |> number for a tool.
- |> Thanks for your help and suggestions.
- |> Arun Kumar
- |> --
- |>
- |> _______________________________________________________________________________
- |>
- |>
-
- The circumflex operator is not needed to display your version # . The following
- modification will cause the string "ATT_DVE_VERSION: " and the value of dvever
- to be concatinated and displayed in the message area at the bottom of the session window.
-
- $menu_text_item($message($strcat("ATT_DVE_VERSION: ",dvever)))
-
- --
- -- BuzzB
-
- -----------------------------------------------------------------------------
- buzz_brehm@mentorg.com
- -----------------------------------------------------------------------------
- Mentor Graphics | 8500 SW Boeckman Rd | Software Support Engineer
- Corporation | Wilsonville, OR 97070-7777 | Falcon Framework
-