[nsbasic-ce] Re: Skins

2009-12-04 Thread bwolodko


--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> 
> 
> --- In nsbasic...@yahoogroups.com, "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


--

You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb...@googlegroups.com.
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.




[nsbasic-ce] Re: Skins

2009-12-04 Thread bwolodko


--- In nsbasic...@yahoogroups.com, "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.


--

You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb...@googlegroups.com.
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.




[nsbasic-ce] Re: Installing app on htc ozone smartphone

2009-10-16 Thread bwolodko
George, what about units that have both a touch screen and mechanical buttons? 
Technote 21, Devices Supported lists the Symbol MC3000 and Symbol MC9000 hand 
held computers with PXA Xscale CPU's. Is this list correct? Or NSBasic will 
work with the touch screen, but the buttons will not be available?

Ben

--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> The HTC Ozone does not have a touch screen - we only support devices
> with touchscreens.
> 
> George Henne 
> NS BASIC Corporation
> http://www.nsbasic.com 
> 
> >I have a prospective customer who downloaded the evaluation version of
> >my app (created with nsb 8.0) but said he gets a "not valid win ce
> >application" error message when trying to install on his HTC Ozone
> >smartphone. I think he downloaded the evaluation (an exe file) directly
> >to his phone and executed from there rather than from his computer. I
> >also told him to copy the 'cab' file and try it but he said same
> >results. Any ideas why this is happening?
> >
> >Jim Schuchert
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Key Preview and CR's

2009-10-14 Thread bwolodko
Hi, 

I donot know if this is what you are lookng for " trapping a 
in this case we bring in a string and extract the ASCII data from a specific 
character to the  effectively trimming it off.

This is how we have read a Symbol LS2208 barcode scanner
This form has an Exit command button on it to be able to terminate the timer, 
close the comm port and move to another screen.

' Hidden Text box used for Heartbeat in Barcode Scanning
AddObject "TextBox","Trigger",200,300,350,90
'Trigger.Timer = 500 will be started 
'Trigger.Timer = 0 stops the heartbeat
Trigger.hide

Trigger.Timer = 500 

'---
Sub Trigger_Timer
' Trigger timer pulses every 500 ms To allow Barcode reading And an exit while 
Comm is reading
  On Error Resume Next

If (com_port3.InBufferCount > 0) Then
   Mpic6.Cls ' every Barcode received Scan the MPic6 box will clear.
   ScanTwo = com_port3.Input
   ScanTwo = Trim(ScanTwo) ' remove any leading or trailing spaces
   
  ' reject any scans other than STID, CAPS, DUMY, and EXP
  If (Mid(ScanTwo,1,4) = "CAPS") Or (Mid(ScanTwo,1,4) = "STID") Or   
(Mid(ScanTwo,1,4) = "DUMY") Or (Mid(ScanTwo,1,3) = "EXP") Then 

'Parse for "CAPSxxx" 
  If (Mid(ScanTwo,1,4) = "CAPS") Then
PosCR = InStr(1,ScanTwo,Chr(13))' what position is the carrage 
return 
   PosC = InStr(1,ScanTwo,"C") ' what position is the C in CAPS , 0 if no C
If PosC <> 0 Then
  NameLen = PosCR - PosC ' Characters of the CAPS Name between the 
first character C and the CR
  ScanOne = Mid(ScanTwo,PosC,NameLen)  ' strip off  
  
End If
End If
  End If
End If

Hope this helps.

Ben   

--- In nsbasic...@yahoogroups.com, "manic4basic"  wrote:
>
> 
> 
> Has anyone found the answer on how to trap for a CR from the Key Preview 
> function?
> 
> I can see any Alph or Num keys but am having trouble trapping the CR or LF 
> keys.
> 
> I have turned on the textbox multiline so it will respond to the cr but I 
> cannot trap it out. When I use a barcode scanner I need to decode the input 
> string and place that data into one of several textboxes depending on it's 
> value.
> 
> I know others have done this but cannot find any examples.
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Running NSbasic app from sd card on power up

2009-09-18 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "martinnossel"  wrote:
>
> I have got a NSBasic program (on flash) working on the Friendly Arm S3C2440 
> (but with a 7" screen) on bootup.
> 
> I would have to recompile the BSB for a 3.5". for you as I put the NSBasic 
> runtime into the BSP to install in the flash. I only have the demo PB though, 
> and it will take me awhile to get to it I'm afraid.
> 
> Chase me up in a week (or 2).
> 
> Martin
> 
> --- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
> >
> > --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> > >
> > > --- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
> > > >
> > > > --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> > > > >
> > > > > --- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> > > > > > >
> > > > > > > --- In nsbasic...@yahoogroups.com, "cyberscan" kurt@ wrote:
> > > > > > > >
> > > > > > > > Can someone help me configure an SD card to auto boot my 
> > > > > > > > NSbasic app
> > > > > > on power up? I'm running WinCE 5.0. Thanks.
> > > > > > > >
> > > > > > >
> > > > > > > Depending on the target device, place your NSBasic generated EXE 
> > > > > > > file
> > > > > > ( only one ) into a folder named AutoRun
> > > > > > >
> > > > > > > On the CuWin3500 the SD card is presented as
> > > > > > >
> > > > > > > Storage Card
> > > > > > >
> > > > > > > so if I place an EXE file ( only one ) in the
> > > > > > >
> > > > > > > Storage Card\Autorun
> > > > > > >
> > > > > > > folder, it will run upon booting as long as the Autorun dip 
> > > > > > > switch is
> > > > > > set to enable.
> > > > > > >
> > > > > > > Other hardware will have it's own protocols for Autorun
> > > > > > >
> > > > > > > On the CuWin3500 there is a dip switch that has to be set to 
> > > > > > > enable
> > > > > > the Autorun feature.
> > > > > > >
> > > > > > Thanks. When I try that, it comes up with an error "Cannot find
> > > > > > NSBasic.exe. Please reinstall." Do I need to put NSBasic.exe 
> > > > > > somewhere?
> > > > > >
> > > > > 
> > > > > You have to install the NSBasic runtime onto the target device, the 
> > > > > NSBasic Installer should be doing this.
> > > > > 
> > > > > 
> > > > > Typically the NSBasic Runtime is copied to the target into the 
> > > > > Flash Disk\Windows subdirectory, and then you have to "Save Registry" 
> > > > > after copying/installing to that location.
> > > > > 
> > > > > I am currently using NSBasic 7.05c, not version 8.02. 
> > > > > 
> > > > > George may have to jump in here.
> > > > >
> > > > Thanks. Makes sense. How do I "save the registry?"
> > > >
> > > 
> > > Typically the Windows CE device comes with an icon on the CE desktop that 
> > > is "Save Registry"
> > > 
> > > If not on your desktop, I'd do a search, may be in Program files, or an 
> > > exe in the Windows sub.
> > > 
> > > The two CE devices I work with, both have a "Save Registry" icon on the 
> > > desktop.
> > > 
> > > What is the model of your CE device?
> > >
> > It's a Friendly Arm S3C2440 with 3.5" LCD.
> >
>

The Friendly ARM S3C2440 with a 7" screen is a very well priced and functional 
unit. The manuals are tough to read, in that the verbage is English, but the 
screen shots are in Chinese.

Is it legal to post the BSP for the 7" screen in the Files section?

What version of NSBasic runtime are you using?
Any issues? with memory leaks?

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Running NSbasic app from sd card on power up

2009-09-17 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> >
> > --- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
> > >
> > > 
> > > 
> > > --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> > > >
> > > > --- In nsbasic...@yahoogroups.com, "cyberscan" kurt@ wrote:
> > > > >
> > > > > Can someone help me configure an SD card to auto boot my NSbasic app
> > > on power up? I'm running WinCE 5.0. Thanks.
> > > > >
> > > >
> > > > Depending on the target device, place your NSBasic generated EXE file
> > > ( only one ) into a folder named AutoRun
> > > >
> > > > On the CuWin3500 the SD card is presented as
> > > >
> > > > Storage Card
> > > >
> > > > so if I place an EXE file ( only one ) in the
> > > >
> > > > Storage Card\Autorun
> > > >
> > > > folder, it will run upon booting as long as the Autorun dip switch is
> > > set to enable.
> > > >
> > > > Other hardware will have it's own protocols for Autorun
> > > >
> > > > On the CuWin3500 there is a dip switch that has to be set to enable
> > > the Autorun feature.
> > > >
> > > Thanks. When I try that, it comes up with an error "Cannot find
> > > NSBasic.exe. Please reinstall." Do I need to put NSBasic.exe somewhere?
> > >
> > 
> > You have to install the NSBasic runtime onto the target device, the NSBasic 
> > Installer should be doing this.
> > 
> > 
> > Typically the NSBasic Runtime is copied to the target into the 
> > Flash Disk\Windows subdirectory, and then you have to "Save Registry" after 
> > copying/installing to that location.
> > 
> > I am currently using NSBasic 7.05c, not version 8.02. 
> > 
> > George may have to jump in here.
> >
> Thanks. Makes sense. How do I "save the registry?"
>

Typically the Windows CE device comes with an icon on the CE desktop that is 
"Save Registry"

If not on your desktop, I'd do a search, may be in Program files, or an exe in 
the Windows sub.

The two CE devices I work with, both have a "Save Registry" icon on the desktop.

What is the model of your CE device?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Running NSbasic app from sd card on power up

2009-09-17 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
>
> 
> 
> --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> >
> > --- In nsbasic...@yahoogroups.com, "cyberscan" kurt@ wrote:
> > >
> > > Can someone help me configure an SD card to auto boot my NSbasic app
> on power up? I'm running WinCE 5.0. Thanks.
> > >
> >
> > Depending on the target device, place your NSBasic generated EXE file
> ( only one ) into a folder named AutoRun
> >
> > On the CuWin3500 the SD card is presented as
> >
> > Storage Card
> >
> > so if I place an EXE file ( only one ) in the
> >
> > Storage Card\Autorun
> >
> > folder, it will run upon booting as long as the Autorun dip switch is
> set to enable.
> >
> > Other hardware will have it's own protocols for Autorun
> >
> > On the CuWin3500 there is a dip switch that has to be set to enable
> the Autorun feature.
> >
> Thanks. When I try that, it comes up with an error "Cannot find
> NSBasic.exe. Please reinstall." Do I need to put NSBasic.exe somewhere?
>

You have to install the NSBasic runtime onto the target device, the NSBasic 
Installer should be doing this.


Typically the NSBasic Runtime is copied to the target into the 
Flash Disk\Windows subdirectory, and then you have to "Save Registry" after 
copying/installing to that location.

I am currently using NSBasic 7.05c, not version 8.02. 

George may have to jump in here.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Running NSbasic app from sd card on power up

2009-09-17 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "cyberscan"  wrote:
>
> Can someone help me configure an SD card to auto boot my NSbasic app on power 
> up? I'm running WinCE 5.0. Thanks.
>

Depending on the target device, place your NSBasic generated EXE file ( only 
one ) into a folder named AutoRun

On the CuWin3500 the SD card is presented as 

Storage Card

so if I place an EXE file ( only one ) in the 

Storage Card\Autorun 

folder, it will run upon booting as long as the Autorun dip switch is set to 
enable.

Other hardware will have it's own protocols for Autorun

On the CuWin3500 there is a dip switch that has to be set to enable the Autorun 
feature.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] NSBasic CE support for Texas Instruments IMAP processor

2009-07-16 Thread bwolodko
George,

Glacier Computers is advertizing a rugged industrial unit

 "the Everest E2000, a dedicated full-screen Windows CE computer boasting the 
new Texas Instruments IMAP processor"

any idea if NSBasic CE will work on this unit?

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Teklogix NEO

2009-06-29 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> We have been loaned a TekLogix NEO for a couple of weeks.
> 
> 
> It seems like a nice, small solid unit with a built in bar code scanner.
> We used the opportunity to create a small sample how to use the bar code
> scanner, which we have included in 8.0.2.
> 
> If anybody has anything they want us to try on it while we still have it
> here, let me know!
> 
> George Henne 
> NS BASIC Corporation
> http://www.nsbasic.com
>

Hi George,

Try to add a GPS receiver to the serial port. 
Can we write code to dump info from NSBasic apps out of the USB port? or is the 
USB Host to activesync only?

Thanks

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Supported Devices Win CE 5.0 Build (0 on May 8, 2007 )

2009-05-28 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> We support several types of devices running Window CE 5.0: you can see
> them listed in the Platforms picker in Tools...Options...Installer. NS
> Basic itself does a very good job of making this something the
> programmer doesn't have to worry about.
> 
> But Windows CE is not a clone of Windows XPe. There are differences in
> how controls work, which may or may not matter to you, as well as other
> things.
> 
> >George, I' showing my lack of knowledge.
> >
> >Here I was thinking that any program runnning under Win CE 5.0 having a
> >BSD written for a specific CPU, would accept programs that were written
> >for the Win CE OS, and the OS would take care of the differences between
> >the CPU's. I guess that is not the case.
> >
> >So for x86 equipment, what is the complication mentioned for XPe and the
> >Desktop software? can I not port my NS basic Code from CE to the Desktop
> >( maybe some of the syntax has to change ), and recompile for the x86
> >target under XPe?
> >
> >The TREK-743 is a much more rugged device, has GPS, WIFI, Bluetooth ,
> >GSM/GPRS all built in.
> >
> >Ben


Geroge, can NS Basic/Desktop be installed on the same hard drive as NS 
Basic/CE, can they reside together? or is it one or the other?

Thanks

Ben



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Supported Devices Win CE 5.0 Build (0 on May 8, 2007 )

2009-05-28 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> This device uses a AMD LX800 processor, which is x86. We don't provide
> an x86 version of NS Basic/CE. I'm not sure all the controls that would
> be needed exist in x86 format.
> 
> It will work with XP Embedded and NS Basic/Desktop, but that is a lot of
> complication.
> 
> Do you need to use this device?
> 
> >George,
> >
> >I have a device, the Advantech TREK-743
> >
> >http://www.advantech.com/products/TREK-743/mod_1-2JKPVU.aspx
> >
> >that we received with Win CE 5.0 Professuional installed on an x86 platform.
> >
> >ActiveSync connection is through one of the serial ports, and I can
> >connect and brouse the machine, transfer files etc.
> >
> >Trying to install the NSBasic runtime I get an error message:
> >
> >"NSB Basic doesnot support the connected device"
> >
> >
> >NS Basic 8.0? Change the TREK-483 to XPe and use the NS Basic/Desktop?
> >
> >I sure would like to use the NS Basic programs I have developed that run
> >on The CuWin 3500, Win CE 5.0 Pro, but under an ARM920T CPU.
> >
> >Your thoughts are appreciated.
> >
> >Ben 
> >

George, I' showing my lack of knowledge.

Here I was thinking that any program runnning under Win CE 5.0 having a BSD 
written for a specific CPU, would accept programs that were written for the Win 
CE OS, and the OS would take care of the differences between the CPU's. I guess 
that is not the case.

So for x86 equipment, what is the complication mentioned for XPe and the 
Desktop software? can I not port my NS basic Code from CE to the Desktop ( 
maybe some of the syntax has to change ), and recompile for the x86 target 
under XPe?

The TREK-743 is a much more rugged device, has GPS, WIFI, Bluetooth , GSM/GPRS 
all built in.

Ben



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Supported Devices Win CE 5.0 Build (0 on May 8, 2007 )

2009-05-28 Thread bwolodko
George,

I have a device, the Advantech TREK-743

http://www.advantech.com/products/TREK-743/mod_1-2JKPVU.aspx

that we received with Win CE 5.0 Professuional installed on an x86 platform.

ActiveSync connection is through one of the serial ports, and I can connect and 
brouse the machine, transfer files etc.

Trying to install the NSBasic runtime I get an error message:

"NSB Basic doesnot support the connected device"


NS Basic 8.0? Change the TREK-483 to XPe and use the NS Basic/Desktop?

I sure would like to use the NS Basic programs I have developed that run on The 
CuWin 3500, Win CE 5.0 Pro, but under an ARM920T CPU.

Your thoughts are appreciated.

Ben 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] NS Basic CE 8.0 and an new release of the Desktop version

2009-05-27 Thread bwolodko
George,

With a new release of NS Basic /CE 8.0, is there going to be a matching release 
of NS Basic/Desktop, to have similar abilities?

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] NS Basic 8.0 Co-existant with NS Basic7.05

2009-05-27 Thread bwolodko

George, with the release of NS basic 8.0

Will we have to remove the previous version (7.05) of NS Basic to install NS 
Basic 8.0? 

or can both versions co-exist on the same PC?


If you have a target CE 5.0 device that has a runtime installed and registered, 
do we have to remove this runtime to use NS Basic 8.0 that does not need a 
separate runtime?

Do the upgrade clients receive a printed manual as part of their upgrade 
pricing?

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: SQL SELECT WHERE

