Search the web
Sign In
New User? Sign Up
nsbasic-ce · Forum for NS Basic/CE users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 20556 - 20590 of 20595   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#20590 From: Andrew Thomas <andrewmarkthomas@...>
Date: Sun Dec 6, 2009 12:46 pm
Subject: RE: Re: Decimal points
andrewmarkth...
Offline Offline
Send Email Send Email
 
Hi Thomas, Hannes and Al,

Thanks for the info. The problem is that the program needs to allow csv files to
be used on different wince and pc computers, and shared between users, so I need
to make the format regionally unspecific. My saving code is:

     for cc=1 to numsamples
       lineArray(0)=startfreq+((cc-1)*stepsize)
       lineArray(1)=return_loss(cc)
       lineArray(2)=phase_angle(cc)
       file.lineprint lineArray(0) & "," lineArray(1) & "," & lineArray(2)
     next

From what you all say it sounds like I need to avoid formatnumber and instead
write a short function to make a string from a floating point number with a
period instead of a comma, as Hannes suggests. I'll post the code when done in
case it's any use to someone else too.

Many thanks for the help.

Andrew.


-----Original Message-----
From: Thomas Gruber <computerhusky@...>
Sent: 06 December 2009 09:18
To: nsbasic-ce@yahoogroups.com
Subject: Re: [nsbasic-ce] Re: Decimal points

Hello Andrew,
I've just run this mini test program:

val = 112456.678
Print val
Print FormatNumber(val,2)

and this is the result, on a German Windows 2000 machine:

112456,678
112.456,68

so the formatting with and without FormatNumber does reflect the national
language settings for decimal and thousands separators. This should normally not
be a problem in CSV files if they are then opened with an application on the
same machine (like Excel), or on one with the same language settings But for
obvious reasons you can't use the comma as a field separator unless you put the
numbers in quotes.
Kind regards
Thomas

Am 06.12.2009 um 07:11AM schrieb rmrsoft:

> Interestingly I have only ever used a plain FORMATNUMBER(Val,2) command in my
export routines and although my programs are used all over the world I have
never had a single case reported of a CSV file not loading.
>
> Might be worth running a test case on a German machine ?
>
> Al
>
> --- In nsbasic-ce@yahoogroups.com, Andrew Thomas <andrewmarkthomas@...> wrote:
> >
> > Hi,
> >
> > Thank you very much. I was hoping for a simple single line command but there
seems not to be one. I'll use your method as it sounds a reliable way to do it.
> >
> > Many thanks,
> >
> > Andrew.
> >
> >
> >
> >
> > -----Original Message-----
> > From: Hannes Streicher <hstreicher@...>
> > Sent: 05 December 2009 11:59
> > To: Andrew Thomas <nsbasic-ce@yahoogroups.com>
> > Subject: Re: [nsbasic-ce] Decimal points
> >
> > Guten Tag Andrew Thomas,
> >
> > am Samstag, 5. Dezember 2009 um 12:46 schrieben Sie:
> >
> >
> >
> > > Can I ask if anyone knows how to make writing numbers to files
> > > always have a decimal point as the decimal separator? It seems that
> > > some regional settings use a comma, which plays havoc with csv files.
> >
> > i am german , we use commas :(
> >
> > i usually end up adding in a function exchanging the comma with a
> > point (stringreplace)
> >
> >
> >
> > --
> > Mit freundlichen Grüssen
> > Hannes Streicher
> >
>
>

#20589 From: Thomas Gruber <computerhusky@...>
Date: Sun Dec 6, 2009 9:18 am
Subject: Re: Re: Decimal points
computerhusky
Offline Offline
Send Email Send Email
 
Hello Andrew,
I've just run this mini test program:

val = 112456.678
Print val
Print FormatNumber(val,2)

and this is the result, on a German Windows 2000 machine:

112456,678 
112.456,68

so the formatting with and without FormatNumber does reflect the national language settings for decimal and thousands separators. This should normally not be a problem in CSV files if they are then opened with an application on the same machine (like Excel), or on one with the same language settings. But for obvious reasons you can't use the comma as a field separator unless you put the numbers in quotes. 
Kind regards
Thomas

Am 06.12.2009 um 07:11AM schrieb rmrsoft:

 

Interestingly I have only ever used a plain FORMATNUMBER(Val,2) command in my export routines and although my programs are used all over the world I have never had a single case reported of a CSV file not loading.

Might be worth running a test case on a German machine ?

Al

--- In nsbasic-ce@yahoogroups.com, Andrew Thomas <andrewmarkthomas@...> wrote:
>
> Hi,
>
> Thank you very much. I was hoping for a simple single line command but there seems not to be one. I'll use your method as it sounds a reliable way to do it.
>
> Many thanks,
>
> Andrew.
>
>
>
>
> -----Original Message-----
> From: Hannes Streicher <hstreicher@...>
> Sent: 05 December 2009 11:59
> To: Andrew Thomas <nsbasic-ce@yahoogroups.com>
> Subject: Re: [nsbasic-ce] Decimal points
>
> Guten Tag Andrew Thomas,
>
> am Samstag, 5. Dezember 2009 um 12:46 schrieben Sie:
>
>
>
> > Can I ask if anyone knows how to make writing numbers to files
> > always have a decimal point as the decimal separator? It seems that
> > some regional settings use a comma, which plays havoc with csv files.
>
> i am german , we use commas :(
>
> i usually end up adding in a function exchanging the comma with a
> point (stringreplace)
>
>
>
> --
> Mit freundlichen Grüssen
> Hannes Streicher
>



#20588 From: Thomas Gruber <computerhusky@...>
Date: Sun Dec 6, 2009 9:00 am
Subject: Re: Re: Decimal points
computerhusky
Offline Offline
Send Email Send Email
 
Hello Andrew,
do you have a small test program that I could run? I'm running NSBasic on a German machine.
I usually don't use the comma as the field separator in CSV files, but the semicolon, to avoid confusion with commas in numbers. Adding quotes around all fields (not just text strings) could also help.
Kind regards
Thomas
Am 06.12.2009 um 07:11AM schrieb rmrsoft:

 

Interestingly I have only ever used a plain FORMATNUMBER(Val,2) command in my export routines and although my programs are used all over the world I have never had a single case reported of a CSV file not loading.

Might be worth running a test case on a German machine ?

Al

--- In nsbasic-ce@yahoogroups.com, Andrew Thomas <andrewmarkthomas@...> wrote:
>
> Hi,
>
> Thank you very much. I was hoping for a simple single line command but there seems not to be one. I'll use your method as it sounds a reliable way to do it.
>
> Many thanks,
>
> Andrew.
>
>
>
>
> -----Original Message-----
> From: Hannes Streicher <hstreicher@...>
> Sent: 05 December 2009 11:59
> To: Andrew Thomas <nsbasic-ce@yahoogroups.com>
> Subject: Re: [nsbasic-ce] Decimal points
>
> Guten Tag Andrew Thomas,
>
> am Samstag, 5. Dezember 2009 um 12:46 schrieben Sie:
>
>
>
> > Can I ask if anyone knows how to make writing numbers to files
> > always have a decimal point as the decimal separator? It seems that
> > some regional settings use a comma, which plays havoc with csv files.
>
> i am german , we use commas :(
>
> i usually end up adding in a function exchanging the comma with a
> point (stringreplace)
>
>
>
> --
> Mit freundlichen Grüssen
> Hannes Streicher
>



#20587 From: "rmrsoft" <alan@...>
Date: Sun Dec 6, 2009 6:11 am
Subject: Re: Decimal points
rmrsoft
Offline Offline
Send Email Send Email
 
Interestingly I have only ever used a plain FORMATNUMBER(Val,2) command in my
export routines and although my programs are used all over the world I have
never had a single case reported of a CSV file not loading.

Might be worth running a test case on a German machine ?

Al

--- In nsbasic-ce@yahoogroups.com, Andrew Thomas <andrewmarkthomas@...> wrote:
>
> Hi,
>
> Thank you very much. I was hoping for a simple single line command but there
seems not to be one. I'll use your method as it sounds a reliable way to do it.
>
> Many thanks,
>
> Andrew.
>
>
>
>
> -----Original Message-----
> From: Hannes Streicher <hstreicher@...>
> Sent: 05 December 2009 11:59
> To: Andrew Thomas <nsbasic-ce@yahoogroups.com>
> Subject: Re: [nsbasic-ce] Decimal points
>
> Guten Tag Andrew Thomas,
>
> am Samstag, 5. Dezember 2009 um 12:46 schrieben Sie:
>
>
>
> > Can I ask if anyone knows how to make writing numbers to files
> > always have a decimal point as the decimal separator? It seems that
> > some regional settings use a comma, which plays havoc with csv files.
>
> i am german , we use commas :(
>
> i usually end up adding in a function exchanging the comma with a
> point  (stringreplace)
>
>
>
> --
> Mit freundlichen Grüssen
> Hannes Streicher
>

#20586 From: Andrew Thomas <andrewmarkthomas@...>
Date: Sat Dec 5, 2009 3:18 pm
Subject: RE: Decimal points
andrewmarkth...
Offline Offline
Send Email Send Email
 
Hi,

Thank you very much. I was hoping for a simple single line command but there
seems not to be one. I'll use your method as it sounds a reliable way to do it.

Many thanks,

Andrew.




-----Original Message-----
From: Hannes Streicher <hstreicher@...>
Sent: 05 December 2009 11:59
To: Andrew Thomas <nsbasic-ce@yahoogroups.com>
Subject: Re: [nsbasic-ce] Decimal points

Guten Tag Andrew Thomas,

am Samstag, 5. Dezember 2009 um 12:46 schrieben Sie:



> Can I ask if anyone knows how to make writing numbers to files
> always have a decimal point as the decimal separator? It seems that
> some regional settings use a comma, which plays havoc with csv files.

i am german , we use commas :(

i usually end up adding in a function exchanging the comma with a
point  (stringreplace)



--
Mit freundlichen Grüssen
Hannes Streicher

#20585 From: Hannes Streicher <hstreicher@...>
Date: Sat Dec 5, 2009 11:59 am
Subject: Re: Decimal points
hstreicher
Offline Offline
Send Email Send Email
 
Guten Tag Andrew Thomas,

am Samstag, 5. Dezember 2009 um 12:46 schrieben Sie:



> Can I ask if anyone knows how to make writing numbers to files
> always have a decimal point as the decimal separator? It seems that
> some regional settings use a comma, which plays havoc with csv files.

i am german , we use commas :(

i usually end up adding in a function exchanging the comma with a
point  (stringreplace)



--
Mit freundlichen Grüssen
Hannes Streicher

#20584 From: Andrew Thomas <andrewmarkthomas@...>
Date: Sat Dec 5, 2009 11:46 am
Subject: Decimal points
andrewmarkth...
Offline Offline
Send Email Send Email
 
Hi,

Can I ask if anyone knows how to make writing numbers to files always have a
decimal point as the decimal separator? It seems that some regional settings use
a comma, which plays havoc with csv files.

Many thanks,

Andrew.

#20583 From: "lasersword2001" <lasersword2001@...>
Date: Fri Dec 4, 2009 5:12 pm
Subject: Re: Size of NSB CE files
lasersword2001
Offline Offline
Send Email Send Email
 
I just wrote a flashcard program, which has....a lot of other functions among
the standard flashcard app, and.... it's still less than 400kb. It has 5 forms. 
ARe you writing a game?  :P
hehe

--- In nsbasic-ce@yahoogroups.com, "George Henne" <gh@...> wrote:
>
> What version of NS Basic/CE are you using? Over the past few releases,
> we've done a lot to reduce program size.
>
> >Hi George,
> >
> >We have developed a complex app in NSB, and found that the limit of the
> >size of the application file is 2MB, which we are approaching now.
> >(Splitting the app is not an option)
> >When files get bigger than 1.5 MB things slow down and some devices
> >crash with out of memory errors, especially when the huge SQLite 3 dlls
> >are used.
> >Programs take more than 10MB working memory when running.
> >
> >I noticed that the old eVB programs take up almost exactly half as much
> >space as the same NSB programs do, i.e a test.nsb is 100K then a test.vb
> >file containing the same code is 50K. Is this because NSB uses Unicode
> >files rather than ANSI ?
> >
> >Would there be any way to change the NSB to use ANSI to save space or
> >any other trick ?
> >
> >Thanks...
> >   Jingjok
> >
> >
> >
> >------------------------------------
> >
> >Yahoo! Groups Links
> >
> >
> >
>

#20582 From: Overland05 <overland05@...>
Date: Fri Dec 4, 2009 5:03 pm
Subject: (No subject)
overland05
Offline Offline
Send Email Send Email
 
#20581 From: "bwolodko" <ben.wolodko@...>
Date: Fri Dec 4, 2009 4:55 pm
Subject: Re: Skins
bwolodko
Offline Offline
Send Email Send Email
 
--- In nsbasic-ce@yahoogroups.com, "bwolodko" <ben.wolodko@...> wrote:
>
>
>
> --- In nsbasic-ce@yahoogroups.com, "lasersword2001" <lasersword2001@> wrote:
> >
> > Is there any way to make NSbasic apps skinable? The standard windows widgets
are really boring looking. Skins would be cool a great thing to add.
> >
> > :)
> >
>
> You could make all or most of your buttons, picture elements.
>
> AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1","GeoL",60,40,400,150
>
> with additional software, like Easy Button Creator you can produce screens
with any graphical element occupying the picturebox. The only down side I had,
was that on the CuWin3500, I could only use bmp files, and for rounded corner
elements, I had to match the color of the Output background color with the
button picture element back ground color, so the rounded button would look like
it is floating over a picture or colored backgound.
>
> If your device can use png or gif files, you may be able to have a transparent
background picture element as your buttons.
>

Hi, I added a Screen Shot photo to the Photo section of this forum

Hope this helps

Ben

#20580 From: "bwolodko" <ben.wolodko@...>
Date: Fri Dec 4, 2009 4:50 pm
Subject: Re: Skins
bwolodko
Offline Offline
Send Email Send Email
 
--- In nsbasic-ce@yahoogroups.com, "lasersword2001" <lasersword2001@...> wrote:
>
> Is there any way to make NSbasic apps skinable? The standard windows widgets
are really boring looking. Skins would be cool a great thing to add.
>
> :)
>

You could make all or most of your buttons, picture elements.

AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1","GeoL",60,40,400,150

with additional software, like Easy Button Creator you can produce screens with
any graphical element occupying the picturebox. The only down side I had, was
that on the CuWin3500, I could only use bmp files, and for rounded corner
elements, I had to match the color of the Output background color with the
button picture element back ground color, so the rounded button would look like
it is floating over a picture or colored backgound.

If your device can use png or gif files, you may be able to have a transparent
background picture element as your buttons.

#20579 From: "lasersword2001" <lasersword2001@...>
Date: Fri Dec 4, 2009 4:19 pm
Subject: Skins
lasersword2001
Offline Offline
Send Email Send Email
 
Is there any way to make NSbasic apps skinable? The standard windows widgets are
really boring looking. Skins would be cool a great thing to add.

:)

#20578 From: "robertmslack" <robertmslack@...>
Date: Wed Dec 2, 2009 11:07 am
Subject: Ipaq Voice Messenger
robertmslack
Offline Offline
Send Email Send Email
 
I'm considering an HP Ipaq Voice Messenger phone.

I was just wondering if anyone has any experience of using or programming it?

Regards,
Robert

#20577 From: "George Henne" <gh@...>
Date: Sat Nov 28, 2009 10:21 am
Subject: Re: Size of NSB CE files
ghenne
Offline Offline
Send Email Send Email
 
What version of NS Basic/CE are you using? Over the past few releases,
we've done a lot to reduce program size.

>Hi George,
>
>We have developed a complex app in NSB, and found that the limit of the
>size of the application file is 2MB, which we are approaching now.
>(Splitting the app is not an option)
>When files get bigger than 1.5 MB things slow down and some devices
>crash with out of memory errors, especially when the huge SQLite 3 dlls
>are used.
>Programs take more than 10MB working memory when running.
>
>I noticed that the old eVB programs take up almost exactly half as much
>space as the same NSB programs do, i.e a test.nsb is 100K then a test.vb
>file containing the same code is 50K. Is this because NSB uses Unicode
>files rather than ANSI ?
>
>Would there be any way to change the NSB to use ANSI to save space or
>any other trick ?
>
>Thanks...
>   Jingjok
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

#20576 From: "jingjok67" <jingjok67@...>
Date: Sat Nov 28, 2009 10:03 am
Subject: Size of NSB CE files
jingjok67
Offline Offline
Send Email Send Email
 
Hi George,

We have developed a complex app in NSB, and found that the limit of the size of
the application file is 2MB, which we are approaching now.
(Splitting the app is not an option)
When files get bigger than 1.5 MB things slow down and some devices crash with
out of memory errors, especially when the huge SQLite 3 dlls are used.
Programs take more than 10MB working memory when running.

I noticed that the old eVB programs take up almost exactly half as much space as
the same NSB programs do, i.e a test.nsb is 100K then a test.vb file containing
the same code is 50K. Is this because NSB uses Unicode files rather than ANSI ?

Would there be any way to change the NSB to use ANSI to save space or any other
trick ?

Thanks...
    Jingjok

#20575 From: "George Henne" <gh@...>
Date: Mon Nov 23, 2009 10:54 am
Subject: Re: Tutorials?
ghenne
Offline Offline
Send Email Send Email
 
There is a set of tutorials on under the Help menu.

There is one for reading and writing to a file. Have a look at the
PictureBox for the other things you are interested in.



>Hi, i'm very new to NSbasic, and i was wondering where is a full
>tutorial on the usage of the language?  For example, where can i find
>some code examples to do some very common functions ?
>
>e.g.  -
>
>Read/Write to a file
>Get Mouse Coordinates
>Draw Pixels to a  Drawing Canvas
>
>I'm trying to write a Flashcard and Dictionary App for a Windows CE 5/6
>device
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

#20574 From: "lasersword2001" <lasersword2001@...>
Date: Mon Nov 23, 2009 10:42 am
Subject: Tutorials?
lasersword2001
Offline Offline
Send Email Send Email
 
Hi, i'm very new to NSbasic, and i was wondering where is a full tutorial on the
usage of the language?  For example, where can i find some code examples to do
some very common functions ?

e.g.  -

Read/Write to a file
Get Mouse Coordinates
Draw Pixels to a  Drawing Canvas

I'm trying to write a Flashcard and Dictionary App for a Windows CE 5/6 device

#20573 From: "George Henne" <gh@...>
Date: Wed Nov 18, 2009 5:16 pm
Subject: Re: Re: Run-time error: 339 on very 1st use attempt after install
ghenne
Offline Offline
Send Email Send Email
 
Thanks for the goods news (and the detailed explanation.)

George Henne
NS BASIC Corporation
http://www.nsbasic.com

>Thank you, George, that fixed it.
>
>If I were a more experienced developer, I would've known what this was
>about, but my experience with recent versions of VB (within last 10
>years) is just sparse scripting, with no use of custom controls.
>
>When I ran regsvr32 with just "sysinfo.ocx", I got the successful
>completion message, but still got the same error message when launching
>NSB, even after restarting the computer.
>
>What fixed it was... doing that procedure again but (1) running the
>command prompt as administrator and (2) specifying the complete path
>name with the file name.
>
>Thanks again for this fix. I was all disappounted/frustrated when I got
>the error last night, after having just purchased & installed NSB, and
>it appeared as though there was something missing from the install!!!
>Turns out, instead, it was because that control was already in an
>unregistered state on my machine.
>
>     ---Bob---
>
>
>--- In nsbasic-ce@yahoogroups.com, "George Henne" <gh@...> wrote:
>>
>> What is the version of that file on your system?
>>
>> The version we have here is 6.0.81.69.
>>
>> The next step would be to try registering it. From the cmd line, enter
>> regsvr32 sysinfo.ocx
>>
>> George Henne
>> NS BASIC Corporation
>> http://www.nsbasic.com
>>
>> >Just tonight I bought, downloaded and installed 8.1. Every time I try to
>> >launch it, I get this error, saying that file "SYSINFO.OCX" or one of
>> >it's dependencies not correctly registered. That file IS in my windows/
>> >system32 folder. I'm on Vista Home Premium.
>> >
>> >   -Bob-
>> >
>> >
>> >
>> >------------------------------------
>> >
>> >Yahoo! Groups Links
>> >
>> >
>> >
>>
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

#20572 From: "thunderbird915" <risc@...>
Date: Wed Nov 18, 2009 5:10 pm
Subject: Re: Run-time error: 339 on very 1st use attempt after install
thunderbird915
Offline Offline
Send Email Send Email
 
Thank you, George, that fixed it.

If I were a more experienced developer, I would've known what this was about,
but my experience with recent versions of VB (within last 10 years) is just
sparse scripting, with no use of custom controls.

When I ran regsvr32 with just "sysinfo.ocx", I got the successful completion
message, but still got the same error message when launching NSB, even after
restarting the computer.

What fixed it was... doing that procedure again but (1) running the command
prompt as administrator and (2) specifying the complete path name with the file
name.

Thanks again for this fix. I was all disappounted/frustrated when I got the
error last night, after having just purchased & installed NSB, and it appeared
as though there was something missing from the install!!!  Turns out, instead,
it was because that control was already in an unregistered state on my machine.

      ---Bob---


--- In nsbasic-ce@yahoogroups.com, "George Henne" <gh@...> wrote:
>
> What is the version of that file on your system?
>
> The version we have here is 6.0.81.69.
>
> The next step would be to try registering it. From the cmd line, enter
> regsvr32 sysinfo.ocx
>
> George Henne
> NS BASIC Corporation
> http://www.nsbasic.com
>
> >Just tonight I bought, downloaded and installed 8.1. Every time I try to
> >launch it, I get this error, saying that file "SYSINFO.OCX" or one of
> >it's dependencies not correctly registered. That file IS in my windows/
> >system32 folder. I'm on Vista Home Premium.
> >
> >   -Bob-
> >
> >
> >
> >------------------------------------
> >
> >Yahoo! Groups Links
> >
> >
> >
>

#20571 From: "George Henne" <gh@...>
Date: Wed Nov 18, 2009 9:58 am
Subject: Re: Run-time error: 339 on very 1st use attempt after install
ghenne
Offline Offline
Send Email Send Email
 
What is the version of that file on your system?

The version we have here is 6.0.81.69.

The next step would be to try registering it. From the cmd line, enter
regsvr32 sysinfo.ocx

George Henne
NS BASIC Corporation
http://www.nsbasic.com

>Just tonight I bought, downloaded and installed 8.1. Every time I try to
>launch it, I get this error, saying that file "SYSINFO.OCX" or one of
>it's dependencies not correctly registered. That file IS in my windows/
>system32 folder. I'm on Vista Home Premium.
>
>   -Bob-
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

#20570 From: "thunderbird915" <risc@...>
Date: Wed Nov 18, 2009 8:35 am
Subject: Run-time error: 339 on very 1st use attempt after install
thunderbird915
Offline Offline
Send Email Send Email
 
Just tonight I bought, downloaded and installed 8.1. Every time I try to launch
it, I get this error, saying that file "SYSINFO.OCX" or one of it's dependencies
not correctly registered. That file IS in my windows/system32 folder. I'm on
Vista Home Premium.

    -Bob-

#20569 From: "George Henne" <gh@...>
Date: Mon Nov 16, 2009 10:16 am
Subject: NS Basic/CE 8.1.1 posted
ghenne
Offline Offline
Send Email Send Email
 
We've just uploaded NS Basic/CE 8.1.1.

Here is what is new:

1. Support added for Windows Mobile 6.5 Start Screen png icons.
2. Tech Note 30 updated with information on WM 6.5 icons.
3. Installer: Start Screen update no longer requires a reset in most cases.
4. IDE: Error 91 when doing View Code fixed.
5. IDE: Problems with application icon fixed.

Use the same URL to download it as you did for 8.1. The password is also
unchanged.

Thanks to those who helped us with these changes!

George Henne
NS BASIC Corporation
http://www.nsbasic.com

#20564 From: "George Henne" <gh@...>
Date: Sat Nov 14, 2009 11:32 am
Subject: NS Basic/CE 8.1.0a posted
ghenne
Offline Offline
Send Email Send Email
 
We've just uploaded NS Basic/CE 8.1.0a.

It fixes a couple of problems. Under certain circumstances, View Code
could cause an Error 91, and application icons were not appearing on
certain devices.

Use the same URL to download it as you did for 8.1. The password is unchanged.

Thanks to those who helped us run down these problems!

George Henne
NS BASIC Corporation
http://www.nsbasic.com

#20562 From: "George Henne" <gh@...>
Date: Thu Nov 12, 2009 3:13 pm
Subject: Re: HiRes programming on CE device
ghenne
Offline Offline
Send Email Send Email
 
Thanks, Andrew - great post!

>
>
>Hi,
> 
>Thanks to George's excellent suggestion, I spent a couple of hours last
>night playing with how to program, or edit, NSB programs on the device
>to use HiRes. Basically, once I'd worked out that using a form in the
>stub exe was a no-no, I came up with the following which I've posted in
>case anyone else wants to do this:
> 
>1) In NSB CE 8.1 on the PC create a new FORMLESS project and set the
>hires aware property to true.
> 
>2) Enter the following lines of code (just three - don't you just love
>how simple NSB can be :-):
> 
>Dim nsbtorun
>nsbtorun = Left(CurrentPath, Len(CurrentPath)-3) & "nsb"
>
>Chain nsbtorun,False
>
>3) Click the triangle run button to create the ce exe file, and
>then copy it to your device. By the way, it doesn't work if you set the
>end parameter of chain to true.
>
>4) Put your nsb file in the same place as the exe file on the device,
>and rename one of the files so that they both have the same name, but
>one with an exe, and one with an nsb, file extension.
>
>5) Run the exe file to run the nsb code in hires, or run the nsb file to
>run in standard res.
>
>6) If you have more programs to run in hires, you can just copy and
>rename the stub exe on the device and it will still work perfectly. OK,
>you have to use up 200k for each stub, but on a memory card these days
>that's not much.
>
>7) You can now edit the nsb code as usual, but also test in hires when
>needed. Once a program is finished I plan then to compile it on the PC
>to remove the stub file and add resources, etc. However, when I'm
>developing programs, this method allows me to do so on the device and
>still have hires. Maybe most people don't use the device IDE much, but I
>find it invaluable for coding and making minor edits when away from a PC.
>
>8) As George has said, the width and height properties can be used to
>find out the screen size, so as to write the code to allow for different
>control layouts. I've found that I don't get just a scaled version of my
>controls, but have to change the fontsize of controls, and their
>spacing, for it to work OK in hires, but it isn't difficult to set the
>control sizes and positions at runtime dependent on screen size.
>
>Anyway, I hope that's useful to someone.
>
>Best wishes,
>
>Andrew.
>
> 
>
>
>
>

#20561 From: "Andrew Thomas" <andrewmarkthomas@...>
Date: Thu Nov 12, 2009 3:04 pm
Subject: HiRes programming on CE device
andrewmarkth...
Offline Offline
Send Email Send Email
 
Hi,
 
Thanks to George's excellent suggestion, I spent a couple of hours last night playing with how to program, or edit, NSB programs on the device to use HiRes. Basically, once I'd worked out that using a form in the stub exe was a no-no, I came up with the following which I've posted in case anyone else wants to do this:
 
1) In NSB CE 8.1 on the PC create a new FORMLESS project and set the hires aware property to true.
 
2) Enter the following lines of code (just three - don't you just love how simple NSB can be :-):
 
Dim nsbtorun

nsbtorun = Left(CurrentPath, Len(CurrentPath)-3) & "nsb"

Chain nsbtorun,False

3) Click the triangle run button to create the ce exe file, and then copy it to your device. By the way, it doesn't work if you set the end parameter of chain to true.

4) Put your nsb file in the same place as the exe file on the device, and rename one of the files so that they both have the same name, but one with an exe, and one with an nsb, file extension.

5) Run the exe file to run the nsb code in hires, or run the nsb file to run in standard res.

6) If you have more programs to run in hires, you can just copy and rename the stub exe on the device and it will still work perfectly. OK, you have to use up 200k for each stub, but on a memory card these days that's not much.

7) You can now edit the nsb code as usual, but also test in hires when needed. Once a program is finished I plan then to compile it on the PC to remove the stub file and add resources, etc. However, when I'm developing programs, this method allows me to do so on the device and still have hires. Maybe most people don't use the device IDE much, but I find it invaluable for coding and making minor edits when away from a PC.

8) As George has said, the width and height properties can be used to find out the screen size, so as to write the code to allow for different control layouts. I've found that I don't get just a scaled version of my controls, but have to change the fontsize of controls, and their spacing, for it to work OK in hires, but it isn't difficult to set the control sizes and positions at runtime dependent on screen size.

Anyway, I hope that's useful to someone.

Best wishes,

Andrew.

 


#20560 From: Andrew Thomas <andrewmarkthomas@...>
Date: Wed Nov 11, 2009 8:41 pm
Subject: RE: Re(2): NS Basic/CE 8.1 uploaded
andrewmarkth...
Offline Offline
Send Email Send Email
 
Hi George,

Thank you very much for replying. It would be very nice to have it in the device
ide, and fiddling with declare might be difficult without knowing what special
resource NSB inserts. However, the chain idea sounds excellent. At least I now
have the option to play with those ideas, so thanks once again for some
wonderful improvements.

Best wishes,

Andrew.




-----Original Message-----
From: George Henne <gh@...>
Sent: 11 November 2009 20:23
To: nsbasic-ce@yahoogroups.com <nsbasic-ce@yahoogroups.com>
Subject: Re(2): [nsbasic-ce] NS Basic/CE 8.1 uploaded

