News:

*NEW* Current Version on STEAM16.793

Webchat:
Visit the chat



V7

Previous topic - Next topic

MrTAToad

I see PeekMessage isn't documented...

9940

MOVEFILE/MOVEDIR are needed  :|

Quote
function copy: a$, b$
copyfile a$, b$
killfile a$
endfunction

Yes, it works.. but if you have a huge file/dir it may take long time    
and may not be enough space

Moru

#2
Pressing F1 on this command in the editor: GETLASTERROR$()
doesn't work. It won't go green in the editor either.

There is a link missing on the bottom of the help for GETLASTERROR$():
"See also NETGETLASTERROR$()"

And how do I start macros? Is it possible to pass the active gbas-file?s name and path to the macro?

Kitty Hello

ok, fixed the "won't go green" bug.
The manual text for me is:
Code (glbasic) Select

Returns an error code followed by a short text describing the last error.

Following the defiend error codes:

0 success
3 file does not exist
4 wrong argument
5 string is too long
7 not enough memory
8 wrong dimension
9 out of dimesioned range (makes the program end)
20 no more data available

See also NETGETLASTERROR$()

Not for you?

Moru

Yes, what I meant is that the "See also"-link isn't a link, usually you can just click the link to get to the command.

MrTAToad

What does PlatformInfo$("") return on an iPhone ?

Kitty Hello

see manual for platforminfo$() ?

The macros are described in the manual: GLBasic intern/tools. It should be pretty straightforward when you execute the first one, it shows you the environment variables set.

MrTAToad

Platforminfo$ has :

"LINUX" = Linux operating system
"WIN32" = Windows Desktop (9x, NT, XP, 2003, ...)
"WINCE" = PocketPC
"GP2X" = GP2X
"MACOSX"= Mac OS X

Unfortunately the iPhone isn't detailed...

Moru

Quote from: Kitty Hello on 2009-Jul-21
The macros are described in the manual: GLBasic intern/tools. It should be pretty straightforward when you execute the first one, it shows you the environment variables set.

Yes I read that part but it says nothing about where to put those macro files or where/how to execute them. I have looked all over the tools menu and the buttons but there is nothing about macros?

Kitty Hello

Menu: Tools/Macro/Edit?
If it's not there, it's (again) a bug.

MrTAToad

Yes, its not there :)

Schranz0r

in the german version:

Top Menu:

Werkzeuge/Macros/bearbeiten/

It is not in the Popupmenu!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Moru

The GEN... commands don't feel intuitive, would it be better with FREESPRITE AND FREEFILE or something similar?

The description would be something like this:
Generate the next free index for a sprite or a file.

Code (glbasic) Select
GLOBAL ball = FREESPRITE()
LOADSPRITE "ball.png", ball
DRAWSPRITE ball, 50, 50


I have realy been looking forward to this command :-)

MrTAToad

The online documentation is a bit clearer with it :)

But yes, GENx does seem a bit of a strange name to give it...

Moru

for me NEWSPRITE creates a new sprite, not a handle :-)