'encoding UTF-8 Do not remove or change this line! '************************************************************** ' ' Licensed to the Apache Software Foundation (ASF) under one ' or more contributor license agreements. See the NOTICE file ' distributed with this work for additional information ' regarding copyright ownership. The ASF licenses this file ' to you under the Apache License, Version 2.0 (the ' "License"); you may not use this file except in compliance ' with the License. You may obtain a copy of the License at ' ' http://www.apache.org/licenses/LICENSE-2.0 ' ' Unless required by applicable law or agreed to in writing, ' software distributed under the License is distributed on an ' "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ' KIND, either express or implied. See the License for the ' specific language governing permissions and limitations ' under the License. ' '************************************************************** '* '* short description : check the internal file dialog ( extended tests ) '* '\****************************************************************************** function hSaveLoadDelSuccess( cFile as string ) as integer '///

Successfully save, close, load, close and delete a file

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcode (integer)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hLoadFileExpectSuccess( fpath as string ) as boolean '///

Load a file where failure is expected

'///Uses: framework\tools\t_stringtools.inc

'///This function is quite similar to hLoadFile but does much less '///+ errorhandling so the information of the type of failure is a little '///+ more exact

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hSaveFileExpectSuccess( fpath as string , bReplace as boolean ) as boolean '///

Save a file with optional replace where success is expected

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///+
  3. Replace file (boolean)
  4. '/// '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hSaveFileExpectFailure( fpath as string , errortype as integer ) as boolean '///

Save a file where failure is expected

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///+
  3. Errortype (Integer). Valid options are:
  4. '/// '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hDeleteFileViaFileOpen( cFile as String ) as boolean '///

Delete a file using the File Open dialog

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hNameGen_append( iDecChar as long ) as string '///

Create a filename with specified character at the end

'///Input: '///
    '///+
  1. Character as number (integer)
  2. '/// '///
'///Returns: '///
    '///+
  1. A filename containing a special character at the end (before suffix)
  2. '///
'///Description: '/// end function '******************************************************************************* function hNameGen_lead( iDecChar as long ) as string '///

Create a filename with specified character at the beginning

'///Input: '///
    '///+
  1. Character as number (integer)
  2. '/// '///
'///Returns: '///
    '///+
  1. A filename containing a special character at the beginning
  2. '///
'///Description: '/// end function '******************************************************************************* function hFindFileObjectViaFileOpen( cName as string ) as integer '///

Get the position of a filesystem object in filelist of fileopen dialog

'///Note that the filepicker must be open in order to use this function.
'///The object with the given name is selected when leaving the function.

'///Input: '///
    '///+
  1. Filename incl. extension (string) but without any pathseparator
  2. '///
'///Returns: '///
    '///+
  1. Position of the object in the filepicker list
  2. '/// '///
'///Description: '/// end function