⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newlink.ssc

📁 PowerBuilder8.0开发分散式应用所帶的例程
💻 SSC
字号:
<!--SCRIPT PSOBJMOD
    import( site.GetRootDocument().location + "/ObjMod80.ssc" );
    session.active = true;
    InitObjects(session);
-->
<!--SCRIPT // {{ SCRIPT()
  /* Add a folder linked to a directory*/
  var webRoot = site.GetRootDocument();
  import ( webRoot.location + '/system/utils/strtable.ssc' );
  import ( webRoot.location + '/system/utils/wizard.ssc' );
  
  var linkWiz;
  
  linkWiz.name = new wizardPage( 'Text',
    IntlStr.wizNewLink.p1.title,
    IntlStr.wizNewLink.p1.explanation,
    IntlStr.wizNewLink.p1.question
    );
    
  linkWiz.directory = new wizardPage( 'DirectoryBrowse',
    IntlStr.wizNewLink.p2.title,
    IntlStr.wizNewLink.p2.explanation,
    IntlStr.wizNewLink.p2.question
    );
    
  /* Display the wizard */
  if( site.CreateWizard(linkWiz) ) {
    /* Check if a folder name was provided */
    if( linkWiz.name.value.length > 0 ) {
      /* Create the folder in the specified directory */
      var fullname = document.location + '/' + linkWiz.name.value;
      var newFolder = site.CreateDocument( fullname,
	'directorylink', linkWiz.directory.value );
      if( newFolder == null ) {
	document.writeln( formatString( IntlStr.unableToCreate, fullname ) );
      }
    } else {
      document.writeln( IntlStr.noFolderName );
    }
  }
// }}
-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -