Ddstr Function

Top  Previous  Next

Function:

Converts "dot-decimal value" into "dot-decimal string".

Syntax:

ddstr(byref str as string) as string

Returns:

A dot-separated string consisting of decimal representations of all binary values in the input string. Each decimal value will be in the 0-255 range.

See Also:

ddval

 


Part

Description

str

String of binary values to be converted into a dot-decimal string.

Details

This function is convenient for converting groups of bytes representing binary data (such as IP or MAC addresses) into their string representation.

Examples

 

dim s as string

 

s = chr(192)+chr(168)+chr(100)+chr(40) 'produce a string that contains these values: 192,168,100,40

s = ddstr(s) 'now s will be equal to "192.168.100.40"