Basic using external libraries
David Martinez (2697) 4 posts |
I am trying to learn programming in RISCOS on the Rpi. I would like to start with environments like AppBasic or DrWimp and I am interested in database access (SqLite would be great). I want to avoid the effort of writting and reading my info from plain files from basic. ¿Is there any way to access odbc os similar to deal with databases from basic? Thanks in advance |
Steve Pampling (1551) 8170 posts |
The only resource I can recall for accessing ODBC links from RISC OS is on the web site on this link here |
David Martinez (2697) 4 posts |
Yes, I’ve found it before but I don’t find samples even in C. I am a experienced programmer but I want to check BBC and WIMP together before, but it seems difficult to get samples if possible. Thanks |
GavinWraith (26) 1563 posts |
Found it! In Archive Vol 11, No 12 (July 1998) there was an article Perl and Gdbm by Steve Ellacott. In it he showed how you can use his Gdbm module to implement associative arrays in Basic. Probably not relevant. You have associative arrays for free if you use RiscLua, anyway. For my own databases I tend to use labelled records in text files, using the standard Lua data format: If you load it in with this command in a program then in the program you can write Alternatively All very straightforward.
|
Steve Drain (222) 1620 posts |
Vol 10. ;-) I remember looking at GDBM to see if it could be used to support Basalt database keywords. There were a couple of BASIC libraries written designed around GDBM, one by Justin Fletcher. I do not think the later versions of Perl used the module and the extant one is not 32-bit. I never got around to implementing anything, but it remains in the back of my mind. |
David Martinez (2697) 4 posts |
Could anyone show me how to access theese archive files? I am really novice in this riscos world. Thanks to all |
GavinWraith (26) 1563 posts |
Not files – a magazine! http://www.archivemag.co.uk/ Sorry if you have been misled. |
David Martinez (2697) 4 posts |
Thanks a lot |