Contact | Privacy | Datenschutzerklärung | Impressum

offstotabcol, tabcoltooffs

Format: offstotabcol (line, offset)

Purpose: Convert an offset from the start of a line to a column position in a line, assuming a tab width of eight. The line parameter must be a string, the offset parameter must be an integer. The line string may contain newlines. Legal offsets for the offset parameter range from zero to len(line). tabcoltooffs() is the inverse function of offstotabcol().

Return Values: Return an integer which denotes the column position for the offset.

Example:

input:resulting output:
<? offstotabcol ("foo\\nbar\\tbaz", 9)>9

Format: tabcoltooffs (line, column)

Purpose: Convert a column position in a line to a byte offset from the start of the line, assuming a tab width of eight. The line parameter must be a string, the offset parameter must be an integer.

Return Values: Return an integer which denotes the largest offset whose on-screen column position is less than or equal to column. Return null if column is less than zero or behind the end of line.

Note: tabcoltooffs() is the inverse of offstotabcol().

Example:

input:resulting output:
<? tabcoltooffs ("foo\\tbar", 5)>5


This page was dynamically generated by the web application development tool RADpage of H.E.I. H.E.I. provides support, tools, and services like Webdesign in Mannheimm, the HTML/CSS 3D WebGL Animation Library taccgl, 3D Webdesign, and 3D Product Configurator (3D Produkt Konfigurator in German).

Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display.


© 1996-2024 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
    heitml Functions
      ArAppend
      ArConcat
      ArSearch
      array
      asc
      caltime
      chr
      class
      clone
      contains
      ContainsCase
      copy
      copyfile
      crypt
      _dbcolumns
      _dbforeignkey
      _dbprimarykey
      _dbtables
      _dbtypes
      default
      deletefile
      difftime
      directory
      findex
      flush
      fname
      gmtime
      htmlbool
      http_content_type
      http_empty_document
      http_expires
      http_header
      http_last_modified
      http_location
      http_set_cookie
      http_request_header
      _includefilepreprocessed
      index
      IndexCase
      integer
      isbool
      isdecl
      isempty
      isinteger
      isnull
      isstring
      istuple
      isreal
      left
      len
      localtime
      MD5
      mkdir
      mktime
      movefile
      offstotabcol
      random
      readFileLines
      _readini
      _readodbcdrv
      _readodbcdsn
      real
      resize
      right
      _serverdocroot
      _shelltemp
      srandom
      splitstring
      stat
      strftime
      strptime
      subst
      substall
      substring
      tabcoltooffs
      tolower
      toupper
      trim
      trimleft
      trimright
      TuAppField
      TuAssField
      TuAssign
      TuSlice
      TuDelField
      TuFieldSort
      TuInsField
      TuMerge
      TuName
      TuProject
      utime
      _writeini
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tutorial
  New Features
  heitml 1
User Guide
Services
Privacy
Datenschutz
 
Contact / Impressum