It is currently Fri Apr 28, 2017 10:38 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: GW Library
Unread postPosted: Sat Nov 26, 2016 5:01 pm 
Offline

Joined: Sat Nov 26, 2016 4:23 pm
Posts: 11
Hi. Not sure how or where to use the GW Lib?...
> Is this for installing to my Android device (LG tablet), or
> Downloading/installing to my laptop - I'm using Basic! Launcher Notepad

Whichever it is, how then do I use or access the library? From memory (30 years last time used) Basic used not to have library options, so I don't understand how to incorporate a Library function/utility/whatever-it's-called. (Link for Dummies on webpage would be useful!)

Sorry to be so dim :oops: Can anyone help? Ta.
chrisRoald


Top
 Profile  
 
 Post subject: Re: GW Library
Unread postPosted: Sat Nov 26, 2016 6:36 pm 
Offline
User avatar

Joined: Thu Nov 24, 2016 8:26 pm
Posts: 49
Location: GA, USA
Hey Chris. There is nothing dim about your question. On an Android device, the files GW.bas and GW_demo.bas should be in the rfo-basic/source folder, for the easiest way to access and include them in a BASIC! project. It's not mandatory, but nobody likes to go clicking through a folder structure all the time and it makes the include in the project a bit trickier too. (Directory tree typos e.g.)

Assuming the GW.bas file is in the rfo-basic/source folder, and so is your new project, the include in the project editor itself, is as simple as typing the following line at the top of the project: INCLUDE "GW.bas"

That's it!

BTW Load the GW_demo.bas code in the BASIC! editor and run it, to see what is possible with the GW.bas library. It's a great tool. Have fun!

P.S. Don't know what folder on a PC would be preferred. If you need to know, have a little patience and someone will chime in.

_________________
A good programmer is someone who always looks both ways before crossing a one-way street.


Top
 Profile  
 
 Post subject: Re: GW Library
Unread postPosted: Sat Nov 26, 2016 8:38 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
Thanks Yoshi that's exactly it ;)

As written in the download link (http://mougino.free.fr/tmp/GW/download.html):

mougino.free.fr wrote:
Download these 2 .bas files to your rfo-basic/source folder:

Then load and run "GW_demo.bas".
In case of problem read the "important notes" at rfobasic.freeforums.org


You may also want to read the command reference aka the "cheatsheet":
http://mougino.free.fr/tmp/GW/cheatsheet.html

The very first line tells you how to call the lib:

mougino.free.fr wrote:
before loading the lib with INCLUDE "GW.bas"


Good luck and don't hesitate to post your questions after your experiments with GW ;)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: GW Library
Unread postPosted: Sat Nov 26, 2016 9:42 pm 
Offline
User avatar

Joined: Thu Nov 24, 2016 8:26 pm
Posts: 49
Location: GA, USA
Hope you didn't mind my answering the question? You're the expert in this field and know all the ins and outs. Yet helping him to get it working seemed appropriate. ;)

_________________
A good programmer is someone who always looks both ways before crossing a one-way street.


Top
 Profile  
 
 Post subject: Re: GW Library
Unread postPosted: Sun Nov 27, 2016 12:17 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
Of course! We're all here to help each other ;)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
suspicion-preferred