home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _77A8E26D90A0465B90EDDA7AB5DA6341 < prev    next >
Text File  |  2003-03-07  |  18KB  |  716 lines

  1. Nest
  2.  
  3. Example
  4.  
  5. Syntax
  6.  
  7. (MacroFileName: string; {[Parameter: any]})
  8.  
  9. Description
  10.  
  11. Call (start) a nested macro.
  12.  
  13. This command is included for DOS compatibility. The Windows equivalent is Run.
  14.  
  15. A nested macro starts immediately when called. When a nested macro ends, the first statement following Nest is executed.
  16.  
  17. PerfectScript automatically compiles uncompiled Nest macros. Macro execution stops if the macro will not compile.
  18.  
  19. Parameters
  20.  
  21. MacroFileName: string    The path and name of a compiled macro.
  22.  
  23. {Parameter: any} (optional)    Enclose multiple parameters in braces ({ }), separated by a semicolon. For example: Nest ("macro"; {"a"; "b"; "c"}). Parameter values are passed to a special array variable named MacroArgs[ ].
  24.  
  25. If missing, MacroArgs[ ] is not defined in the new macro.
  26.  
  27. numeric := NetAddConnection
  28.  
  29. Example
  30.  
  31. Syntax
  32.  
  33. (RemoteName: string; [LocalName: string]; [Provider: string]; [Type: enumeration]; [Password: string]; [UserName: string]; [Options: enumeration])
  34.  
  35. Description
  36.  
  37. Connect to a network resource.
  38.  
  39. Example
  40.  
  41. NetAddConnection ("wpc35\dev1:win32sh"; "I:")
  42.  
  43. Return Value
  44.  
  45. 0 if the connection was successful, or a non-zero value that represents an error code if not.
  46.  
  47.  
  48.  
  49. Type: enumeration or numeric    Success! 
  50.  
  51. DialogCancelled! The attempt to make the connection was cancelled by the user through a dialog box.
  52.  
  53. AccessDenied! Access to the network resource was denied.
  54.  
  55. AlreadyAssigned! The loacal device is already in the user profile
  56.  
  57. AlreadyRemembered! An entry for the device is already in the user profile
  58.  
  59. CantOpenUserProfile! The system is unable to open the user profile to process persistent connections.
  60.  
  61. DeviceInUse! The device in in use by an active process and cannot be disconnected.
  62.  
  63. DeviceMismatch! The type of local device and the type of network resource do not match.
  64.  
  65. FilesStillOpen! There are open files and the Force parameter is False.
  66.  
  67. InsufficientMemory! There is insufficient memory to start the dialog box.
  68.  
  69. InvalidDevice! The device specified is invalid.
  70.  
  71. InvalidNetOrPath! A network component has not started, or the specified name could not be handled.
  72.  
  73. InvalidParameter! There is a bad combination of parameters.
  74.  
  75. InvalidPassword! The specified password is invalid.
  76.  
  77. InvalidProvider! The provider specified does not match any provider.
  78.  
  79. InvalidResource! The remote name specified is not acceptable to any network resource provider. The resource name is invalid, or the named resource cannot be located.
  80.  
  81. InvalidUserProfile! The user profile is in an incorrect format.
  82.  
  83. NetworkError! A network-specific error occurred.
  84.  
  85. NoConnection! There is no current connection to the remote device, but there is a remembered (persistant) connection to it.
  86.  
  87. NoNetwork! There is no network present.
  88.  
  89. NotConnected! The name specified is not a redirected device, or the system is not currently connected to the device.
  90.  
  91. NotSupported! The network provider is busy, possibly initializing. The caller should retry.
  92.  
  93. ResourceNotContainer! The resource does not specify a container.
  94.  
  95.  
  96.  
  97. Parameters
  98.  
  99. RemoteName: string    The name of a network resource (refer to your network provider's naming conventions).
  100.  
  101. LocalName: string (optional)    The name of a network resource on a local system (not case sensitive). For example, F: or LPT1. If this parameter is missing, a connection to the network resource is made without redirecting a local device.
  102.  
  103. Provider: string (optional)    Specify a network provider to connect to. If missing or "", the operating system parses RemoteName to try to determine the correct provider. Only use this parameter when a network provider must be specified. Otherwise, Windows should determine which provider the network name maps to. If this parameter is present, Windows will only try to connect to the named provider.
  104.  
  105. Type: enumeration (optional)    Default: Disk!
  106.  
  107. Disk!
  108.  
  109. Printer!
  110.  
  111. Password: string (optional)    The password to use when making the connection. If not present, the default password associated with UserName is used. If this parameter is missing or "", no password is used.
  112.  
  113. UserName: string (optional)    The username to use when making a connection. If not present, the default UserName is used (user context provides the default user name). Use this parameter when the user wants to connect to a network resource and they have been assigned a user name or account. UserName may be specific to a network provider, and can be used in a security context.
  114.  
  115. Options: enumeration (optional)    Default: DontAutoRestore!
  116.  
  117. DontAutoRestore! Do not remember the connection to restore it automatically every time you log in.
  118.  
  119. AutoRestore! Remember the connection and restore it automatically every time you log in.
  120.  
  121. boolean := NetCancelConnection
  122.  
  123. Example
  124.  
  125. Syntax
  126.  
  127. (ResourceName: string; [Options: enumeration]; [Force: boolean])
  128.  
  129. Description
  130.  
  131. Terminate a connection to a network resource.
  132.  
  133. Example
  134.  
  135. NetCancelConnection ("I:")
  136.  
  137. Return Value
  138.  
  139. True if successful, False if not.
  140.  
  141. Parameters
  142.  
  143. ResourceName: string    Specifiy a remote network resource or a redirected local device. See NetAddConnection.
  144.  
  145. Options: enumeration (optional)    Default: DontAutoRestore!
  146.  
  147. DontAutoRestore! No information about the connection is stored.
  148.  
  149. AutoRestore! Windows will not restore the connection in subsequent attempts to log on.
  150.  
  151. Force: boolean (optional)    True disconnects even though there are open files or jobs on the connection. If missing or False, disconnect fails if there are open files or jobs on the connection.
  152.  
  153. numeric := NetConnectionDlg
  154.  
  155. Example
  156.  
  157. Syntax
  158.  
  159. ([Type: enumeration])
  160.  
  161. Description
  162.  
  163. Open a dialog box for connecting to network resources.
  164.  
  165. Return Value
  166.  
  167. The status code returned by the dialog. 
  168.  
  169. Type: enumeration or numeric    Success! 
  170.  
  171. DialogCancelled! The attempt to make the connection was cancelled by the user through a dialog box.
  172.  
  173. AccessDenied! Access to the network resource was denied.
  174.  
  175. AlreadyAssigned! The loacal device is already in the user profile
  176.  
  177. AlreadyRemembered! An entry for the device is already in the user profile
  178.  
  179. CantOpenUserProfile! The system is unable to open the user profile to process persistent connections.
  180.  
  181. DeviceInUse! The device in in use by an active process and cannot be disconnected.
  182.  
  183. DeviceMismatch! The type of local device and the type of network resource do not match.
  184.  
  185. FilesStillOpen! There are open files and the Force parameter is False.
  186.  
  187. InsufficientMemory! There is insufficient memory to start the dialog box.
  188.  
  189. InvalidDevice! The device specified is invalid.
  190.  
  191. InvalidNetOrPath! A network component has not started, or the specified name could not be handled.
  192.  
  193. InvalidParameter! There is a bad combination of parameters.
  194.  
  195. InvalidPassword! The specified password is invalid.
  196.  
  197. InvalidProvider! The provider specified does not match any provider.
  198.  
  199. InvalidResource! The remote name specified is not acceptable to any network resource provider. The resource name is invalid, or the named resource cannot be located.
  200.  
  201. InvalidUserProfile! The user profile is in an incorrect format.
  202.  
  203. NetworkError! A network-specific error occurred.
  204.  
  205. NoConnection! There is no current connection to the remote device, but there is a remembered (persistant) connection to it.
  206.  
  207. NoNetwork! There is no network present.
  208.  
  209. NotConnected! The name specified is not a redirected device, or the system is not currently connected to the device.
  210.  
  211. NotSupported! The network provider is busy, possibly initializing. The caller should retry.
  212.  
  213. ResourceNotContainer! The resource does not specify a container.
  214.  
  215.  
  216.  
  217. Parameters
  218.  
  219. Type: enumeration (optional)    Default: Disk!
  220.  
  221. numeric := NetDisconnectDlg
  222.  
  223. Example
  224.  
  225. Syntax
  226.  
  227. ([Type: enumeration])
  228.  
  229. Description
  230.  
  231. Open a dialog box for disconnecting from network resources.
  232.  
  233. Return Value
  234.  
  235. The status code returned by the dialog.
  236.  
  237. Type: enumeration or numeric    Success! 
  238.  
  239. DialogCancelled! The attempt to make the connection was cancelled by the user through a dialog box.
  240.  
  241. AccessDenied! Access to the network resource was denied.
  242.  
  243. AlreadyAssigned! The loacal device is already in the user profile
  244.  
  245. AlreadyRemembered! An entry for the device is already in the user profile
  246.  
  247. CantOpenUserProfile! The system is unable to open the user profile to process persistent connections.
  248.  
  249. DeviceInUse! The device in in use by an active process and cannot be disconnected.
  250.  
  251. DeviceMismatch! The type of local device and the type of network resource do not match.
  252.  
  253. FilesStillOpen! There are open files and the Force parameter is False.
  254.  
  255. InsufficientMemory! There is insufficient memory to start the dialog box.
  256.  
  257. InvalidDevice! The device specified is invalid.
  258.  
  259. InvalidNetOrPath! A network component has not started, or the specified name could not be handled.
  260.  
  261. InvalidParameter! There is a bad combination of parameters.
  262.  
  263. InvalidPassword! The specified password is invalid.
  264.  
  265. InvalidProvider! The provider specified does not match any provider.
  266.  
  267. InvalidResource! The remote name specified is not acceptable to any network resource provider. The resource name is invalid, or the named resource cannot be located.
  268.  
  269. InvalidUserProfile! The user profile is in an incorrect format.
  270.  
  271. NetworkError! A network-specific error occurred.
  272.  
  273. NoConnection! There is no current connection to the remote device, but there is a remembered (persistant) connection to it.
  274.  
  275. NoNetwork! There is no network present.
  276.  
  277. NotConnected! The name specified is not a redirected device, or the system is not currently connected to the device.
  278.  
  279. NotSupported! The network provider is busy, possibly initializing. The caller should retry.
  280.  
  281. ResourceNotContainer! The resource does not specify a container.
  282.  
  283.  
  284.  
  285. Parameters
  286.  
  287. Type: enumeration (optional)    Default: Disk!
  288.  
  289. Disk!
  290.  
  291. Printer!
  292.  
  293. string := NetGetConnection
  294.  
  295. Example
  296.  
  297. Syntax
  298.  
  299. (LocalName: string)
  300.  
  301. Description
  302.  
  303. Return the name of a network resource associated with a local device.
  304.  
  305. Example
  306.  
  307. vNetResource := NetGetConnection ("M:")
  308.  
  309. Return Value
  310.  
  311. string is empty when an error occurs.
  312.  
  313. Parameter
  314.  
  315. LocalName: string    The name of a local device.
  316.  
  317. string := NetGetUniversalName
  318.  
  319. Example
  320.  
  321. Syntax
  322.  
  323. (LocalPath: string)
  324.  
  325. Description
  326.  
  327. Get the UNC name of a local file.
  328.  
  329. Return Value
  330.  
  331. UNC name of a local file.
  332.  
  333. Parameter
  334.  
  335. LocalPath: string    Local name of the file.
  336.  
  337. string := NetGetUser
  338.  
  339. Example
  340.  
  341. Syntax
  342.  
  343. ()
  344.  
  345. Description
  346.  
  347. Get a user network ID.
  348.  
  349. Return Value
  350.  
  351. User network ID.
  352.  
  353. NewDefault
  354.  
  355. Example
  356.  
  357. Syntax
  358.  
  359. (<ProductPrefix> identifier)
  360.  
  361. Description
  362.  
  363. Specify a macro's new default application. NewDefault accepts the prefix of an OLE object, as well as a product mnemonic.
  364.  
  365. The compiler verifies that each product command is valid for the default application. Invalid product commands produce a syntax error during compilation. This is a compile-time only statement, and makes the specified object prefix or product mnemonic the current default prefix for unknown commands.
  366.  
  367. Product commands to the default application do not require a product prefix. A product command to a non-default application, without a product prefix, creates a compile-time syntax error.
  368.  
  369. Parameters
  370.  
  371. <ProductPrefix> identifier    A unique identifier that matches the ProductPrefix parameter of an Application statement.
  372.  
  373. Next
  374.  
  375. Example
  376.  
  377. Description
  378.  
  379. Advance a loop iteration before the end of the loop.
  380.  
  381. Use Next inside a conditional statement such as If or Switch in a loop to advance a loop iteration when a specified condition is met. Statements after Next are ignored.
  382.  
  383. boolean := NOT boolean
  384.  
  385. Description
  386.  
  387. Operator. Precedence level 1. Invert the result of a relational expression.
  388.  
  389. Return Value
  390.  
  391. True if the inverted value is true, False if not.
  392.  
  393. enumeration := NotFound
  394.  
  395. Example
  396.  
  397. Syntax
  398.  
  399. ([State: enumeration])
  400.  
  401. Description
  402.  
  403. Determine how a macro responds to a Not Found condition.
  404.  
  405. A Not Found condition is generally the result of a failed search. Create a Not Found condition with Assert(NotFoundCondition!).
  406.  
  407. Return Value
  408.  
  409. Off! Previous condition was Off!
  410.  
  411. On! Previous condition was On!
  412.  
  413. Parameters
  414.  
  415. State: enumeration (optional)    Specify the Not Found state. The default is NotFound(On!). If missing, the current state is returned without changing it.
  416.  
  417. Off! Ignore a Not Found condition.
  418.  
  419. On! Stop a macro unless preceded by OnNotFound, which directs macro execution to a specified Label.
  420.  
  421. numeric := NthRoot
  422.  
  423. Syntax
  424.  
  425. (Value: numeric; Root: numeric)
  426.  
  427. Description
  428.  
  429. Get the Nth root of a value.
  430.  
  431. Example
  432.  
  433. Type(NthRoot (Value:100; Root:2))
  434.  
  435. // Return: 10.0
  436.  
  437. Return Value
  438.  
  439. Nth root of a value.
  440.  
  441. Parameters
  442.  
  443. Value: numeric    The value (return the Nth root of).
  444.  
  445. Root: numeric    The root to return.
  446.  
  447. string := NToC
  448.  
  449. Example
  450.  
  451. Syntax 1
  452.  
  453. (Character: numeric)
  454.  
  455. Description 1
  456.  
  457. Convert a number to its character equivalent.
  458.  
  459. Return Value 1
  460.  
  461. The character equivalent of an ANSI decimal value.
  462.  
  463. Parameter 1
  464.  
  465. Character: numeric    The ANSI decimal value.
  466.  
  467. Example 
  468.  
  469. Syntax 2
  470.  
  471. (CharacterOrCharSet: numeric; Character: numeric)
  472.  
  473. Description 2
  474.  
  475. Convert a number from a WordPerfect character set to its character equivalent.
  476.  
  477. Return Value 2
  478.  
  479. The character equivalent of a number in a WordPerfect character set.
  480.  
  481. Parameters 2
  482.  
  483. CharacterOrCharSet: numeric (optional)    The number of a WordPerfect character set. If this parameter is not used, the default is 0 (ASCII set).
  484.  
  485. HardReturn! Insert a hard return character.
  486.  
  487. Hrt! Insert a hard return character.
  488.  
  489. Space! Insert a space character.
  490.  
  491. HardSpace! Insert a hard space character.
  492.  
  493. Tab! Insert a tab character.
  494.  
  495. HardPage! Insert a hard page break.
  496.  
  497. Hpg! Insert a hard page break.
  498.  
  499. ExtraLargeOn! Turn extra large text on.
  500.  
  501. ExtraLargeOff! Turn extra large text off.
  502.  
  503. VeryLargeOn! Turn very large text on.
  504.  
  505. VeryLargeOff! Turn very large text off.
  506.  
  507. LargeOn! Turn large text on.
  508.  
  509. LargeOff! Turn large text off.
  510.  
  511. SmallOn! Turn small text on.
  512.  
  513. SmallOff! Turn small text off.
  514.  
  515. FineOn! Turn fine text on.
  516.  
  517. FineOff! Turn fine text off.
  518.  
  519. SuperScriptOn! Turn superscript text on.
  520.  
  521. SuperScriptOff! Turn superscript text off.
  522.  
  523. SubScriptOn! Turn subscript text on.
  524.  
  525. SubScriptOff! Turn subscript text off.
  526.  
  527. OutlineOn! Turn outline text on.
  528.  
  529. OutlineOff! Turn outline text off.
  530.  
  531. ShadowOn! Turn shadow text on.
  532.  
  533. ShadowOff! Turn shadow text off.
  534.  
  535. BoldOn! Turn bold text on.
  536.  
  537. BoldOff! Turn bold text off.
  538.  
  539. ItalicsOn! Turn italics text on.
  540.  
  541. ItalicsOff! Turn italics text off.
  542.  
  543. UnderlineOn! Turn underline text on.
  544.  
  545. UnderlineOff! Turn underline text off.
  546.  
  547. DoubleUnderlineOn! Turn double underline text on.
  548.  
  549. DoubleUnderlineOff! Turn double underline text off.
  550.  
  551. RedlineOn! Turn redline text on.
  552.  
  553. RedlineOff! Turn redline text off.
  554.  
  555. StrikeOutOn! Turn strike out text on.
  556.  
  557. StrikeOutOff! Turn strike out text off.
  558.  
  559. SmallCapsOn! Turn small caps text on.
  560.  
  561. SmallCapsOff! Turn small caps text off.
  562.  
  563. Character: numeric    The number of a character in a WordPerfect character set.
  564.  
  565. string := NToC
  566.  
  567. Example
  568.  
  569. Syntax
  570.  
  571. (Character: numeric)
  572.  
  573. Description
  574.  
  575. Convert a number to its character equivalent.
  576.  
  577. Return Value
  578.  
  579. The character equivalent of an ANSI decimal value.
  580.  
  581. Parameters
  582.  
  583. Character: numeric    The ANSI decimal value.
  584.  
  585. string := NToC
  586.  
  587. Example
  588.  
  589. Syntax
  590.  
  591. (CharacterOrCharSet: numeric; Character: numeric)
  592.  
  593. Description
  594.  
  595. Convert a number from a WordPerfect character set to its character equivalent.
  596.  
  597. Return Value
  598.  
  599. The character equivalent of a number in a WordPerfect character set.
  600.  
  601. Parameters
  602.  
  603. CharacterOrCharSet: numeric (optional)    The number of a WordPerfect character set. If this parameter is not used, the default is 0 (ASCII set).
  604.  
  605. HardReturn! Insert a hard return character.
  606.  
  607. Hrt! Insert a hard return character.
  608.  
  609. Space! Insert a space character.
  610.  
  611. HardSpace! Insert a hard space character.
  612.  
  613. Tab! Insert a tab character.
  614.  
  615. HardPage! Insert a hard page break.
  616.  
  617. Hpg! Insert a hard page break.
  618.  
  619. ExtraLargeOn! Turn extra large text on.
  620.  
  621. ExtraLargeOff! Turn extra large text off.
  622.  
  623. VeryLargeOn! Turn very large text on.
  624.  
  625. VeryLargeOff! Turn very large text off.
  626.  
  627. LargeOn! Turn large text on.
  628.  
  629. LargeOff! Turn large text off.
  630.  
  631. SmallOn! Turn small text on.
  632.  
  633. SmallOff! Turn small text off.
  634.  
  635. FineOn! Turn fine text on.
  636.  
  637. FineOff! Turn fine text off.
  638.  
  639. SuperScriptOn! Turn superscript text on.
  640.  
  641. SuperScriptOff! Turn superscript text off.
  642.  
  643. SubScriptOn! Turn subscript text on.
  644.  
  645. SubScriptOff! Turn subscript text off.
  646.  
  647. OutlineOn! Turn outline text on.
  648.  
  649. OutlineOff! Turn outline text off.
  650.  
  651. ShadowOn! Turn shadow text on.
  652.  
  653. ShadowOff! Turn shadow text off.
  654.  
  655. BoldOn! Turn bold text on.
  656.  
  657. BoldOff! Turn bold text off.
  658.  
  659. ItalicsOn! Turn italics text on.
  660.  
  661. ItalicsOff! Turn italics text off.
  662.  
  663. UnderlineOn! Turn underline text on.
  664.  
  665. UnderlineOff! Turn underline text off.
  666.  
  667. DoubleUnderlineOn! Turn double underline text on.
  668.  
  669. DoubleUnderlineOff! Turn double underline text off.
  670.  
  671. RedlineOn! Turn redline text on.
  672.  
  673. RedlineOff! Turn redline text off.
  674.  
  675. StrikeOutOn! Turn strike out text on.
  676.  
  677. StrikeOutOff! Turn strike out text off.
  678.  
  679. SmallCapsOn! Turn small caps text on.
  680.  
  681. SmallCapsOff! Turn small caps text off.
  682.  
  683. Character: numeric    The number of a character in a WordPerfect character set.
  684.  
  685. string := NumStr
  686.  
  687. Syntax
  688.  
  689. (Value: any; [RightDigits: numeric]; [LeftDigits: numeric])
  690.  
  691. Description
  692.  
  693. Convert a number to a character string of numbers.
  694.  
  695. Return Value
  696.  
  697. A character string of numbers.
  698.  
  699. vText := NumStr(999; 0) // vText = "999"
  700.  
  701. vText := NumStr(3+7; 0) // vText = "10"
  702.  
  703. Parameters
  704.  
  705. Value: numeric    A number or expression that results in a number.
  706.  
  707. RightDigits: numeric (optional)    The number of digits to the right of the decimal returned as a character string. The range is 0-16. The default is 6. If the value of this parameter is greater than the number of decimal places, NumStr rounds up the entire expression. The decimal point returned by NumStr is defined by the sDecimal setting in the [intl] section of the Windows WIN.INI file.
  708.  
  709. LeftDigits: numeric (optional)    This parameter is currently ignored. Default: Use as many digits as needed.
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.