Table of contents

Introduction

Development Environment

Web Development and Improvements in user experience

(Productivity and Enterprise-level Application Development Features)

Ajax Overview, [[21759|GeneXus' target='_blank'>Ajax' target='_blank'>Ajax Overview, [[21759|GeneXus and Ajax]]

Business Components

Business Component - Publication as an Enterprise Java Bean

Practical course: Bluesky Charters
 

Application Localization

Application Localization
Demo
Translation Tool
Help "in any language"
Practical course: Bluesky Charters
 

Patterns

About this topic
Patterns based development
Description
Built in Patterns
Work With Pattern
Demo: Work With Pattern
Practical course: Patterns
 

Better data model

Null handling optimizes navigations
Nulls property

 

User experience

New options on rightclick in win
 

Reverse Engineering

Database Reverse Engineering Tool
 

New Platforms

MySQL
.Net Mobile Generator
More J2EE support than ever
 

Data Types and Methods

Message Queue handling data types

DirectoryDataType
LDAP Data Type

URL access Property
New IIF function
New byte count function
New Methods for attributes, variables and enumerated domains!
XSLTApply Method
Procedures can now call web objects
Web Services: Grouping Locations
News about model, object, and control properties


Official Content

Gets the numbers of bytes needed to represent a specific character expression using a specific encoding.

Syntax

Ret-value = ByteCount(character-expression , encoding);

Type Returned:
Numeric

Where:
Character-expression
    Character type. Is the input string.

Encoding
    Character type. Is the encoding to be used.

Ret-value
    Numeric type. Is the number of bytes needed to represent the given character expression with the specified encoding.

Scope

Objects: ProcedureTransaction, Web Panel, Work Panel 
Generators: .NET, Java, Apple (iOS offline support is available since GeneXus15)

Samples

Suppose you want to know how many bytes are needed to represent "hello world" using the UTF-8 encoding.

&charVar = 'hello world'
&encoding = 'UTF-8'
&result = byteCount(&charVar,&encoding)

The value of &result will be 11 because in UTF-8 a character is stored in a byte.

See Also

Java supported encodings
.NET supported encodings


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant