NS Basic a good number two?

For everything that's not in any way related to PureBasic. General chat etc...
merihevonen
Enthusiast
Enthusiast
Posts: 326
Joined: Mon Jan 01, 2007 7:20 pm

Post by merihevonen »

ricardo wrote:NSBasic uses the msscript to do the tasks it describes that can do.

Its exactly as if you use msscript from PB.

Its like running vbs script.
So in other words it's like bulls**t.. VBScript is sooo bad :(
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

@ricardo: It's based on VBScript, so it will compile and run script files out of the box, but they
have also extended VBScript with statements, functions and GUI controls, so it's more than
VBScript. It can use most activeX controls available for example, or interface with COM
aware apps such as MS Word/Excel very easily.

Besides this, I find the concept of properties, methods and objects very easy to work with,
and I like the 'sub objectName_event(arglist)' way of handling events too. In my view this is
a much better concept than the procedural/event loop type that PB and many other languages
use.

As for the exe's it produces, they are small (>= 280kb), and depends on no other files to be
distributed as far as understand it from the docs (if you don't use any activeX controls of course)

The biggest problem I've run into so far is with non A-Z characters. I modified a code sample,
and this (the form caption):

Code: Select all

fileSystemObjectSample.text = "Filesystem Object Test - æøå"
produced garbage, it couldn't handle the " æøå" part. I'm shure there's a solution to this, but I
haven't found one in the IDE or docs yet.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Brice Manuel wrote:
NS Basic a good number two?
The phrase "number two" has a slightly different meaning here in the USA. Based on our meaning, I think NS Basic is indeed a good "number two".
Haha.
If you want an OOP basic, have a look at HotBasic.
HotBasic can't even do integer math. (It pretends to do it, but it actually uses the FPU (!).)
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Trond wrote:HotBasic can't even do integer math. (It pretends to do it, but it actually uses the FPU (!).)
ARGL... that is sick!
oh... and have a nice day.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Agreed, that's just bonkers! Kind of like cracking a nut with a bag of nukes!
I may look like a mule, but I'm not a complete ass.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

srod wrote:Agreed, that's just bonkers! Kind of like cracking a nut with a bag of nukes!
"bonkers" is a nice expression.
do you have background-info about that idiom? pls PN me if you have....
...I'm learning more english every day...
oh... and have a nice day.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

utopiomania wrote:@ricardo: It's based on VBScript, so it will compile and run script files out of the box, but they
have also extended VBScript with statements, functions and GUI controls, so it's more than
VBScript. It can use most activeX controls available for example, or interface with COM
aware apps such as MS Word/Excel very easily.

Besides this, I find the concept of properties, methods and objects very easy to work with,
and I like the 'sub objectName_event(arglist)' way of handling events too. In my view this is
a much better concept than the procedural/event loop type that PB and many other languages
use.

As for the exe's it produces, they are small (>= 280kb), and depends on no other files to be
distributed as far as understand it from the docs (if you don't use any activeX controls of course)
As i said before, most of this things can be done using msscript with PB.

Another very nice possiblitie is doing it using LUA and PB.

I develope some basic interpreter in PB/LUA that let me manage GUI very similar than VB. But my executable is less that 80 k without any runtimes needed and all the power of LUA scripting he he
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

merihevonen wrote:VBScript is sooo bad :(
In not agree.

VBS is very powerfull and very easy to use for some tasks, basically interacting with OutLook, Excel, Power Point, etc.

In some situations is very handy and as i said a powerfull tool.

But if can be done within PB no need to get some external 'compiler'.
Brice Manuel

Post by Brice Manuel »

As for the exe's it produces, they are small (>= 280kb)
Ack! That is big, not small!
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

@ Kaeru:

Look here:
http://www.google.com/search?hl=en&q=define%3A+bonkers

Essentially it is slang for insane...
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

The problem is that (without using Microsoft's compilers) as a 'BASIC', NS Basic has no real competition on the Pocket PC - if only PureBasic could compile ARM code...

Maybe the .NET version of PureBasic works on PocketPC?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
theNerd
Enthusiast
Enthusiast
Posts: 131
Joined: Sun Mar 20, 2005 11:43 pm

Post by theNerd »

NS Basic is VBScript with some extensions added. The VBScript is written as a resource to the runtime.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Just an update, the problem with the extended characters was a bug of course and I'm probably going to register this one,
since I've found vbscript to be a very useful and powerful tool.

One very intriguing possibility is to combine vbscript with html to have both the power to do some heavy lifting, and almost
any type of nice GUI you like at the same time.

Don't think this can be done in nsbasic itself, but if I can use nsbasic to learn vbscript (and create som apps along the road),
it will probably make it well worth registering.

PS, and the support seems very good too, they answer right away, no problems :)
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Re: NS Basic a good number two?

Post by utopiomania »

Another update, they are working on a product called NS Basic/App Studio which is for writing
apps for iPhone/Android/BlackBerry devices, and that is cool news indeed. 8)

I mailed them I was interested in betatesting, so I hope to be able to check it out soon.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: NS Basic a good number two?

Post by blueznl »

Well, that would be sweet, but then I'm sure you'd be writing a cross compiler Pure -> NS, wouldn't you? :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply