193
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
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:
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"
Ddval Function
Function:
Converts "dot-decimal string" into "dot-decimal value".
Syntax:
ddval (byref str as string) as string
Returns:
A string of binary values.
See Also:
Part
Description
str
Dot-decimal string to be converted into a string of binary
values. This string should comprise one or more
dot-separated decimal values in the 0-255 range. Values
that exceed 255 will produce an overflow, so result will be
incorrect. If any other character other than "0"-"9" or "." is
encountered then all digits after this character and up to
the next "." (if any) will be ignored. Leading spaces before
each decimal value are allowed.
Details
This function is convenient for converting string representation of groups of bytes
(such as IP or MAC addresses) into their binary form.
Examples
193
192