www.lucersoft.com

   
       Home  |   News  |   Downloads  |   Order  |   Contacts

 

 

Main

Home

Site map

Products

LC Backup

LC Copier

HTML Batch Editor

HTML Batch Editor PRO

Tennis 2001

Freeware

Documentation

HTML Batch Editor PRO

LC Basic

Information

Order

Update Policy

Support

Contacts

Links

 
 
 
 

 
 
 
 
 
 
 
 
 

HBEReplace

HBE specific commands


Syntax

 

result = HBEReplace(nFrom, nLen,sBy)


Description:

 

Replaces or inserts string to current file.


Arguments:

 

nFrom - Position in the file where string will be inserted.

nLen - Number of bytes that are replaced. If this parameter is zero, HBEReplace inserts string before position nFrom.

sBy - A string that is inserted.


Examples:

      'Inserts string on top of file
HBEReplace(1,0,"begin")

'Inserts string to end of file
position = FileSize(HBEFullPath()) + 1
HBEReplace(position,0,"end")

'Replaces first four characters with string
HBEReplace(1,4,"string")

 

 

 

 


Return value:

If the function succeeds, the return value is True. If the function fails, the return value is False.


See also:

 

HBEReplaceAll, HBEReplaceAllRE



 
Last updated: November 2, 2003
Copyright © 2002 Lucersoft

Add to favorites

Back