Hi Andrew,

Yes, that's correct. Hi Res is accomplished by inserting a special
resource. The desktop IDE does this - but it's a bit complex to do. If
you don't want to wait for us, you could probably accomplish it with
some DECLARE statements.

A stub running on the device could certainly call a program you have
written. If you using the CHAIN statement, it would remain in Hi Res mode.

George Henne
NS BASIC Corporation
http://www.nsbasic.com

>
>
>Hi,
> 
>I'd just like to say that these new html and hi-res features are
>excellent: thank you very much indeed :-)
> 
>There's now just one little thing I would like to ask of the NS Santa. I
>would very much like to be able to make apps hires aware from the
>windows mobile ide, as I do much of my programming on the device (which
>is the main reason I bought NSB in fact). Having looked through the
>project files, I have come to the conclusion that it is the exe file
>that has the hires resource inserted, probably as a resource. That seems
>to mean I can only make a high res app on the PC.
> 
>As the PC IDE compiled exe now includes the runtime and nsbasic code, it
>means I can't create a stub exe on the pc and then modify the NSB source
>code on the pocket pc, so it seems I am doomed not to be able to program
>hires on the device. However, maybe it would be possible to execute an
>external NSB app from a PC compiled one - if so, would the interpreter
>for that called app still be hires aware?
> 
>What would be really nice in the next version of NSB CE would be a
>device ide that allows resources to be compiled into an exe on the
>device, including hires. I would even be willing to pay extra for that.
>Sorry if it turns out that I'm wrong and you can set hires somehow in
>the device ide. Also, please don't let this request degrade from the
>excellent new features.
> 
>Many thanks,
> 
>Andrew.
> 
> 
>
>
>

#20559 From: "George Henne" <gh@...>
Date: Wed Nov 11, 2009 8:23 pm
Subject: Re(2): NS Basic/CE 8.1 uploaded
ghenne
Offline Offline
Send Email Send Email
 
Hi Andrew,

Yes, that's correct. Hi Res is accomplished by inserting a special
resource. The desktop IDE does this - but it's a bit complex to do. If
you don't want to wait for us, you could probably accomplish it with
some DECLARE statements.

A stub running on the device could certainly call a program you have
written. If you using the CHAIN statement, it would remain in Hi Res mode.

George Henne
NS BASIC Corporation
http://www.nsbasic.com

>
>
>Hi,
> 
>I'd just like to say that these new html and hi-res features are
>excellent: thank you very much indeed :-)
> 
>There's now just one little thing I would like to ask of the NS Santa. I
>would very much like to be able to make apps hires aware from the
>windows mobile ide, as I do much of my programming on the device (which
>is the main reason I bought NSB in fact). Having looked through the
>project files, I have come to the conclusion that it is the exe file
>that has the hires resource inserted, probably as a resource. That seems
>to mean I can only make a high res app on the PC.
> 
>As the PC IDE compiled exe now includes the runtime and nsbasic code, it
>means I can't create a stub exe on the pc and then modify the NSB source
>code on the pocket pc, so it seems I am doomed not to be able to program
>hires on the device. However, maybe it would be possible to execute an
>external NSB app from a PC compiled one - if so, would the interpreter
>for that called app still be hires aware?
> 
>What would be really nice in the next version of NSB CE would be a
>device ide that allows resources to be compiled into an exe on the
>device, including hires. I would even be willing to pay extra for that.
>Sorry if it turns out that I'm wrong and you can set hires somehow in
>the device ide. Also, please don't let this request degrade from the
>excellent new features.
> 
>Many thanks,
> 
>Andrew.
> 
> 
>
>
>

