[nsbasic-ce] Re: Writing to file keeps overwriting

2010-02-11 Thread chris_kenworthy
I'm going to hazard a guess that the form_load command for FS3 was: AddObject newObjects.utilctls.SFMain, FS3 The syntax given matches what's specified in http://www.nsbasic.com/ce/info/technotes/TN08.htm In that case, I would try: File.Seek(0,2) between OpenFile and WriteText. This moves

[nsbasic-ce] Re: Trap OK Button?

2010-02-17 Thread chris_kenworthy
I don't have the example to hand, but you can do this with output_close. Documentation Changes for Version 6.0.4 Output_Close: (Pocket PC) This event is sent to a program if ShowOKButton = True. You can do normal processing here, including MsgBox statements. The program will not actually exit

[nsbasic-ce] Re: Trap OK Button?

2010-02-17 Thread chris_kenworthy
You must have at least one payment type before you continue!, vbExclamation, Usage error Exit Sub End If frmMain_show paytypes_hide End Sub --- In nsbasic...@yahoogroups.com, chris_kenworthy chrisk...@... wrote: I don't have the example to hand, but you can do

[nsbasic-ce] Re: Trap OK Button?

2010-02-17 Thread chris_kenworthy
frmMain_show locates_hide openform = frmMain ShowOKButton False end Select End Sub --- In nsbasic...@yahoogroups.com, chris_kenworthy chrisk...@... wrote: Okay, the example I found didn't use output_close

[nsbasic-ce] Re: File reading help

2010-02-23 Thread chris_kenworthy
Hey! I've actually been doing some work recently on speeding up bulk insert into Sqlite. My findings may be of interest to you. First, there's this entry in the Sqlite FAQ: http://www.sqlite.org/faq.html#q19 The key is grouping as many inserts as possible into one transaction, so what I've

[nsbasic-ce] Re: File reading help

2010-02-23 Thread chris_kenworthy
--- In nsbasic...@yahoogroups.com, bigp...@... bigp...@... wrote: Also When using the File.Find command how to I code it so that for the specific line in the file .eg. 1,C0AAA006,AAA MOBILE STORAGE(ON)0001,, I only want it to search the data in the second comma, in the

[nsbasic-ce] Re: Help

2010-02-23 Thread chris_kenworthy
First question - is there any other code or setup in the program regarding the File control? There isn't a built-in one in NSbasic - you need to do an AddObject line or something similar. Also, if you're not going to do any more error checking, then you should probably add an 'On Error Goto 0'