Recent posts

#1
Stewart Hicks
30 may 2024

#2
Freebasic / Re: Paul Squire's WinFBE
Last post by Johan Klassen - Yesterday at 04:36:52 PM
thank you José Roca for your wonderful framework, it's most useful
and thank you Paul Squires for WinFBE that enables people like me that are not versed in Windows SDK to build GUI applications :)
#4
OxygenBasic Examples / Re: Parse example o2
Last post by Charles Pegge - Yesterday at 09:05:54 AM
It was a very small adjustment to the default-params system. I'm interested in anything that makes the language more flexible, but it puts more responsibility on the user to produce nice code, like playing a violin :)
#5
OxygenBasic Examples / Re: Parse example o2
Last post by Zlatko Vid - Yesterday at 07:59:42 AM
empty params is a bad idea for anything
and i don't know any PL which use empty args ?
#6
OxygenBasic Examples / Re: Parse example o2
Last post by Charles Pegge - Yesterday at 03:33:20 AM
Provide index with a default value and the syntax should work.

But I have now updated Oxygen, so empty params should work now, though I don't think it is a good idea for code readability.
#7
OxygenBasic Examples / Re: Class question
Last post by Charles Pegge - Yesterday at 03:22:40 AM
You can also use new and del for dynamic objects
new myTestdummy ki
...
del ki

NOTE
When translating from PB, and you want 64bit compatibility, use sys instead of long or dword for all handles like hWnd and hInst.
#8
Freebasic / Paul Squire's WinFBE
Last post by José Roca - Yesterday at 01:21:42 AM
Paul Squires has taken a break for programming for a while.

However, his latest versión of the editor (3.1.0) is available at:

https://github.com/PaulSquires/WinFBE/releases

The package contains all you need to start working with FreeBasic: editor, compilers, headers, examples, templates, and my WinFBX framework.

All you need is to download WinFBE_Suite.zip and unzip it in any folder of your choice, e.g. WinFBE_Suite.

#9
OxygenBasic Examples / Class question
Last post by Frank Brübach - June 18, 2024, 05:29:32 PM
i wanted translate a Powerbasic Code and I am Not quite Sure how to translate 'INSTANCE' to oxygen My Idea was dim and it Works See my simple Code example .. Rest I know already

' only a dummy class test, oxygen
'
class myTestdummy
  long a,b,c,my_hInstance

  ' how to translate INSTANCE ? with dim ?
  ' INSTANCE my_hwnd as long
  '
    dim my_hwnd as long ' it's ok here

  method abc(int prox) as long
  return prox*prox
  end method

  method create() as long
  @a=getmemory 100*sizeof long
  end method

  '' PROPERTY GET hInstance () AS DWORD
  ''   PROPERTY = m_hInstance
  '' END PROPERTY
   
  method hInstance() as dword
   return my_hInstance
  end method

end class

'print "ok"

dim myTestdummy ki
print ki.abc 2 ' result 4 it's ok
#10
OxygenBasic Examples / Re: Parse example o2
Last post by Frank Brübach - June 18, 2024, 05:26:01 PM
Hey Charles sorry No Go with your Index=2 Idea but its Not so important for me at this Moment thx