#20558 From: "Andrew Thomas" <andrewmarkthomas@...>
Date: Wed Nov 11, 2009 7:01 pm
Subject: Re: NS Basic/CE 8.1 uploaded
andrewmarkth...
Offline Offline
Send Email Send Email
 
Hi,
 
I'd just like to say that these new html and hi-res features are excellent: thank you very much indeed :-)
 
There's now just one little thing I would like to ask of the NS Santa. I would very much like to be able to make apps hires aware from the windows mobile ide, as I do much of my programming on the device (which is the main reason I bought NSB in fact). Having looked through the project files, I have come to the conclusion that it is the exe file that has the hires resource inserted, probably as a resource. That seems to mean I can only make a high res app on the PC.
 
As the PC IDE compiled exe now includes the runtime and nsbasic code, it means I can't create a stub exe on the pc and then modify the NSB source code on the pocket pc, so it seems I am doomed not to be able to program hires on the device. However, maybe it would be possible to execute an external NSB app from a PC compiled one - if so, would the interpreter for that called app still be hires aware?
 
What would be really nice in the next version of NSB CE would be a device ide that allows resources to be compiled into an exe on the device, including hires. I would even be willing to pay extra for that. Sorry if it turns out that I'm wrong and you can set hires somehow in the device ide. Also, please don't let this request degrade from the excellent new features.
 
