As seguinte funções e procedimentos estão disponíveis no arScript. Para maior informação, favor consulta a documentação de Delphi.

O Argow também disponibiliza:

Tipos

  • Boolean
  • Char
  • String
  • WideChar
  • WideString
  • UnicodeString
  • AnsiString
  • ShortInt
  • LongInt (32b)
  • LongWord
  • Integer (32b)
  • Cardinal
  • Int64
  • Single
  • Double
  • Extended
  • Currency
  • Variant
  • TVariantArray   v:= ['Teste', 5, Null];

Funções e Procedimentos

  • String
    • Function ansiUpperCase(s: string): string
    • Function ansiLowerCase(s: string): string
    • Function copy(s: string; iFrom, iCount: longInt): string
    • Procedure delete(var s: string; iFrom, iCount: longInt)
    • Function format(const s: string; const Args: array of const): string;
    • Procedure insert(s: string; var s2: string; iPos: longInt)
    • Function lowerCase(s: string): string
    • Function length(s: string): longInt
    • Procedure setLength(var s: string; i: longInt)
    • Function padl(s: string; i: longInt): string
    • Function padr(s: string; i: longInt): string
    • Function padz(s: string; i: longInt): string
    • Function pos(substr, s: string): longInt
    • Function replicate(c: char; i: longInt): string
    • Function stringOfChar(c: char; i: longInt): string
    • Function strGet(var s: String; i: Integer): char
    • Procedure strSet(c: char; i: integer; var s: string)
    • Function trim(s: string): string
    • Function upperCase(s: string): string
  • Conversão
    • Function intToStr(i: longInt): string
    • Function int64ToStr(i: int64): string
    • Function strToInt(s: string): longInt
    • Function strToInt64(s: string): longInt
    • Function strtoIntDef(s: string; def: longInt): longInt
    • function strToFloat(s: string): extended
    • Function floatToStr(e: extended): string
    • Function stringToGuid(const s: string): TGuid;
    • Function guidToString(const g: TGuid ): string;
  • Lógica
    • Function ifThen( bCondicao, bTrue, bFalse: boolean): boolean
  • Matemática
    • Function abs(x: extended): extended
    • Function cos(x: extended): extended
    • Function exp(x: extended): extended
    • Function frac(x: extended): extended
    • Function int(x: extended): extended
    • Function log( n, x: extended): extended
    • Function pi: extended
    • Function power( base, exp: extended): extended
    • Function round(x: extended): longInt
    • Function sin(x: extended): extended
    • Function sqrt(x: extended): extended
    • Function trunc(x: extended): longInt
  • Data e Hora
    • Function encodeDate(Year, Month, Day: Word): TDateTime
    • Function tryEncodeDate(Year, Month, Day: Word; var Date: TDateTime): Boolean
    • Procedure decodeDate(Date: TDateTime; var Year, Month, Day: Word)
    • Function encodeTime(Hour, Min, Sec, MSec: Word): TDateTime
    • Function tryEncodeTime(Hour, Min, Sec, MSec: Word; var Time: TDateTime): Boolean
    • Procedure decodeTime(Time: TDateTime; var Hour, Min, Sec, MSec: Word)
    • Function dayOfWeek(Date: TDateTime): Integer 1=Sunday; 2=Monday... 7=Saturday
    • Function date: TDateTime
    • Function time: TDateTime
    • Function now: TDateTime (ver sf.now)
    • Function dateToStr(Date: TDateTime): string
    • Function formatDateTime(const Format: string; DateTime: TDateTime): string
      Usar: y, m, d, h, n, s, z (ano, mês, dia, hora, miNuto, segundo, milisegundo)
      Formato Windows: c, t, tt, ddddd, dddddd (Data Corto (DC) + Hora Extenso (HX), HC, HX, DC, DX)
    • Function strToDate(const S: string): TDateTime
    • Function incMonth(const dt: TDateTime; const iNumberOfMonths: integer): TDateTime
    • Function incDay(const dt: TDateTime; const iNumberOfDays: integer): TDateTime
    • Function incMillisecond(const dt: TDateTime; const iNumberOfMilliseconds: int64): TDateTime
    • Function daysInMonth(const iYear, iMonth: word): word
    • Function replaceDate(const dt: variant; const dtNewDate: TDateTime): TDateTime
    • Function replaceDay(const dt: variant; const iDay: word): TDateTime
    • Function replaceTime(const dt: variant; const dtNewTime: TDateTime): TDateTime
    • Function milliSecondsBetween(const ANow, AThen: TDateTime): Int64
    • Function yearOf(const dt: variant): word
    • Function monthOf(const dt: variant): word
    • Function dayOf(const dt: variant): word