/********************************************************************* * Copyright (C) 2000 by Progress Software Corporation ("PSC"), * * 14 Oak Park, Bedford, MA 01730, and other contributors as listed * * below. All Rights Reserved. * * * * The Initial Developer of the Original Code is PSC. The Original * * Code is Progress IDE code released to open source December 1, 2000.* * * * The contents of this file are subject to the Possenet Public * * License Version 1.0 (the "License"); you may not use this file * * except in compliance with the License. A copy of the License is * * available as of the date of this notice at * * http://www.possenet.org/license.html * * * * Software distributed under the License is distributed on an "AS IS"* * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. You* * should refer to the License for the specific language governing * * rights and limitations under the License. * * * * Contributors: * * * *********************************************************************/ /*---------------------------------------------------------------------------- File: repname.i Description: The name of a schema object has been changed. Reflect this change in the appropriate selection list. Arguments: &OldName - The old object name &NewName - The new object name. &List - The list to change the name in. &Fill - The fill-in associated with the list in the browse window. &Curr - The current value variable for this object type. Author: Laura Stern Date Created: 04/24/92 ----------------------------------------------------------------------------*/ Define var ret as integer. /* 09-08-92 mikep fix for bug 92-09-01-118 */ s_Res = {&List}:replace({&NewName}, {&OldName}) in frame browse. if s_Res = no then do: ret = lookup({&OldName}, {&List}:list-items in frame browse). if ret > 0 then s_Res = {&List}:replace({&NewName}, entry(ret, {&List}:list-items in frame browse)) in frame browse. end. if s_Res = yes then do: {&List}:screen-value in frame browse = {&NewName}. {&Curr} = {&NewName}. /* Note - we can't use display here. We want to change the value of the widget whether it's visible right now or not. Display will make it appear and we may not want it to. When it becomes visible we'll see the change. */ {&Fill}:screen-value in frame browse = {&NewName}. end.