Many thanks,
 
Andrew.
 
 

#20557 From: "George Henne" <gh@...>
Date: Tue Nov 10, 2009 4:40 pm
Subject: NS Basic/CE 8.1 uploaded
ghenne
Offline Offline
Send Email Send Email
 
We have just uploaded NS Basic/CE 8.1.0.

It has several nice new features, as well as a number of fixes. The most
exciting addition is the HTMLview control, which lets you put display
html formatted text in a control. With its ability to process links and
get input from HTML controls, then do POST, it adds a lot of power to NS
Basic/CE. The Tech Note is here:
<http://www.nsbasic.com/ce/info/technotes/TN42.htm>

The new release has been tested and is ready for use with Windows 7 and
Windows Mobile 6.5 devices.

Here the complete list of what is new and has been fixed:

  1. New Control: HTMLView. See Tech Note 42.
  2. IDE: Project now has Hi Res Aware property - see below.
  3. IDE: Project now has Dir To Install property - see below.
  4. IDE: Code Window: Now shows 16 lines in dropdown instead of 8.
  5. IDE: Extra blank lines are not longer added on each save.
  6. IDE: Form did not save Picture property.
  7. IDE: Loop is now highlighted as a keyword.
  8. IDE: Error 6 when selecting system color for gradient button fixed.
  9. IDE: Pocket PC VGA added to Option > Design Screen sizes.
10. IDE: Bug when opening NS Basic/Desktop projects fixed.
11. IDE: Better messages when object names are rejected in Properties.
12. IDE: Error when pasting PictureBoxes and Gradient Buttons fixed.
13. eVB2nsb: a number of enhancements have been made.
14. Installer does not overwrite newer Basic.exe.
15. Installer was deleting all files ending in .DAT
16. New Function: SendMessageString - see below.
17. PictureBox: DrawText was not sized properly on some devices
(NSBCEPicturebox.ocx 1.3.2)
18. Runtime: Fat executable now produced - see below.
19. Runtime: Illegal character when loading program fixed.
20. Runtime and IDE: Icon cleaned up.
21. New Tech Note: 42 Using the HTMLview control
22. New Sample: HTMLview

Download and install password information has not changed - you can
install over your existing NS Basic/CE 8.0 installation.

Let me know if you have questions!

George Henne
NS BASIC Corporation
http://www.nsbasic.com

#20556 From: "matthew_mueller" <matthew_mueller@...>
Date: Mon Nov 9, 2009 11:09 pm
Subject: Re: Windows Mobile 6.1
matthew_mueller
Offline Offline
Send Email Send Email
 
--- In nsbasic-ce@yahoogroups.com, "George Henne" <gh@...> wrote:
>
> Good point.
>
> I assumed when I read the original message that this error occurred when
> starting NS Basic. However, that isn't necessarily what the original
> message said.
>
> There was a problem with this message appearing on ending the program.
> Is this what you are seeing? If so, you need to try 8.0, where a fix was
> made for this.
>
> If that does not fix the problem, please let me know!

Thanks George, at least I know it has been addressed.  I started building an 8.0
installer using the Demo version, but I've got some work to do with the new
installer build process.

Messages 20556 - 20590 of 20595   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help