Author Topic: Help on Help  (Read 1831 times)

0 Members and 2 Guests are viewing this topic.

Offline Anthon Com

  • Newbie
  • *
  • Posts: 23
  • User-Rate: +0/-0
Re: Help on Help
« Reply #30 on: January 13, 2022, 08:48:19 AM »

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

Offline Anthon Com

  • Newbie
  • *
  • Posts: 23
  • User-Rate: +0/-0
Re: Help on Help
« Reply #31 on: January 13, 2022, 08:50:51 AM »
Also I second Eduardo's move to help VBA programmers to migrate to O2


Offline Nicola_Piano

  • Jr. Member
  • **
  • Posts: 88
  • User-Rate: +0/-0
Re: Help on Help
« Reply #32 on: January 13, 2022, 09:59:35 AM »
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.

Offline Nicola_Piano

  • Jr. Member
  • **
  • Posts: 88
  • User-Rate: +0/-0
Re: Help on Help
« Reply #33 on: January 13, 2022, 10:15:58 AM »
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
« Last Edit: January 25, 2022, 11:26:31 AM by Nicola_Piano »

Offline Nicola_Piano

  • Jr. Member
  • **
  • Posts: 88
  • User-Rate: +0/-0
Re: Help on Help
« Reply #34 on: January 25, 2022, 11:30:40 AM »
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
« Last Edit: February 19, 2022, 03:17:14 PM by Nicola_Piano »

Offline Nicola_Piano

  • Jr. Member
  • **
  • Posts: 88
  • User-Rate: +0/-0
Re: Help on Help
« Reply #35 on: June 27, 2022, 12:16:48 PM »
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

Code: [Select]
type vt long v,double d
dim as vt v : r=recordof v

Offline Charles Pegge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 768
  • User-Rate: +31/-1
    • Charles Pegge
Re: Help on Help
« Reply #36 on: June 27, 2022, 02:40:41 PM »
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
Code: [Select]
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

Offline Nicola_Piano

  • Jr. Member
  • **
  • Posts: 88
  • User-Rate: +0/-0
Re: Help on Help
« Reply #37 on: June 28, 2022, 05:05:39 PM »
Code: [Select]
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
Code: [Select]
983
16
8892
0
0
983
0
0
v
[ebx+8892]

vt

Offline Charles Pegge

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 768
  • User-Rate: +31/-1
    • Charles Pegge
Re: Help on Help
« Reply #38 on: June 28, 2022, 05:38:08 PM »
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.

Offline Nicola_Piano

  • Jr. Member
  • **
  • Posts: 88
  • User-Rate: +0/-0
Re: Help on Help
« Reply #39 on: June 30, 2022, 04:47:34 PM »
ok, then i will correct the example that is on the help.
Ciao