2009-05-26 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "EMERSON VIER"  wrote:
> >
> > I know abou error mensage, but I need the solution for this, my column is 
> > Age and I need seach value for this when I make this
> > 
> > Set records=db.Execute("SELECT * FROM People_DB WHERE Age >= '19' ")
> > 
> > Work very well but I need sustitute the '19' to on variable.
> > 
> > Thx for all
> > 
> > EMERSON VIER
> > 
> > 
> > 
> > --- In nsbasic...@yahoogroups.com, Harold Wood & Meyuni Gani  
> > wrote:
> > >
> > > You are encloseing value1 within quotes, so what gets passed to the sql 
> > > engine is the name value1 which is interpeted as the name of a column.  
> > > What you need to have is "select * from tablename where columnname =>" + 
> > > value1 This way the engine gets passed the query along with the value in 
> > > value1.
> > > 
> > > Harold Wood & Meyuni Gani
> > > 
> > > -Original Message-
> > > From: EMERSON VIER 
> > > Sent: Monday, May 25, 2009 7:50 PM
> > > To: nsbasic...@yahoogroups.com
> > > Subject: [nsbasic-ce] SQL SELECT WHERE
> > > 
> > > 
> > > 
> > > If a use this
> > > 
> > >  Value1 = 19
> > > 
> > >  Set records=db.Execute("SELECT * FROM People_DB WHERE Age >= Value1 ")
> > > 
> > >  Returt the Scripting Error "SQLite3COM - Line XXX, char O no such 
> > > column: Value1"
> > > 
> > >  If a use this
> > > 
> > >  Set records=db.Execute("SELECT * FROM People_DB WHERE Age >= '19' ")
> > > 
> > >  Work very well
> > > 
> > >  But I need use the variable on place '19' because this value I need get 
> > > from TextBox
> > > 
> > >  EMERSON VIER
> > >
> >
> 
> It would appeasr that what we need is a string
> 
> would this work?
> 
> Value1 = 19
> 
> Set records = db.Execute("SELECT * FROM People_DB WHERE Age >=" & 
> CStr(Value1))
> 
> Are the ( ) braces required?
> 
> Set records = db.Execute "SELECT * FROM People_DB WHERE Age >=" & CStr(Value1)
> 
> In the NsBasic manual, the syntax is EXECUTE(string)
> 
> But
> 
>AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",picName,X,Y,220,90
>Execute picName & ".ScaleMode = 3" ' pixels
>Execute picName & ".BorderStyle = 0" ' none
>Execute picName & ".hide"
> 
> works well. No Braces.
> 
> Converting the number to a string and appending it.
> 
> if all the Quotes are required i.e '19' ")
> 
> 
> then Set records = db.Execute("SELECT * FROM People_DB WHERE Age >=" & "'" & 
> CStr(Value1) & "')"
> 
> may work, just guessing 
> 
> Ben
>

Just noticed that the web page version does not show the single quotes within 
the double quotes to make up this string.

If you open the message with a reply, the string shows correctly.

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: SQL SELECT WHERE

2009-05-26 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "EMERSON VIER"  wrote:
>
> I know abou error mensage, but I need the solution for this, my column is Age 
> and I need seach value for this when I make this
> 
> Set records=db.Execute("SELECT * FROM People_DB WHERE Age >= '19' ")
> 
> Work very well but I need sustitute the '19' to on variable.
> 
> Thx for all
> 
> EMERSON VIER
> 
> 
> 
> --- In nsbasic...@yahoogroups.com, Harold Wood & Meyuni Gani  
> wrote:
> >
> > You are encloseing value1 within quotes, so what gets passed to the sql 
> > engine is the name value1 which is interpeted as the name of a column.  
> > What you need to have is "select * from tablename where columnname =>" + 
> > value1 This way the engine gets passed the query along with the value in 
> > value1.
> > 
> > Harold Wood & Meyuni Gani
> > 
> > -Original Message-
> > From: EMERSON VIER 
> > Sent: Monday, May 25, 2009 7:50 PM
> > To: nsbasic...@yahoogroups.com
> > Subject: [nsbasic-ce] SQL SELECT WHERE
> > 
> > 
> > 
> > If a use this
> > 
> >  Value1 = 19
> > 
> >  Set records=db.Execute("SELECT * FROM People_DB WHERE Age >= Value1 ")
> > 
> >  Returt the Scripting Error "SQLite3COM - Line XXX, char O no such column: 
> > Value1"
> > 
> >  If a use this
> > 
> >  Set records=db.Execute("SELECT * FROM People_DB WHERE Age >= '19' ")
> > 
> >  Work very well
> > 
> >  But I need use the variable on place '19' because this value I need get 
> > from TextBox
> > 
> >  EMERSON VIER
> >
>

It would appeasr that what we need is a string

would this work?

Value1 = 19

Set records = db.Execute("SELECT * FROM People_DB WHERE Age >=" & CStr(Value1))

Are the ( ) braces required?

Set records = db.Execute "SELECT * FROM People_DB WHERE Age >=" & CStr(Value1)

In the NsBasic manual, the syntax is EXECUTE(string)

But

   AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",picName,X,Y,220,90
   Execute picName & ".ScaleMode = 3" ' pixels
   Execute picName & ".BorderStyle = 0" ' none
   Execute picName & ".hide"

works well. No Braces.

Converting the number to a string and appending it.

if all the Quotes are required i.e '19' ")


then Set records = db.Execute("SELECT * FROM People_DB WHERE Age >=" & "'" & 
CStr(Value1) & "')"

may work, just guessing 

Ben




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Memory leak

2009-05-26 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "ghidera2000"  wrote:
> >
> > Actually, it was a ghidera2000 issue. The device comes with a 2006 
> > release of basic.exe and I had been installing the newer basic before 
> > developing. I'd forgotten to do that this morning! While playing a game 
> > of HOMM III it popped into my head so I saved, quit, ran the installer 
> > and tried again. No problems, the memory comes back just like it should.
> > 
> > This is on CE5 also, not WM5.
> > 
> > 
> > --- In nsbasic...@yahoogroups.com, "Tim Markoski"  wrote:
> > >
> > > This is an Windows Mobile memory issue.
> >
> 
> Hi, I have the same memory leak issue with a CuWin3500 HMI running WinCE 5.0 
> Pro. Running a 45.5K exe file created by NSBasic/CE 7.05, and using the 
> original runtime that came with the CuWin 3500 (basic.exe dated 11/01/2006), 
> I have observed an increased user memory value, Control Panel > System > 
> Memory tab, everytime I run the program. 
> 
> I can run the program 10 times before it locks up the CuWin3500, but the 
> program also slows considerably from the second running to the tenth running. 
> 
> So just to clarify, all you did was to install the runtime for your current 
> 7.05 NSBasic/CE version, run Registry save, and the memory leak disappered. 
> 
> Can anyone provide a Declare statement for the WinCE 5.0 API, that would in 
> effect do a Ctl-Alt-Del ( warm boot ) of the OS.
> 
> Any info would be apprecated
> 
> Ben
>


George, 

Thankyou for all your assistance on the basic.exe to fix the memory leak

On the CuWin3500, the place to copy the basic.exe was into the \Flash 
Disk\nsbasic

On the Cubloc Forum, a fellow NSBasic programmer, PatM, ran into the same issue 
with the CuWin4300, 
his solution was to tell the NSBasic, Runtime.WinCE.exe installer to install 
into \Flash Disk and NOT the default location

I did this, then I copied your new basic.exe to the \Flash Disk\nsbasic folder 
over writing the basic.exe file

I saved the Registry, then re-booted. All is working fine. Memory leak problem 
solved … permanently I hope

When the program is terminated, you can watch the memory being released from 
about 12680Kb back to 7340Kb.

Great job, Thanks Again

Thanks to PatM and Briam M from the Cubloc Forum

Ben



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Memory leak

2009-05-21 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "ghidera2000"  wrote:
>
> Actually, it was a ghidera2000 issue. The device comes with a 2006 
> release of basic.exe and I had been installing the newer basic before 
> developing. I'd forgotten to do that this morning! While playing a game 
> of HOMM III it popped into my head so I saved, quit, ran the installer 
> and tried again. No problems, the memory comes back just like it should.
> 
> This is on CE5 also, not WM5.
> 
> 
> --- In nsbasic...@yahoogroups.com, "Tim Markoski"  wrote:
> >
> > This is an Windows Mobile memory issue.
>

Hi, I have the same memory leak issue with a CuWin3500 HMI running WinCE 5.0 
Pro. Running a 45.5K exe file created by NSBasic/CE 7.05, and using the 
original runtime that came with the CuWin 3500 (basic.exe dated 11/01/2006), I 
have observed an increased user memory value, Control Panel > System > Memory 
tab, everytime I run the program. 

I can run the program 10 times before it locks up the CuWin3500, but the 
program also slows considerably from the second running to the tenth running. 

So just to clarify, all you did was to install the runtime for your current 
7.05 NSBasic/CE version, run Registry save, and the memory leak disappered. 

Can anyone provide a Declare statement for the WinCE 5.0 API, that would in 
effect do a Ctl-Alt-Del ( warm boot ) of the OS.

Any info would be apprecated

Ben



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Function DeviceIoControl in NS Basic

2009-05-01 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "martinnossel"  wrote:
> >
> > Andrew
> > 
> > I am playing with the demo of NSB still.
> > 
> > It works fine, I had to rebuild the WinCE for "English" using the 120 day 
> > trial of platform builder 5. as per the instructions I found on the web 
> > site of the e-bay supplier.
> > 
> > T haven't managed to access the adc, i/o, leds, i2c and push buttons on the 
> > board as I cant work out how to 'call' the drivers they supply, and I don't 
> > know how to write a driver, I also only have VS2003 and VS2005 up is needed 
> > to program for CE.
> > 
> > If someone here is up to it (there is some c examples of Linux that 
> > works for all the external peripherals)
> > 
> > Keep your eyes on www.andahammer.com
> > 
> > Martin
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > --- In nsbasic...@yahoogroups.com, Andrew Thomas  wrote:
> > >
> > > Dear Ben,
> > > 
> > > Thank you very much for letting me know. I'll get the runtimes for the 
> > > CuWin3500 and give it a go. I tried installing 7.0.4 on the device for 
> > > programming on it but it didn't work, but maybe I will do better just 
> > > using the runtime. Nsb and the mini2440 will be an excellent combination.
> > > 
> > > Many thanks,
> > > 
> > > Andrew.
> > >
> >
> 
> Martin, 
> 
> Thanks for the link, there too many mini2440 listings
> I thought the module being discussed was at:
> 
> http://www.embedinfo.com/English/product/mini2440-I.asp
> 
> with the real discussion about:
> 
> The one at http://www.andahammer.com/mini244/
> 
> looks pretty good. With Win CE 5.0 Pro BSP and NSBasic/CE, this could make a 
> nice HMI or controller. 
> 
> We will keep watching
> 
> Ben
>

Contacting Charlie Springer from www.andahammer.com
his quote:

We expect to have licensed WindowsCE 6.0 very soon. A company that works with 
Microsoft has bought one each of the boards and displays to produce a robust 
professional Windows CE package with very low licensing fees. We don't have an 
exact time, but perhaps within two weeks. The package will be in English with 
other languages optional.

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Function DeviceIoControl in NS Basic

2009-05-01 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "martinnossel"  wrote:
>
> Andrew
> 
> I am playing with the demo of NSB still.
> 
> It works fine, I had to rebuild the WinCE for "English" using the 120 day 
> trial of platform builder 5. as per the instructions I found on the web site 
> of the e-bay supplier.
> 
> T haven't managed to access the adc, i/o, leds, i2c and push buttons on the 
> board as I cant work out how to 'call' the drivers they supply, and I don't 
> know how to write a driver, I also only have VS2003 and VS2005 up is needed 
> to program for CE.
> 
> If someone here is up to it (there is some c examples of Linux that works 
> for all the external peripherals)
> 
> Keep your eyes on www.andahammer.com
> 
> Martin
> 
>  
> 
> 
> 
> 
> 
> 
> --- In nsbasic...@yahoogroups.com, Andrew Thomas  wrote:
> >
> > Dear Ben,
> > 
> > Thank you very much for letting me know. I'll get the runtimes for the 
> > CuWin3500 and give it a go. I tried installing 7.0.4 on the device for 
> > programming on it but it didn't work, but maybe I will do better just using 
> > the runtime. Nsb and the mini2440 will be an excellent combination.
> > 
> > Many thanks,
> > 
> > Andrew.
> >
>

Martin, 

Thanks for the link, there too many mini2440 listings
I thought the module being discussed was at:

http://www.embedinfo.com/English/product/mini2440-I.asp

with the real discussion about:

The one at http://www.andahammer.com/mini244/

looks pretty good. With Win CE 5.0 Pro BSP and NSBasic/CE, this could make a 
nice HMI or controller. 

We will keep watching

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Function DeviceIoControl in NS Basic

2009-05-01 Thread bwolodko
--- In nsbasic...@yahoogroups.com, Andrew Thomas  wrote:
>
> Dear Ben,
> 
> Thank you very much for letting me know. I'll get the runtimes for the 
> CuWin3500 and give it a go. I tried installing 7.0.4 on the device for 
> programming on it but it didn't work, but maybe I will do better just using 
> the runtime. Nsb and the mini2440 will be an excellent combination.
> 
> Many thanks,
> 
> Andrew.
>
Andrew,

The CuWin3500 comes pre-loaded with the Windows CE 5.0 Pro BSP, and I am 
creating the NSBasic programs on my XP desktop, connecting to the CuWin3500 via 
ActiveSync 4.5 and a USB connection. The NSBasic runtime on the CuWin3500 came 
preloaded, but I believe the latest version was loaded when I installed the 
NSBasic/CE IDE onto my XP desktop.

see:

http://www.cubloc.com/product/05_01.php


The documentation for the mini2440 married to a SBC2440-III motherboard 
indicates that you have to load the BSP yourself via the Bootloader. Are you 
using one of the SBC2440-III Single Board Computers or just the mini2440 module?

Sorry for any misleading info.

Ben  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Function DeviceIoControl in NS Basic

2009-04-30 Thread bwolodko
--- In nsbasic...@yahoogroups.com, Andrew Thomas  wrote:
>
> Dear Martin,
> 
> Can I ask if you have had success installing the older nsb runtime files on 
> your board? I've recently bought a mini2440 and was trying to decide whether 
> to code for CE.net 5 using embedded ce tools 3 or nsb. I would rather use nsb 
> so am interested in how you've got on.
> 
> Best wishes,
> 
> Andrew.
>

Andrew, the SBC2440-III&IV mother boards with the Mini2440-I Processor Card on 
board has very similar specs to a Cubloc CuWin3500, same processor and uses 
WinCE 5.0 BSP. I am programming NSbasic/CE 7.05 on the CuWin3500, and so far 
its been working OK.

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: setting the date and time

2009-04-29 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
>
> Is it possible to set the date and time on the handheld device with 
> NSBasic/CE code?
> 
> Everytime I reset the device, it thinks it is 2004 or 2005.
>

Sounds like the RTC is not working... need new battery?

I think you can set or retrieve the time and date by using:

addobject "MGCEWin32.API", "API", 0, 0, 0, 0
d = API.SystemTime
API.SystemTime = Now

See The Big Red Toolbox , MGCEWin32

http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm

The problem is who sets the values before you call this? InputBox?

Shades of old DOS when it asked you for the time and date at boot time.

Hope this helps..
Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: ShellExecute and regsvrce question

2009-04-28 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "styskul"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
> >
> > With the IP*Works! tools, I have to execute something like this after 
> > copying the *.ocx file to the /windows folder of the PDA:
> > 'ShellExecute "open","regsvrce","http50.ocx" 
> > 
> > I have 3 questions:
> >   1.  Is there a way to check to see if an object is registered before 
> > calling ShellExecute?
> > 
> >   2.  Is there a way to copy the *.ocx file to the /windows folder of the 
> > PDA?  Can the *.ocx file be embedded inside an .exe file?  Or do I have to 
> > grab it over TCP/IP?
> > 
> >   3.  Is there a way to register the *.ocx file without the OK dialog 
> > popping up to let me know that it was registered?
> >
> 
> For #2, I believe the answer to the .ocx embedded in .exe part would be no.  
> As long as you know what the name of the Windows folder is (not sure if it 
> can be different in PDAs like it can on Desktops) then you should be able to 
> copy the file over.  There might be an example of file copying in the tech 
> notes.
> 
> For #3, try "http50.ocx /s"
>

For CE 5.0 Pro on a CuWin3500 HMI panel I did the following, having both Flash 
and an SD card on board.

Copy the .dll or .ocx to the Flash or SD location then register from there

ShellExecute "open","regsvrce.exe","\Storage Card\NSBMCEControls\MSCEComm.dll"

Have to put in the full path.

Hope this helps.

Ben




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: NS Basic limits

2009-04-24 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "rmrsoft"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> > Al, would you post some code for the "Wrapper" illustrating the use of the 
> > Execute to call other programs.
> > 
> > Thanks
> > 
> > Ben
> >
> 
> Sure.  RMR Accounts simply draws a background and then puts 6 icons on the 
> screen  (Have a look at the screenshot at 
> http://www.rmrsoft.com/ppc/accounts.htm) using code like this:
> 
>AddObject "picturebox","pic3",20,110,48,48
>pic3.borderstyle=1
>pic3.drawpicture "\Program 
> Files\RMRAccounts\RMRAccounts.bmp",0,0,48,48,0,48,48,48
> 
> Then for each picture there is a routine like this :
> 
> Sub Pic3_Click
>  WaitCursor True
>  ShellExecute "open","Program Files/RMRExpenses/RMRExpenses.exe"
>  WaitCursor False
> End Sub
> 
> Simple as that.
> 
> Al
>


Al, Thanks for the tip, very straight forward.

I assume that each exe file has its own BYE command to close itself and return 
to the wrapper.

Thanks again

Ben



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Turning CuWin3500 off via software

2009-04-18 Thread bwolodko
Is it possible to turn a Win CE device off via a software Click event? 

How about a cold re-boot?

Thanks

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: NS Basic limits

2009-04-18 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "rmrsoft"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "jingjok67"  wrote:
> 
> > Does anyone have a large NS Basic app and could tell me how many lines
> > of code and how big the nsb file is ? Did you run into some other kind
> > of limitation (i.e. number of objects, controls, variables, etc) of NS
> > Basic ? Any suggestion to reduce the size of the nsb files ?
> 
> I have one about that size (RMRAccounts) but the system I used was to
> break it down into 6 different applications and then use a 'wrapper'
> program to call the one that was required using the EXECUTE statement.
> 
> The biggest of these apps has about 12,000 lines and produces an NSB
> file of 700K which converts to an EXE file of 400K.  if you can't
> manage yours you might want to consider that approach.
> 
> Al
>

Al, would you post some code for the "Wrapper" illustrating the use of the 
Execute to call other programs.

Thanks

Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Returning from a Chained program

2009-04-17 Thread bwolodko
Is there a way to use a click event to return to the calling program using the 
Chain Statement

i.e

  Select Case MnChce
  Case "1"
  Chain "\Storage Card\Blinking.exe",False 'do not reset the environment

The Chained program has

Sub done1_Click
Bye
End Sub

When clicking Done, it just ends the Chained program, and the calling program 
is no longer running either, both have been terminated.

How can I get back to the original program, back to the next line after the 
Chain? 

Any assiatance is appreciated


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Use of Remarks, REM, or the semicolon and comments

2009-04-17 Thread bwolodko
Is there any affect on how many remarks can be used in a program?

Any down side in using alot of remarks?

Limitation to final file size?
 
are they discarded when making an EXE file?

Any limitations for Strings, variables

Is there a chart somewhere that illustrates these limits?

Thanks 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Picturebox array

2009-04-12 Thread bwolodko
Hi, I have done the following:
Dim PathSD
Dim MSB(8)
Dim MpicName
Dim X, Y, I

MSB(1) = "ScnMdiaB.bmp"
MSR(2) = "ScnMdiaR.bmp"
MSB(3) = "ComntsB.bmp"
MSR(4) = "ComntsR.bmp"
MSB(5) = "AttnRqdB.bmp"
MSR(6) = "AttnRqdR.bmp"
MSB(7) = "RevwB.bmp"
MSR(8) = "RevwR.bmp"

PathSD = "\Storage Card\Comments\" ' Comments a folder name on the 
   ' Storage Card
For I = 1 To 8
   If I <= 4 Then
   X = 15
   Y = 75 + (( I-1)*100) 
   End If
   If (I > 4) And (I <=8) Then
   X = 360
   Y = 75 + (( I-5)*100) 
   End If   
   MpicName = "MPic" & CStr(I)
   
AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",MpicName,X,Y,340,90
Execute MpicName & ".ScaleMode = 3" ' pixels
Execute MpicName & ".BorderStyle = 0" ' none
Execute MpicName & ".hide" ' hide the object
'Execute MpicName & ".Picture = PathSD & MSB(I)" ' show a picture
Next

This creates 8 picture objects ( 340 x 90 pixels ), 4 rows, two columns

You can access an individaul picture box as:

Mpic1.Picture = PathSD & MSB(1)

or

I=8
MpicName = "MPic" & CStr(I)
Execute MpicName & ".Picture = PathSD & MSB(I)"

Is this what you meant by an array?

Ben

--- In nsbasic...@yahoogroups.com, "skywamker34"  wrote:
>
> I would like to use Picturebox array
> I notice there is not index property in NSBASIC object
> 
> Is there a way to solve this ?
> 
> On http://www.efsoft.it/NSBfaq.htm#6 they spoke about "execute" instruction 
> but sample link is broken  :-((
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Not able to Display a .gif file with NSCEPictureBox.NSCEPictureBoxCtrl.1

2009-04-11 Thread bwolodko
CuWin3500

Processor 32-bit RISC (ARM920T Core) - 266MHz
Memory RAM: 64MB, NAND Flash: 64MB, NOR Flash: 1MB
LCD CUWIN3200/3500 : 7" TFT, 
18-bit / 260k colors, 800 x 480 pixels, LED backlight
Touch Four wire resistive panel
Serial (2) RS232-only, (1) RS232/RS485 switchable
USB (1) host interface, (1) device interface
Storage SD card Flash memory slot (up to 2GB)
Sound Internal mono speaker, external 3.5mm stereo jack
Clock Internal realtime clock
Power DC 9V to 24V, 500mA

Using Internet Explorer, that is built into the CuWin3500,
I can view bmp's, jpg's and gif's by opening the files. 

If I try to open gif's by just double clicking on them, then I get a
dialog saying there is no program associated with this file.

Any thoughts?

Thanks

Ben









--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> What device are you running on?
> 
> 
> >
> >Setting the variable to a .bmp file will show correctly
> >
> >trying to set it to any other format, the picture doesnot show
> >
> >MSR(0) = "\Storage Card\GeoSplash\GeotirBlk.bmp"
> >shows OK
> >
> >MSR(0) = "\Storage Card\GeoSplash\geotir1.gif"
> >Shows a blank area set by the NSCEPictureBox.NSCEPictureBoxCtrl.1 object
> >
> >Code that I am using:
> >
> >
> >AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1","GeoL",60,40,411,160
> >GeoL.ImageLoadBufferSize = 4096 ' added this from tech note 13
> >GeoL.ScaleMode = 3 ' pixels
> >GeoL.BorderStyle = 0 ' none
> >GeoL.Picture = MSR(0)
> >
> >
> >The .gif file is 411 pixels wide x 160 pixels high
> >
> >Any suggestions?
> >
> >Thanks
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Not able to Display a .gif file with NSCEPictureBox.NSCEPictureBoxCtrl.1

2009-04-11 Thread bwolodko
The device is a CuWin3500 with CE 5.0 Pro installed

Processor 32-bit RISC (ARM920T Core) - 266MHz
Memory RAM: 64MB, NAND Flash: 64MB, NOR Flash: 1MB
LCD CUWIN3200/3500 : 7" TFT, 
18-bit / 260k colors, 800 x 480 pixels, LED backlight
Touch Four wire resistive panel
Serial (2) RS232-only, (1) RS232/RS485 switchable
USB (1) host interface, (1) device interface
Storage SD card Flash memory slot (up to 2GB)
Sound Internal mono speaker, external 3.5mm stereo jack
Clock Internal realtime clock
Power DC 9V to 24V, 500mA

I can view both jpg's, bmp's and gif's using the CuWin's Internet Explorer, by 
opening the explorer, and selecting the jpg of gif etc. 

If I double click the gif, I get a dialog saying " There is no application 
associated with 'pic.gif' Run the application first, then open the file from 
within the application"

Any thoughts?

Thanks 

Ben 


--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> What device are you running on?
> 
> 
> >
> >Setting the variable to a .bmp file will show correctly
> >
> >trying to set it to any other format, the picture doesnot show
> >
> >MSR(0) = "\Storage Card\GeoSplash\GeotirBlk.bmp"
> >shows OK
> >
> >MSR(0) = "\Storage Card\GeoSplash\geotir1.gif"
> >Shows a blank area set by the NSCEPictureBox.NSCEPictureBoxCtrl.1 object
> >
> >Code that I am using:
> >
> >
> >AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1","GeoL",60,40,411,160
> >GeoL.ImageLoadBufferSize = 4096 ' added this from tech note 13
> >GeoL.ScaleMode = 3 ' pixels
> >GeoL.BorderStyle = 0 ' none
> >GeoL.Picture = MSR(0)
> >
> >
> >The .gif file is 411 pixels wide x 160 pixels high
> >
> >Any suggestions?
> >
> >Thanks
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Not able to Display a .gif file with NSCEPictureBox.NSCEPictureBoxCtrl.1

2009-04-10 Thread bwolodko

Setting the variable to a .bmp file will show correctly

trying to set it to any other format, the picture doesnot show

MSR(0) = "\Storage Card\GeoSplash\GeotirBlk.bmp"
shows OK

MSR(0) = "\Storage Card\GeoSplash\geotir1.gif"
Shows a blank area set by the NSCEPictureBox.NSCEPictureBoxCtrl.1 object

Code that I am using:


AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1","GeoL",60,40,411,160
GeoL.ImageLoadBufferSize = 4096 ' added this from tech note 13
GeoL.ScaleMode = 3 ' pixels
GeoL.BorderStyle = 0 ' none
GeoL.Picture = MSR(0)


The .gif file is 411 pixels wide x 160 pixels high

Any suggestions?

Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Radio Buttons ...

2009-04-09 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "Randall Jones"  wrote:
>
> I'm beginning to take this personal.
> 
> I am trying to create grouped optionbuttons. The language reference 
> says it goes like this.
> 
> - Create the first button. Set the group property to true.
> - Create the subsequent buttons group property to false.
> 
> They will all be in the same group. Idea being that within that group 
> only 1 button can be set at a time. Clicking on a button will clear 
> any button already set.
> 
> This is not happening for me. I can set all buttons no matter what.
> 
> I'm doing something wrong. Somebody please tell me what it is.
> 
> At your service ...
> 
> Randall Jones
> randalljo...@...
> AE7RJ
> 
> "We can't solve problems by using the same kind of thinking we used 
> when we created them."
> --Albert Einstein (1879-1955)
>
Don't you just love programming with less than stellar examples ...
especially when you are just learning as I am as well..

I am developing for a CuWin3500 HMI device, having CE 5.0 in it.

I posed a similar question a few weeks ago, and did not get any replys.

I have the same issue, with Radio or Option Buttons.

What I found was that I had to do the following

Option Explicit
Dim HoleType

Sub OB1_Click
HoleType="Mechanical"
OB1.ForeColor = &H00C0&
OB1.Value = True
OB2.Value = False
OB2.ForeColor =&H&
OB3.Value = False
OB3.ForeColor =&H&
OB4.Value = False
OB4.ForeColor =&H&
End Sub

Sub OB2_Click
HoleType="Hand Hole"
OB2.ForeColor =&H00C0&
OB2.Value = True
OB1.Value = False
OB1.ForeColor =&H&
OB3.Value = False
OB3.ForeColor =&H&
OB4.Value = False
OB4.ForeColor =&H&
End Sub

etc for each radio button

In essence, make one button's Value TRUE, and all the rest False

In my case I also wanted to change the color of the Text of the button to show 
that it was picked.

The problems I found were that the radio button, the Solid Dot and the circle 
around it, did not increase in size as my text font, or size of the total 
button increased in size, and you have to pick the Dot/Circle to activate the 
button, not the body of the text.

For 39 radio buttons, I ended up with 1289 lines of Code, for 4 forms of 
buttons. 

My second approach was to use the following:
Option Explicit
ShowOKButton True 'Set minimize button URHC to close app


' make full screen hide taskbar and top menu
Dim hWnd
Dim nWidth
Dim nHeight
Dim bRepaint
Declare "Function GetForegroundWindow Lib ""Coredll"" () As Long"
Declare "Function MoveWindow Lib ""Coredll"" (ByVal hWnd As Long, ByVal x As 
Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal 
bRepaint As Long) As Long"
 hWnd = GetForegroundWindow
' MoveWindow hWnd, 0, -26, Output.Width, Output.Height + 78, True ' was 52, 26 
try real height at 480 add 26 for 506
MoveWindow hWnd, 0, -26, Output.Width, 506, True 
'' need To hide the taskbar On Cuwin using a mouse in the USB port

Form1_Show

Dim DrlB(40)
Dim DrlR(40)
Dim BarC(10)
Dim HoleT(10)
Dim NHole(15)
Dim ChrgS(30)
Dim Pic(40)
Dim X, Y, I, J, K, L, M
Dim picName
Dim Frm
Dim DrillDepth
Dim strDepth
Dim DrlRH
Dim PathSD

PathSD = "\Storage Card\Drill Depth Buttons\"

DrlB(1) = "0_50B.bmp"
DrlR(1) = "0_50R.bmp"
DrlB(2) = "1_00B.bmp"

' the rest of the DrlB(3) = "1_50B.bmp" list

Frm = 0

For I = 1 To 10
   If I <= 4 Then
   X = 20
   Y = 75 + (( I-1)*100) 
   End If
   If (I > 4) And (I <=8) Then
   X = 250
   Y = 75 + (( I-5)*100) 
   End If   
   If (I > 8) And (I <=10) Then
   X = 480
   Y = 75 + (( I-9)*100) 
   End If 
   picName = "pic" & CStr(I)
   

AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",picName,X,Y,220,90
Execute picName & ".ScaleMode = 3" ' pixels
Execute picName & ".BorderStyle = 0" ' none
Execute picName & ".Picture = PathSD & DrlB(I)"

Next

Sub pic1_Click
  DrillDepth = Frm + 1  
  pic1.Picture = PathSD & DrlR(Frm + 1)
  pic2.Picture = PathSD & DrlB(Frm + 2)
  pic3.Picture = PathSD & DrlB(Frm + 3)
  pic4.Picture = PathSD & DrlB(Frm + 4)   
  pic5.Picture = PathSD & DrlB(Frm + 5)
  pic6.Picture = PathSD & DrlB(Frm + 6)
  pic7.Picture = PathSD & DrlB(Frm + 7)  
  pic8.Picture = PathSD & DrlB(Frm + 8)
  pic9.Picture = PathSD & DrlB(Frm + 9)
  pic10.Picture = PathSD & DrlB(Frm + 10) 
  strDepth =  FormatNumber(DrillDepth/2, 2, True)
  TextBox_1.Text = "You have Picked a  Drill Depth of "  
  TextBox_2.Text = strDepth & " Meters"  
End Sub

Sub pic2_Click
  DrillDepth = Frm + 2  
  pic1.Picture = PathSD & DrlB(Frm + 1)
  pic2.Picture = PathSD & DrlR(Frm + 2)
  pic3.Picture = PathSD & DrlB(Frm + 3)
  pic4.Picture = PathSD & DrlB(Frm + 4)   
  pic5.Picture = PathSD & DrlB(Frm + 5)
  pic6.Picture = PathSD & DrlB(Frm + 6)
  pic7.Picture = PathSD & DrlB(Frm + 7)  
  pic8.Picture = PathSD & DrlB(Frm + 8)
  pic9.Picture = PathSD & DrlB(Frm + 9)
  pic10.Picture = PathSD & DrlB(Frm + 10)
  strDepth =  FormatNumber(DrillDepth/2, 1, True)
  TextBox_1.Text = "You have Pick

[nsbasic-ce] Re: Radio Buttons ...

2009-04-09 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "Randall Jones"  wrote:
>
> I'm beginning to take this personal.
> 
> I am trying to create grouped optionbuttons. The language reference 
> says it goes like this.
> 
> - Create the first button. Set the group property to true.
> - Create the subsequent buttons group property to false.
> 
> They will all be in the same group. Idea being that within that group 
> only 1 button can be set at a time. Clicking on a button will clear 
> any button already set.
> 
> This is not happening for me. I can set all buttons no matter what.
> 
> I'm doing something wrong. Somebody please tell me what it is.
> 
> At your service ...
> 
> Randall Jones
> randalljo...@...
> AE7RJ
> 
> "We can't solve problems by using the same kind of thinking we used 
> when we created them."
> --Albert Einstein (1879-1955)
>
Don't you just love programming with less than stellar examples ...
especially when you are just learning as I am as well..

I am developing for a CuWin3500 HMI device, having CE 5.0 in it.

I posed a similar question a few weeks ago, and did not get any replys.

I have the same issue, with Radio or Option Buttons.

What I found was that I had to do the following

Option Explicit
Dim HoleType

Sub OB1_Click
HoleType="Mechanical"
OB1.ForeColor = &H00C0&
OB1.Value = True
OB2.Value = False
OB2.ForeColor =&H&
OB3.Value = False
OB3.ForeColor =&H&
OB4.Value = False
OB4.ForeColor =&H&
End Sub

Sub OB2_Click
HoleType="Hand Hole"
OB2.ForeColor =&H00C0&
OB2.Value = True
OB1.Value = False
OB1.ForeColor =&H&
OB3.Value = False
OB3.ForeColor =&H&
OB4.Value = False
OB4.ForeColor =&H&
End Sub

etc for each radio button

In essence, make one button's Value TRUE, and all the rest False

In my case I also wanted to change the color of the Text of the button to show 
that it was picked.

The problems I found were that the radio button, the Solid Dot and the circle 
around it, did not increase in size as my text font, or size of the total 
button increased in size, and you have to pick the Dot/Circle to activate the 
button, not the body of the text.

For 39 radio buttons, I ended up with 1289 lines of Code, for 4 forms of 
buttons. 

My second approach was to use the following:
Option Explicit
ShowOKButton True 'Set minimize button URHC to close app


' make full screen hide taskbar and top menu
Dim hWnd
Dim nWidth
Dim nHeight
Dim bRepaint
Declare "Function GetForegroundWindow Lib ""Coredll"" () As Long"
Declare "Function MoveWindow Lib ""Coredll"" (ByVal hWnd As Long, ByVal x As 
Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal 
bRepaint As Long) As Long"
 hWnd = GetForegroundWindow
' MoveWindow hWnd, 0, -26, Output.Width, Output.Height + 78, True ' was 52, 26 
try real height at 480 add 26 for 506
MoveWindow hWnd, 0, -26, Output.Width, 506, True 
'' need To hide the taskbar On Cuwin using a mouse in the USB port

Form1_Show

Dim DrlB(40)
Dim DrlR(40)
Dim BarC(10)
Dim HoleT(10)
Dim NHole(15)
Dim ChrgS(30)
Dim Pic(40)
Dim X, Y, I, J, K, L, M
Dim picName
Dim Frm
Dim DrillDepth
Dim strDepth
Dim DrlRH
Dim PathSD

PathSD = "\Storage Card\Drill Depth Buttons\"

DrlB(1) = "0_50B.bmp"
DrlR(1) = "0_50R.bmp"
DrlB(2) = "1_00B.bmp"

' the rest of the DrlB(3) = "1_50B.bmp" list

Frm = 0

For I = 1 To 10
   If I <= 4 Then
   X = 20
   Y = 75 + (( I-1)*100) 
   End If
   If (I > 4) And (I <=8) Then
   X = 250
   Y = 75 + (( I-5)*100) 
   End If   
   If (I > 8) And (I <=10) Then
   X = 480
   Y = 75 + (( I-9)*100) 
   End If 
   picName = "pic" & CStr(I)
   

AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",picName,X,Y,220,90
Execute picName & ".ScaleMode = 3" ' pixels
Execute picName & ".BorderStyle = 0" ' none
Execute picName & ".Picture = PathSD & DrlB(I)"

Next

Sub pic1_Click
  DrillDepth = Frm + 1  
  pic1.Picture = PathSD & DrlR(Frm + 1)
  pic2.Picture = PathSD & DrlB(Frm + 2)
  pic3.Picture = PathSD & DrlB(Frm + 3)
  pic4.Picture = PathSD & DrlB(Frm + 4)   
  pic5.Picture = PathSD & DrlB(Frm + 5)
  pic6.Picture = PathSD & DrlB(Frm + 6)
  pic7.Picture = PathSD & DrlB(Frm + 7)  
  pic8.Picture = PathSD & DrlB(Frm + 8)
  pic9.Picture = PathSD & DrlB(Frm + 9)
  pic10.Picture = PathSD & DrlB(Frm + 10) 
  strDepth =  FormatNumber(DrillDepth/2, 2, True)
  TextBox_1.Text = "You have Picked a  Drill Depth of "  
  TextBox_2.Text = strDepth & " Meters"  
End Sub

Sub pic2_Click
  DrillDepth = Frm + 2  
  pic1.Picture = PathSD & DrlB(Frm + 1)
  pic2.Picture = PathSD & DrlR(Frm + 2)
  pic3.Picture = PathSD & DrlB(Frm + 3)
  pic4.Picture = PathSD & DrlB(Frm + 4)   
  pic5.Picture = PathSD & DrlB(Frm + 5)
  pic6.Picture = PathSD & DrlB(Frm + 6)
  pic7.Picture = PathSD & DrlB(Frm + 7)  
  pic8.Picture = PathSD & DrlB(Frm + 8)
  pic9.Picture = PathSD & DrlB(Frm + 9)
  pic10.Picture = PathSD & DrlB(Frm + 10)
  strDepth =  FormatNumber(DrillDepth/2, 1, True)
  TextBox_1.Text = "You have Pick

[nsbasic-ce] has anyone tried running a NSBasic Desktop program under Windows XPe

2009-04-07 Thread bwolodko


It's reported 

"Windows XP Embedded-based systems run on an x86 processor and PC Architecture 
hardware, both of which are very well understood. This means that any existing 
Windows 2000 or Windows XP device driver or application can run on Windows XP 
Embedded without modification. The Windows XP Embedded operating system ships 
as a set of pre-built desktop-compatible binary components, which ensures 
application and driver compatibility."

Would an application written with NSBasic Desktop run under Win XP Embedded? ( 
XPe) 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] How to check the status of a Button ( Click Event ) while in a Loop

2009-04-06 Thread bwolodko
Hi, I am new to this , please bear with me

I want to manually open a Comm port with a Button ( no problem this I can do )
The comm port is connected to a Barcode Reader, which outputs 11 character long 
strings, one per item scanned
With the comm port open the operator will scan several items
I will capture each string into an array
When he is finished scanning, he will touch another Button to close the Comm 
Port, and end the scanning operation.

My problem is how to have a Do Loop check a Button on each loop

I am in a loop checking the comm buffer count value, and waiting for input from 
the barcode scanner. In this loop I also tried checking the value of a 
variable. ( the variable would be changed from 0 to 1 by a Click event). It 
appears that the variable is not examined while in the loop. 

Would a UpdateScreen

I have searched the forum for Click Events and no luck

Any help is appreciated


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] For Next Loop using "NSCEPictureBox.NSCEPictureBoxCtrl.1"

2009-03-18 Thread bwolodko
Why do I get the Error ...

" Microsoft VBScript runtime error line 95 char 0 
Object required "pic1"

Here is the code

For I = 1 To 15
   If I <= 5 Then
   X = 70
   Y = 75 + ((I-1)*70) 
   End If
   If (I > 5) And (I <=10) Then
   X = 250
   Y = 75 + ((I-6)*70) 
   End If   
   If (I > 10) And (I <=15) Then
   X = 250
   Y = 75 + ((I-11)*70) 
   End If 
   picName = "pic" & CStr(I) 
AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",picName,X,Y,220,50
picName.ScaleMode = 3 ' pixels
picName.BorderStyle = 0 ' none
picName.Picture = DrlB(I)
Next

What am I missing?

Thanks
Ben



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Newbie Question on use of OptionButtons

2009-03-12 Thread bwolodko
Is the following Code the way to use the OptionButton in a Form?

Option Explicit
Dim HoleType

Sub OB1_Click
HoleType="Mechanical"
OB1.ForeColor = &H00C0&
OB1.Value = True
OB2.Value = False
OB2.ForeColor =&H&
OB3.Value = False
OB3.ForeColor =&H&
OB4.Value = False
OB4.ForeColor =&H&
End Sub

Sub OB2_Click
HoleType="Hand Hole"
OB2.ForeColor =&H00C0&
OB2.Value = True
OB1.Value = False
OB1.ForeColor =&H&
OB3.Value = False
OB3.ForeColor =&H&
OB4.Value = False
OB4.ForeColor =&H&
End Sub

Where would I find other OptionButton Examples?

Thanks





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: Windows CE 5.0 trouble with DLLRegisterServer

2008-10-31 Thread bwolodko
--- In [EMAIL PROTECTED], "George Henne" <[EMAIL PROTECTED]> wrote:
>
> A solution has been found (thank to David for his help!)
> 
> We've created a new installer that creates the registry entries
> explicitly. The change has been put into the next build, but if you 
need
> it in the meantime, please let us know.
> 
> This probably only seems to affect certain Windows CE embedded 
devices.
> It does not affect Windows Mobile devices.
> 

I have just purchased NSBasic CE to use to program a CuWin 3500 from 
Cubloc / Comfile. It is shipped with a Samsung ARM920T and Windows CE 
5.0 pro. I have yet to write any code, Is this installer something I 
should be requiring just to try some of the example code on your 
website?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---