• Welcome to Jose's Read Only Forum 2023.
 

Help on Help

Started by Nicola_Piano, December 12, 2021, 11:57:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anthon Com


Quote
And also i think that any connection with scriptBasic should be removed from
OxygenBasic files , simply because there is no any benefit using this files .
The similar opinion i have about Thinbasic files, o2 should be more for oriented to himself.

by Zlatko

I second this move
This is true, it is pointless to keep a useless script basic

Anthon Com

Also I second Eduardo's move to help VBA programmers to migrate to O2


Nicola_Piano

Yes, being able to work on office documents with a separate VBA program is a great idea.
In fact I had asked how one could read / write on an xls / xlsx document.

Nicola_Piano

#33
Hi Charles,
I have updated the o2 help file.

25-01-2022 new update.


http://www.jose.it-berater.org/smfforum/index.php?topic=5772.msg24462#msg24462

Nicola_Piano

#34
Hi.
Please I would need to have accurate information on the commands / functions implemented with "CONSOLEG.INC"
I tried some examples, they are beautiful.
I'd like to add this help info ...
Charles, please ...  :)
Cheers

Nicola_Piano

Dear Charles,
i was updating the help and i noticed that the examples related to
STRUCTUREOF
ENCODINGOF
RECORDOF
don't work.

Error: not defined
Word: r
line: 2

type vt long v,double d
dim as vt v : r=recordof v


Charles Pegge

Hi Nicola,

without #autodim enabled, r needs to be: dim as string r.

this is a current list of all the attributes from oxsc\lang.inc

sizeof      11 1  4
offsetof    11 2  4
countof     11 3  4
spanof      11 3  4
bytesof     11 4  4
typeof      11 5  193
structureof 11 6  193
encodingof  11 6  193
prototypeof 11 7  193
typecodeof  11 8  4
recordof    11 9  4
widthof     11 10 4
ptrlevelof  11 11 4
metatypeof  11 12 193
strptr      11 21 8
lpartof     11 31 0
rpartof     11 32 0
vtypeof     11 33 0

Nicola_Piano

dim string r
type vt long v,double d
dim as vt v
r=recordof v
print r


now it looks like it's ok.
thanks charles

result is
983
16
8892
0
0
983
0
0
v
[ebx+8892]

vt

Charles Pegge

In the early days, autodim was the default. This makes short demo code easier but it's a serious hazard for any project of significant scale.

Nicola_Piano

ok, then i will correct the example that is on the help.
Ciao

Pierre Bellisle

Hi Nicola,

If you still updating this help file, maybe you can adjust Asc()...

//asc() can be used not only as a function but as a statement also.
string  sString = "12345"
asc(sString, 3) = 120 // give "12x45" (120 is ascii for "x")


Many thanks for your work, it is really appreciated...

Pierre Bellisle

Also, inner is missing...

Regards