Hello ThinBasic developpers.
May I suggest optionnal parameters to Bin_To_Hex$( string ) function ? :confused:
A number of bytes grouping , an a separator string.
Bin_To_Hex$("Hello") ...
Type: Posts; User: dco045
Hello ThinBasic developpers.
May I suggest optionnal parameters to Bin_To_Hex$( string ) function ? :confused:
A number of bytes grouping , an a separator string.
Bin_To_Hex$("Hello") ...
Hi ThinBasic gurus,
Recently I encountered problems with ThinBasic 1.10.7
* The first linked to the Microsoft Security Essentials antivirus (virus definition 1.239.574.0) which prevented me...
Hi great Petr,
Exactly what I was looking for.... But I was searching in "FILE_****" or "OS_***" functions. :drink:
Lot of thanks.
Dany
Hi Petr,
My long Unix / C background leads me to use a syscall/function to set a current workig directory.
There,all manipulation of files needs only to know the relative file name instead of...
Hi Petr, :D
Included : control panel/system screenshot.
My initial wish was to create a three lines console to monitor a data gathering program running in background all day long.
...
Hi,
I encounter today a curious behaviour of Console_SetScreenBufferSize (xSize, ySise) function.
When the row count (ySise) is 24 or less the console window is full height of the screen
and...
Hi, :friends:
I am searching a function to know the current working directory of a bundled exe, :?:
and also a function to force a new value for current working directory.
Thanks for help
...
Hello guys,
Can I introduce me in your conversation.
You can investigate more deeply in serial communication by using another PC
as a spy.
You connect another PC to the comm line...
Hi Eros,
I think it will help me. :)
Best regards
Hi,
Is it possible for a TB script that uses "console" to manage more than one output console ?
For instance, the first/main console for classic user dialog, and other(s) console(s) to...
Hi,
The following thin basic example is from a program wich extracts data from a microprocessor development board.
The uploaded file contains formatted lines. The first field, on 4 chars is the...
Ok ,
fulfills my need
I did not flash with "*" and any_char in the help page :read: :blind:. Bang in my nose.:violent:
Can I suggest that all examples you have sent to me, should be...
Hi Eros,
It's almost what I needed, it just misses the zeros left.
A format 00000#.000 --> 123.45 printed as 000123.450
:D Perhaps in ThinBasic 2.0.0.0.0.0 :D
Hi Eros,
Thanks, I'll write a function :escribe:
Dany
HI Eros,
Function used OK , perhaps could be added as standard string function ?
But numbers formatting still causes trouble.
Hi Eros and Petr,
When I asked for module to use for these functions, I could not imagine that it would cause such an avalanch of ideas...... :comp1:
I can only say that Petr's idea is very...
No more crash ! :cool:
It works, but :
Array Sort symbol_prg() ' empty strings first , then chars in ASCII order OK for ascending
Array Sort symbol_prg() , Descend ' give the same...
Hi Eros ,
In my example, I set strings variables by chr_str = "something" . It was only for testing purpose.
But in my real prog, the string value is loaded from a file whose format for an...
Hi Eros.
Version 1.9.16.17 . I only downloaded 1.10 on a sandbox PC. I am prudent with versions labelled as Beta. But if you say 'quite stable ' ? I'll try it.
The problem comes because I...
Ok , thanks
> > > > But, Eros says :
%MY_CONST = 0X200c000f As Long
PrintL Hex$(%MY_CONST) , %MY_CONST ' works fine
%MY_OTHER_CONST = &h200c000f As Long
Hi Eros,
This behaviour would fulfill my needs, because a previous check does not allow duplicate values in first field (string)
Regards
Dany
HI Eros,
But the reason I posted on these function is that the relevant
uses "tcpudp"
doesn't appear in help files either online or offline.
As I said in my PM of 21 january, I begin...
Hi
Does a function as "val(string)" already exists for extracting number from hexadecimal string ?
Or do I write it by myself ?
hex_str = "&h100"
numb = hexval( hex_str)
if numb = 256...
Hi,
A you can see in enclosed file, I try to sort an array.
This array contains members (10 in my example but more in reality) each member is
type
'members
end type defined.
When I try...
Hi Eros,
Your example works fine. But what about functions :
n = HOST_ADDR [(nIndex)]
s = HOSTIP_TONAME(nIP)
n = HOSTNAME_TOIP(sHost)