home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mentor / 344 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.2 KB  |  59 lines

  1. Newsgroups: comp.sys.mentor
  2. Path: sparky!uunet!news.mentorg.com!buzzb!buzzb
  3. From: buzzb@buzzb.mentorg.com (Buzz Brehm)
  4. Subject: Re: Help on circumflex operator in Ample
  5. Message-ID: <1993Jan21.211322.16599@news.mentorg.com>
  6. Sender: buzzb@buzzb (Buzz Brehm)
  7. Date: Thu, 21 Jan 1993 21:13:22 GMT
  8. Distribution: usa
  9. References:  <1993Jan20.202145.20006@cbnewsm.cb.att.com>
  10. Nntp-Posting-Host: buzzb.mentorg.com
  11. Organization: mentor
  12. Keywords: 
  13. Followup-To: 
  14. Lines: 43
  15.  
  16. In article <1993Jan20.202145.20006@cbnewsm.cb.att.com>, mysore@cbnewsm.cb.att.com (arun.d.kumar) writes:
  17. |> I was trying to use the circumflex(^)operator to evaluate a string in the
  18. |> following function:
  19. |> function $dmgr_session_att_version_pulldown_menu(), INVISIBLE
  20. |> {
  21. |>   local dvever=$get_env("ATT_DVE_VERSION");
  22. |> 
  23. |>    $create_menu(
  24. |>       "dmgr_session_window", @pulldown, "dmgr_session_att_version_pulldown",
  25. |>       $menu_default_columns, $menu_default_color,
  26. |>  
  27. |>  --->     $menu_text_item(^($strcat("ATT_DVE_VERSION: ",dvever)))
  28. |>       //$menu_text_item( )
  29. |>    );
  30. |> }
  31. |> I got the following error message 
  32. |> Error: Unable to evaluate string"ATT_DVE_VERSION: 1.3.0" at the line shown.
  33. |> The value of dvever is 1.3.0.
  34. |> My question is can circumflex operator operate on strings ?            
  35. |> or does it work only on constants ?. I want to display the version
  36. |> number for a tool.
  37. |> Thanks for your help and suggestions.
  38. |> Arun Kumar
  39. |> -- 
  40. |> 
  41. |> _______________________________________________________________________________
  42. |>  
  43. |> 
  44.  
  45. The circumflex operator is not needed to display your version # .  The following
  46. modification will cause the string "ATT_DVE_VERSION: " and the value of dvever
  47. to be concatinated and displayed in the message area at the bottom of the session window.
  48.  
  49. $menu_text_item($message($strcat("ATT_DVE_VERSION: ",dvever)))
  50.  
  51. -- 
  52. -- BuzzB
  53.  
  54. -----------------------------------------------------------------------------
  55.                     buzz_brehm@mentorg.com
  56. -----------------------------------------------------------------------------
  57.  Mentor Graphics |  8500 SW Boeckman Rd         |  Software Support Engineer
  58.   Corporation    |  Wilsonville, OR 97070-7777  |      Falcon Framework     
  59.