From sunshine at public.kherson.ua Fri Oct 1 13:16:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 1 05:16:53 2004 Subject: STATUS of next beta Message-ID: Hi All, 1) yesterday I have stick in nasty bug in V4RB examples: some of them call DebugLEvel before Valentina Init This cause quite crash, no log, no debugger, nothing. Trying resolve this I have update my CW MAC project to use ICU 3.0 At least one good thing :-) Bit now other our developers must update projects on Windows. 2) I have create draft example using non-SQL API to test string searches And index by words also. I have found that we have no comfortable easy non-SQL functions for this. So today all our team put efforts to implement this new API Vstring.FindLike() Vstring.FindRegEx() Vstring.FindBeginsWith() Vstring.FindContains() Vstring.FindEndsWith() Each function in ideal must have 2 branches, one for indexed and other for non-indexed search. As I have told, all our developers work on this task together to get it as soon as possible. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina-list at vermontsoftworks.com Fri Oct 1 08:16:35 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Fri Oct 1 07:16:47 2004 Subject: STATUS of next beta In-Reply-To: References: Message-ID: Thanks for the update, Ruslan. Sounds like it should be a great release! > 1) yesterday I have stick in nasty bug in V4RB examples: > some of them call DebugLEvel before Valentina Init We could each correct these for ourselves, of course, but it will be nice to have them "officially" fixed. Thanks! > I have update my CW MAC project to use ICU 3.0 It's always good to be up-to-date, of course. Just curious, though: are there any specific benefits or differences we should be on the lookout for? > 2) I have create draft example using non-SQL API to test string > searches > And index by words also. > > I have found that we have no comfortable easy non-SQL functions for > this. > > So today all our team put efforts to implement this new API > > Vstring.FindLike() > Vstring.FindRegEx() > > Vstring.FindBeginsWith() > Vstring.FindContains() > Vstring.FindEndsWith() > > Each function in ideal must have 2 branches, one for indexed and other > for > non-indexed search. Oh, I'm very much looking forward to testing these. Great!! Just out of curiouslity, has any progress been made vis a vis the truncation of modified VarChar fields? (I reported this on Sept. 20th.) Many thanks, Ruslan! -- Erik From sunshine at public.kherson.ua Fri Oct 1 15:25:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 1 07:25:57 2004 Subject: STATUS of next beta In-Reply-To: Message-ID: On 10/1/04 3:16 PM, "Erik Mueller-Harder" wrote: > Thanks for the update, Ruslan. Sounds like it should be a great > release! > >> 1) yesterday I have stick in nasty bug in V4RB examples: >> some of them call DebugLEvel before Valentina Init > > We could each correct these for ourselves, of course, but it will be > nice to have them "officially" fixed. Thanks! And I believe I did this job ... May be some examples I have miss. And this have bring me yesterday cool dancing. :-) >> I have update my CW MAC project to use ICU 3.0 > > It's always good to be up-to-date, of course. Just curious, though: > are there any specific benefits or differences we should be on the > lookout for? You -- no. Just MacOS 10.5 also will include 3.0 release of ICU. I think they have fix bugs there, may be some improvements. >> 2) I have create draft example using non-SQL API to test string >> searches >> And index by words also. >> >> I have found that we have no comfortable easy non-SQL functions for >> this. >> >> So today all our team put efforts to implement this new API >> >> Vstring.FindLike() >> Vstring.FindRegEx() >> >> Vstring.FindBeginsWith() >> Vstring.FindContains() >> Vstring.FindEndsWith() >> >> Each function in ideal must have 2 branches, one for indexed and other >> for non-indexed search. > > Oh, I'm very much looking forward to testing these. Great!! Yes, and this will work with sets. I think most people will find this very useful and more easier for use than SQL queries. Besides I am going implement support of this operations directly in the indexes on low level. So it should be even more effective than in 1.x. > Just out of curiouslity, has any progress been made vis a vis the > truncation of modified VarChar fields? (I reported this on Sept. > 20th.) I remember it. On hold. I believe that Index By words this is the last big task for us. After it we simply will start add more and more examples and fix such bugs. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Fri Oct 1 08:31:29 2004 From: jda at his.com (jda) Date: Fri Oct 1 07:31:40 2004 Subject: STATUS of next beta In-Reply-To: References: Message-ID: > > >> So today all our team put efforts to implement this new API >>> >>> Vstring.FindLike() >>> Vstring.FindRegEx() >>> >>> Vstring.FindBeginsWith() >>> Vstring.FindContains() >>> Vstring.FindEndsWith() >>> >>> Each function in ideal must have 2 branches, one for indexed and other > >> for non-indexed search. >> That looks very cool. But if it is going to take more than a few days to implement and SQL searching works now, perhaps it would be worth seeding a new beta in which SQL searches of indexed by words fields works now? Jon From sunshine at public.kherson.ua Fri Oct 1 16:21:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 1 08:21:14 2004 Subject: STATUS of next beta In-Reply-To: Message-ID: On 10/1/04 3:31 PM, "jda" wrote: >>>> So today all our team put efforts to implement this new API >>>> >>>> Vstring.FindLike() >>>> Vstring.FindRegEx() >>>> >>>> Vstring.FindBeginsWith() >>>> Vstring.FindContains() >>>> Vstring.FindEndsWith() >>>> >>>> Each function in ideal must have 2 branches, one for indexed and other >>>> for non-indexed search. >>> > > That looks very cool. But if it is going to take more than a few days > to implement and SQL searching works now, perhaps it would be worth > seeding a new beta in which SQL searches of indexed by words fields > works now? I hope this API will be ready in few hours... At least without index. Btw, please show me how you use index by words with SQL. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 1 22:40:50 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 1 14:41:06 2004 Subject: V4RB, new API added Message-ID: "FindLike(inValue as String, inEscapeChar as String, inSelection as VSet = nil) as VSet"}, "FindRegEx(inValue as String, inSelection as VSet = nil) as VSet"}, "FindStartsWith(inValue as String, inSelection as VSet = nil) as VSet"}, "FindEndsWith(inValue as String, inSelection as VSet = nil) as VSet"}, "FindContains(inValue as String, inSelection as VSet = nil) as VSet"}, These new methods added to Vstring/Varchar classes And to Vtext. Now I am starting to test them in the V4RB example -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 1 23:10:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 1 15:11:07 2004 Subject: V4RB, idea - StructureBrowser. Can somebody help? In-Reply-To: Message-ID: On 10/1/04 10:45 PM, "Ruslan Zasukhin" wrote: Ops, actually this is for Valentina beta list. > Hi All, > Hi Frank, > > I think you have see that I have extract from viSQL the structure rowser > window into SHARED folder. > > Thanks to this we all can now very easy add this window into our projects. > > So I think we all are interested in the improvement of it. > > I see the next possible improvements right now: > > 1) browser simply show field flags. > But I suggest the next idea. > Let it show check boxes. > Let we can set ON/OFF that check boxes to change field flags > without programming. > > Can somebody do this? Frank? > > > 2) this Browser must become aware of new properties of > Database Tables and fields. > At least > > LocaleName > > Later > CollationStrength -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Oct 3 23:55:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Oct 3 15:55:25 2004 Subject: V4RB next beta. Anybody want it right now ? Message-ID: It can show example with new string search methods. I am waiting for answer 10 minutes -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Oct 3 17:19:51 2004 From: jda at his.com (jda) Date: Sun Oct 3 16:19:57 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: References: Message-ID: >It can show example with new string search methods. > >I am waiting for answer 10 minutes > I'm here... Jon From sunshine at public.kherson.ua Mon Oct 4 00:31:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Oct 3 16:32:05 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: Message-ID: On 10/4/04 12:19 AM, "jda" wrote: >> It can show example with new string search methods. >> >> I am waiting for answer 10 minutes >> > > I'm here... Ok, files uplaoded You need update all 3 archives. New ICU libs. ---------- Look at example API/IndexByWords It show new API functions. Tomorrow I will make yet interface I_FldString that will present in Vstring, Vtext, and VarChar fields. Because now it is not comfortable to call this methods: we must explicitly cast to Vstring or Vtext. SQL way to access index by words not works yet. I think tomorrow it will be ready. ------------- StartsWith -- do as indexed so not indexed search. Now let's look on EndsWith and Contains. We have implement that in case EXISTS an index, then we do INDEX SCAN. What this means? Let you have in table in column say million records. Let record have just one word. Valentina 1.x will do SCAN OF COLUMN, i.e. It will load and compare million of words. Valentina 2.0 will use index. For example, if from million words we have only 20,000 that are distinct, then INDEX SCANN will do index iteration and only 20,000 compare. Also index scan works for FindContains(). Also we need yet implement for FindLike() In other words, even such NOT-indexed operations as LIKE, EndsWith, Now will be faster than in 1.x -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Oct 3 18:36:54 2004 From: jda at his.com (jda) Date: Sun Oct 3 17:37:02 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: References: Message-ID: > > >It show new API functions. > >Tomorrow I will make yet interface I_FldString that will present in Vstring, >Vtext, and VarChar fields. Because now it is not comfortable to call this >methods: we must explicitly cast to Vstring or Vtext. > > >SQL way to access index by words not works yet. >I think tomorrow it will be ready. Great! The examples work well -- and they work for Unicode characters! The searches are case sensitive, though. I changed the table declaration to fld_varchar = tblPerson.CreateVarCharField( "fld_varchar", 2000, "", _ Valentina.fIndexed + Valentina.fIndexByWords + Valentina.fIndexCaseInsensetive) The search was still case sensitive. Should I be doing something different, or is this not yet implemented. Great work, Ruslan. Jon From jda at his.com Sun Oct 3 19:11:18 2004 From: jda at his.com (jda) Date: Sun Oct 3 18:11:22 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: References: Message-ID: A bug to report: I have a UTF-8 VText field defined as: textField = CreateTextField("textField", 128, "English") textField.compressed = true I use it in my preferences database, and in one case set it as follows: myCursor.setBlank s = "a" + chr(13) s = s + "an" + chr(13) s = s + "and" + chr(13) s = s + "as" + chr(13) s = s + "be" + chr(13) s = s + "DNA" + chr(13) s = s + "for" + chr(13) s = s + "I" + chr(13) s = s + "if" + chr(13) s = s + "in" + chr(13) s = s + "is" + chr(13) s = s + "it" + chr(13) s = s + "of" + chr(13) s = s + "on" + chr(13) s = s + "the" + chr(13) s = s + "RNA" + chr(13) s = s + "to" + chr(13) s = s + "USA" + chr(13) myCursor.Field("propertyName").setString("titleCaseList") myCursor.Field("textField").SetString(s) call myCursor.addRecord If I check myCursor *before* .addRecord, it holds the correct characters. When do the .addRecord and then retrieve the record, it contains garbage characters (maybe raw compressed bytes? I don't know). Jon From sunshine at public.kherson.ua Mon Oct 4 09:12:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 01:12:32 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: Message-ID: On 10/4/04 2:11 AM, "jda" wrote: Hi Jon, Few points 1) in 2.0 we must use not English, but "en_US" or e.g. "en_GB" 2) parameter language in constructors it seems is ignored yet in V4RB 3) remember that we have now 3 new parameters LocaleName, ... ? So IF your db have the same Locale settings for all tables and fields, Then I recommend to use simply one line db.LocaleName = "en_US" 4) you say that you have UTF8 vtext, field. Jon, where you see that you have specify UTF8 ? I see that you specify it to be single byte English. if you want UTf8 then do db.LocaleName = "UTF8" > A bug to report: > > I have a UTF-8 VText field defined as: > > textField = CreateTextField("textField", 128, "English") > textField.compressed = true > > I use it in my preferences database, and in one case set it as follows: > > myCursor.setBlank > s = "a" + chr(13) > s = s + "an" + chr(13) > s = s + "and" + chr(13) > s = s + "as" + chr(13) > s = s + "be" + chr(13) > s = s + "DNA" + chr(13) > s = s + "for" + chr(13) > s = s + "I" + chr(13) > s = s + "if" + chr(13) > s = s + "in" + chr(13) > s = s + "is" + chr(13) > s = s + "it" + chr(13) > s = s + "of" + chr(13) > s = s + "on" + chr(13) > s = s + "the" + chr(13) > s = s + "RNA" + chr(13) > s = s + "to" + chr(13) > s = s + "USA" + chr(13) > myCursor.Field("propertyName").setString("titleCaseList") > myCursor.Field("textField").SetString(s) > call myCursor.addRecord > > If I check myCursor *before* .addRecord, it holds the correct characters. > > When do the .addRecord and then retrieve the record, it contains > garbage characters (maybe raw compressed bytes? I don't know). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 4 09:13:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 01:13:43 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: Message-ID: On 10/4/04 1:36 AM, "jda" wrote: > fld_varchar = tblPerson.CreateVarCharField( "fld_varchar", 2000, "", _ > Valentina.fIndexed + Valentina.fIndexByWords + > Valentina.fIndexCaseInsensetive) > > > The search was still case sensitive. > > Should I be doing something different, or is this not yet implemented. > > Great work, Ruslan. Thank you. Case - sensitive index is not ready yet. My next task. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Oct 4 03:22:51 2004 From: jda at his.com (jda) Date: Mon Oct 4 02:22:56 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: References: Message-ID: > > >4) you say that you have UTF8 vtext, field. > Jon, where you see that you have specify UTF8 ? > I see that you specify it to be single byte English. > > if you want UTf8 then do > db.LocaleName = "UTF8" > The field is UTF-8 because it inherits it from the database: tempDataBase = new MyDataBase tempDatabase.StorageEncoding = "UTF8" tempDatabase.collationAttribute = 2 And for the record, in the debugger I see that the field is indeed UTF8. Isn't that the right way to do it? Jon From jda at his.com Mon Oct 4 03:26:51 2004 From: jda at his.com (jda) Date: Mon Oct 4 02:26:53 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: References: Message-ID: > > >1) in 2.0 we must use not English, but "en_US" or e.g. "en_GB" > > > >3) remember that we have now 3 new parameters LocaleName, ... ? > >So IF your db have the same Locale settings for all tables and fields, >Then I recommend to use simply one line > > db.LocaleName = "en_US" > If the db is set to UTF8 (unicode), what exactly is the point of setting a language? Is that for sorting? Jon From sunshine at public.kherson.ua Mon Oct 4 11:22:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 03:23:01 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: Message-ID: On 10/4/04 10:22 AM, "jda" wrote: >> >> >> 4) you say that you have UTF8 vtext, field. >> Jon, where you see that you have specify UTF8 ? >> I see that you specify it to be single byte English. >> >> if you want UTf8 then do >> db.LocaleName = "UTF8" >> > > The field is UTF-8 because it inherits it from the database: > > tempDataBase = new MyDataBase > tempDatabase.StorageEncoding = "UTF8" > tempDatabase.collationAttribute = 2 > > And for the record, in the debugger I see that the field is indeed UTF8. > > Isn't that the right way to do it? Yes, then you do not need specify English in constructor -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 4 11:24:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 03:24:31 2004 Subject: V4RB next beta. Anybody want it right now ? In-Reply-To: Message-ID: On 10/4/04 10:26 AM, "jda" wrote: >> 1) in 2.0 we must use not English, but "en_US" or e.g. "en_GB" >> >> >> >> 3) remember that we have now 3 new parameters LocaleName, ... ? >> >> So IF your db have the same Locale settings for all tables and fields, >> Then I recommend to use simply one line >> >> db.LocaleName = "en_US" >> > > If the db is set to UTF8 (unicode), what exactly is the point of > setting a language? Is that for sorting? This parameter is ignored for now. I think what todo with it. May be it will be removed Or it can be the same to locale name -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Oct 4 10:01:59 2004 From: jda at his.com (jda) Date: Mon Oct 4 09:02:11 2004 Subject: [RB] Variants allowed? In-Reply-To: References: Message-ID: Ruslan, I have a db updating method that receives the new data to be updated as a variant. This works fine in Valentina 1.x. But with the latest 2.0 beta when I issue this myCursor.Field(fieldName).setString(propertyValue) //propertyValue is a variant, in this case holding a string I get this error: Assertion (onlyInvariantChars) failed in "putil.c", line 2175 Will we have to explicitly convert variants to their specific data types before using them with 2.0? Or is this a bug/unimplemented feature? Jon From sunshine at public.kherson.ua Mon Oct 4 17:16:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 09:17:24 2004 Subject: [RB] Variants allowed? In-Reply-To: Message-ID: On 10/4/04 5:01 PM, "jda" wrote: > Ruslan, > > I have a db updating method that receives the new data to be updated > as a variant. This works fine in Valentina 1.x. But with the latest > 2.0 beta when I issue this > > myCursor.Field(fieldName).setString(propertyValue) //propertyValue is > a variant, in this case holding a string > > I get this error: > > Assertion (onlyInvariantChars) failed in "putil.c", line 2175 > > > Will we have to explicitly convert variants to their specific data > types before using them with 2.0? Or is this a bug/unimplemented > feature? Strange, because in fact Valentina 1.x was NOT aware of VARIANT type! But in 2.0 into VField was added value as VARIANT. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 4 17:18:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 09:18:25 2004 Subject: [RB] Variants allowed? In-Reply-To: Message-ID: On 10/4/04 5:01 PM, "jda" wrote: > > Ruslan, > > I have a db updating method that receives the new data to be updated > as a variant. This works fine in Valentina 1.x. But with the latest > 2.0 beta when I issue this > > myCursor.Field(fieldName).setString(propertyValue) //propertyValue is > a variant, in this case holding a string > > I get this error: > > Assertion (onlyInvariantChars) failed in "putil.c", line 2175 Aha, this is ICU 3.0 surprise. We will check it > Will we have to explicitly convert variants to their specific data > types before using them with 2.0? Or is this a bug/unimplemented > feature? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 4 19:12:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 11:12:40 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added Message-ID: Hi All, This new build demonstrates the work of new feature IndexStyle. * you can set IgnoreLength * you can set IgnoreWords In example you can see that ignored words are "cool trust". And IgnoreLength is 3 So you can see that words with length <= 3 are not found now by search, And words "cool" and "trust" also are not found. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina-list at vermontsoftworks.com Mon Oct 4 16:43:37 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Mon Oct 4 15:43:46 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: References: Message-ID: <10D6F442-1646-11D9-BCAB-000393DC4766@vermontsoftworks.com> This sounds great, Ruslan! I'm not successfully able to test this, however. I've downloaded all three files, replaced the existing VComponents folder with the new one, placed the contents of VEngine into the new VComponents folder, and put the V4RB plugin into the REALBasic plug-ins folder. Most things appear to work fine, but searching for short words and for the words "cool" and "trust" was *successful* in the "IndexByWordsWithStyle" example. I checked the code in your example, and it indeed "cool" and "trust" are added as ignoreWords, and the ignoreLength is set to 3. So, of course, I deleted the databases, set a breakpoint at the line where CreateIndexStyle is set, and ran the project. The program quits when I step through this line. I tried downloading everything again and re-installing it cleanly. I also checked to make sure that I didn't have a conflicting VComponents folder in my own user library (I didn't). Tried again, with the same exact results. The log file gets this far: Database_CreateIndexStyle... PARAM: inDatabase = 26206036 PARAM: inStyleName = "en_style1" return object = 3150256 The asserts file is empty. Let me know if there's anything else you'd like me to try. Thanks, -- Erik On Oct 4, 2004, at 12:12, Ruslan Zasukhin wrote: > Hi All, > > This new build demonstrates the work of new feature IndexStyle. > > * you can set IgnoreLength > * you can set IgnoreWords > > In example you can see that ignored words are "cool trust". > And IgnoreLength is 3 > > So you can see that words with length <= 3 are not found now by search, > And words "cool" and "trust" also are not found. > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina-beta mailing list > Valentina-beta@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina-beta > From sunshine at public.kherson.ua Mon Oct 4 23:46:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 15:46:44 2004 Subject: V4RB b17. Now works case insensitive indexing, search, !!! :-) Message-ID: Hi All, I am happy to inform that on of hardest tasks now works (at least it have start to brief :-) You can see this in the example IndexByWords. In the CreateDatabase() method I have add just 2 lines. db.Locale = "en_US" db.CollationAttribute = 0 Now you can enter something into search field and you will see that it also search words that have other case. Okay, so far so good. Now I think I will polish API of this CollationAttrinute. It will become method. Deal is that ICU allow us set 8 (!) attributes for collator. Using this we can for example build combinations when we consider accents but ignore case. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 4 23:48:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 15:48:20 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: <10D6F442-1646-11D9-BCAB-000393DC4766@vermontsoftworks.com> Message-ID: On 10/4/04 11:43 PM, "Erik Mueller-Harder" wrote: Hi Erik, Strange. In any case you can download now b17. But I will check this example right now on b17. > This sounds great, Ruslan! > > I'm not successfully able to test this, however. I've downloaded all > three files, replaced the existing VComponents folder with the new one, > placed the contents of VEngine into the new VComponents folder, and put > the V4RB plugin into the REALBasic plug-ins folder. > > Most things appear to work fine, but searching for short words and for > the words "cool" and "trust" was *successful* in the > "IndexByWordsWithStyle" example. I checked the code in your example, > and it indeed "cool" and "trust" are added as ignoreWords, and the > ignoreLength is set to 3. > > So, of course, I deleted the databases, set a breakpoint at the line > where CreateIndexStyle is set, and ran the project. The program quits > when I step through this line. > > I tried downloading everything again and re-installing it cleanly. I > also checked to make sure that I didn't have a conflicting VComponents > folder in my own user library (I didn't). Tried again, with the same > exact results. The log file gets this far: > > Database_CreateIndexStyle... > PARAM: inDatabase = 26206036 > PARAM: inStyleName = "en_style1" > return object = 3150256 > > The asserts file is empty. > > Let me know if there's anything else you'd like me to try. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Oct 4 16:49:26 2004 From: jda at his.com (jda) Date: Mon Oct 4 15:49:35 2004 Subject: V4RB b17. Now works case insensitive indexing, search, !!! :-) In-Reply-To: References: Message-ID: >Hi All, > >I am happy to inform that on of hardest tasks now works > (at least it have start to brief :-) > >You can see this in the example IndexByWords. > >In the CreateDatabase() method I have add just 2 lines. > > db.Locale = "en_US" > db.CollationAttribute = 0 > >Now you can enter something into search field and you will see that it also >search words that have other case. > > > >Okay, so far so good. > >Now I think I will polish API of this CollationAttrinute. It will become >method. Deal is that ICU allow us set 8 (!) attributes for collator. >Using this we can for example build combinations when we consider accents >but ignore case. > Great. Any idea when SQL searching will be ready? I can't start to test my real project until it is... Jon From jda at his.com Mon Oct 4 16:50:27 2004 From: jda at his.com (jda) Date: Mon Oct 4 15:50:34 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: <10D6F442-1646-11D9-BCAB-000393DC4766@vermontsoftworks.com> References: <10D6F442-1646-11D9-BCAB-000393DC4766@vermontsoftworks.com> Message-ID: > > >Let me know if there's anything else you'd like me to try. > Hm, I don't know why it finds "cool" for you -- it ignored it (correctly) for me... Jon From sunshine at public.kherson.ua Mon Oct 4 23:52:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 15:52:48 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: Message-ID: On 10/4/04 11:48 PM, "Ruslan Zasukhin" wrote: > Hi Erik, > > Strange. In any case you can download now b17. > > But I will check this example right now on b17. > > > >> This sounds great, Ruslan! >> >> I'm not successfully able to test this, however. I've downloaded all >> three files, replaced the existing VComponents folder with the new one, >> placed the contents of VEngine into the new VComponents folder, and put >> the V4RB plugin into the REALBasic plug-ins folder. Erik, I have run example IndexByWordsWithStyle using b17 and it works fine. * When I enter 'w' I get only one record, because word 'we' is ignored now. * when I enter 't' I get empty result. because no word 'trust' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 4 23:54:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 4 15:54:43 2004 Subject: V4RB b17. Now works case insensitive indexing, search, !!! :-) In-Reply-To: Message-ID: On 10/4/04 11:49 PM, "jda" wrote: >> Okay, so far so good. >> >> Now I think I will polish API of this CollationAttrinute. It will become >> method. Deal is that ICU allow us set 8 (!) attributes for collator. >> Using this we can for example build combinations when we consider accents >> but ignore case. >> > > Great. > > Any idea when SQL searching will be ready? I can't start to test my > real project until it is... Ivan have redo LIKE and REGEX, now he work with LEFT, RIGHT and SUBSTR. I think at morning (Ukraine) we will get it. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina-list at vermontsoftworks.com Mon Oct 4 17:00:03 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Mon Oct 4 16:00:11 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: References: Message-ID: <5D0FB70C-1648-11D9-BCAB-000393DC4766@vermontsoftworks.com> Strange. OK -- I'll download b17 and install and test it tomorrow morning (U.S.). Pretty clearly it's something I've done wrong here, but I can't think what it would be.... Thanks, -- Erik On Oct 4, 2004, at 16:52, Ruslan Zasukhin wrote: > I have run example IndexByWordsWithStyle using b17 and it works fine. > > * When I enter 'w' I get only one record, > because word 'we' is ignored now. > > * when I enter 't' I get empty result. > because no word 'trust' From vidal_olivier at yahoo.fr Tue Oct 5 11:42:16 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Tue Oct 5 04:33:23 2004 Subject: Valentina 2 Message-ID: Hi Valentina Team, I know that you work a lot on Valentina 2. Everything takes place well as expected ? Be you satisfied with the first betas ? Do you think that the version 2.0 will be ready before the end of the year? 'HAVING' (in 'SELECT') is foreseen in the version 2.0? Thank you very much for all your work. Olivier From sunshine at public.kherson.ua Tue Oct 5 12:56:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 04:56:33 2004 Subject: Valentina 2 In-Reply-To: Message-ID: On 10/5/04 12:42 PM, "olivier" wrote: Hi Oliver, > I know that you work a lot on Valentina 2. > > Everything takes place well as expected ? yes > Be you satisfied with the first betas ? yes > Do you think that the version 2.0 will be ready before the end of the > year? Yes. Even sooner > 'HAVING' (in 'SELECT') is foreseen in the version 2.0? yes > Thank you very much for all your work. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina-list at vermontsoftworks.com Tue Oct 5 08:33:09 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Tue Oct 5 07:33:18 2004 Subject: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: <5D0FB70C-1648-11D9-BCAB-000393DC4766@vermontsoftworks.com> References: <5D0FB70C-1648-11D9-BCAB-000393DC4766@vermontsoftworks.com> Message-ID: b17 resolves everything I reported, Ruslan. I installed it *exactly* the same way, so I'm still a bit puzzled as to what was wrong before. Ah, well.... Question: If I make no changes to your code, typing "cross" -- or even just "c" -- with pmFilterMode = "begins with", then "cross-platform database" does *not* show up. Using "contains" instead of "begins with" shows the record fine. Bug? Or me, again? :-) Thanks, -- Erik On Oct 4, 2004, at 17:00, Erik Mueller-Harder wrote: > Strange. OK -- I'll download b17 and install and test it tomorrow > morning (U.S.). Pretty clearly it's something I've done wrong here, > but I can't think what it would be.... > > Thanks, > > -- Erik > > > On Oct 4, 2004, at 16:52, Ruslan Zasukhin wrote: > >> I have run example IndexByWordsWithStyle using b17 and it works fine. >> >> * When I enter 'w' I get only one record, >> because word 'we' is ignored now. >> >> * when I enter 't' I get empty result. >> because no word 'trust' From peter.de.berdt at pandora.be Tue Oct 5 14:46:32 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Tue Oct 5 07:46:46 2004 Subject: URL for beta files Message-ID: <95B32E9E-16CC-11D9-AFE9-000393DB2B60@pandora.be> Due to lack of time, I haven't been actively participating in the beta testing of Valentina anymore. Anyhow, now that I have some time left, I want to pick up again and have a look at the plethora of new features that are implemented. Sadly, I threw away the url for the beta files, could someone please repost the download page? Thanks! Best regards Peter De Berdt From jda at his.com Tue Oct 5 08:49:30 2004 From: jda at his.com (jda) Date: Tue Oct 5 07:49:39 2004 Subject: Diagnose In-Reply-To: References: Message-ID: Hi Ruslan, You asked me to move this to the betas list, so here it is. Once 2.0 is stable/released, I think a developer-oriented diagnose would be very useful. As I imagine it, it would return a string (or object) containing the results of the diagnose, so that the developer can present his own report to the user. Obviously, the diagnose string/object would not return everything that checked out OK, but only the things that were problems, e.g. diagnose.errorCount diagnose.errorNum(i) diagnose.errorString(i) If there is, for example, an index error, we could simple repair the index for the user automatically. If the problems were more serious, such as a corrupted table, we could offer to rebuild the database by dump/import. We could run the diagnose every time a db is opened, too, to catch corruption errors early and warn our users before they become compounded and result in trashed databases (which does occasionally happen). What do you think? Jon From jda at his.com Tue Oct 5 08:50:16 2004 From: jda at his.com (jda) Date: Tue Oct 5 07:50:22 2004 Subject: URL for beta files In-Reply-To: <95B32E9E-16CC-11D9-AFE9-000393DB2B60@pandora.be> References: <95B32E9E-16CC-11D9-AFE9-000393DB2B60@pandora.be> Message-ID: >Sadly, I threw away the url for the beta files, could someone please >repost the download page? Thanks! > http://paradigmasoft.com/download/v2_beta/download.html Jon From sunshine at public.kherson.ua Tue Oct 5 15:51:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 07:51:49 2004 Subject: URL for beta files In-Reply-To: <95B32E9E-16CC-11D9-AFE9-000393DB2B60@pandora.be> Message-ID: On 10/5/04 3:46 PM, "Peter De Berdt" wrote: > Due to lack of time, I haven't been actively participating in the beta > testing of Valentina anymore. Anyhow, now that I have some time left, I > want to pick up again and have a look at the plethora of new features > that are implemented. > > Sadly, I threw away the url for the beta files, could someone please > repost the download page? Thanks! http://paradigmasoft.com/download/v2_beta/download.html -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From peter.de.berdt at pandora.be Tue Oct 5 14:54:15 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Tue Oct 5 07:54:19 2004 Subject: URL for beta files In-Reply-To: References: Message-ID: That was fast :) Thanks On 5 Oct 2004, at 14:51, Ruslan Zasukhin wrote: > On 10/5/04 3:46 PM, "Peter De Berdt" wrote: > >> Due to lack of time, I haven't been actively participating in the beta >> testing of Valentina anymore. Anyhow, now that I have some time left, >> I >> want to pick up again and have a look at the plethora of new features >> that are implemented. >> >> Sadly, I threw away the url for the beta files, could someone please >> repost the download page? Thanks! > > > http://paradigmasoft.com/download/v2_beta/download.html > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina-beta mailing list > Valentina-beta@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina-beta > From sunshine at public.kherson.ua Tue Oct 5 17:20:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 09:20:52 2004 Subject: [V4RB new build] added SQL/IndexByWords example Message-ID: Hi Jon, You are close to happiness! :-) New build (only engine and V4RB archives need to download) Includes new example for SQL way to do string searches. You can see how using SQL we can now do search on INDEX BY WORDS the searches STARTS WITH ENDS WITH CONTAINS Note, that Valentina 1.x was not able do on index the last 2 kind of searches. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 5 17:24:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 09:24:53 2004 Subject: Diagnose In-Reply-To: Message-ID: On 10/5/04 3:49 PM, "jda" wrote: > Hi Ruslan, > > You asked me to move this to the betas list, so here it is. > > Once 2.0 is stable/released, I think a developer-oriented diagnose > would be very useful. As I imagine it, it would return a string (or > object) containing the results of the diagnose, so that the developer > can present his own report to the user. > > Obviously, the diagnose string/object would not return everything > that checked out OK, but only the things that were problems, e.g. > > diagnose.errorCount > diagnose.errorNum(i) > diagnose.errorString(i) > > If there is, for example, an index error, we could simple repair the > index for the user automatically. If the problems were more serious, > such as a corrupted table, we could offer to rebuild the database by > dump/import. Good idea! > We could run the diagnose every time a db is opened, too, to catch > corruption errors early and warn our users before they become > compounded and result in trashed databases (which does occasionally > happen). > > What do you think? Hi Jon, I think String is not a problem. Than more that internally we do build it as string originally... I think we can add API functions db.Diagnose() And yes, it is interesting idea to use object for this. Of course it will require many changes in the current code... Ech, could not you tell this 2-3 months ago. :-) I think for 2.0 we need at least Diagnose() as string. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at robelko.com Tue Oct 5 16:52:39 2004 From: rjb at robelko.com (Robert Brenstein) Date: Tue Oct 5 10:10:57 2004 Subject: Diagnose In-Reply-To: References: Message-ID: >On 10/5/04 3:49 PM, "jda" wrote: > >> Hi Ruslan, >> >> You asked me to move this to the betas list, so here it is. >> >> Once 2.0 is stable/released, I think a developer-oriented diagnose >> would be very useful. As I imagine it, it would return a string (or >> object) containing the results of the diagnose, so that the developer >> can present his own report to the user. >> >> Obviously, the diagnose string/object would not return everything >> that checked out OK, but only the things that were problems, e.g. >> >> diagnose.errorCount >> diagnose.errorNum(i) >> diagnose.errorString(i) >> >> If there is, for example, an index error, we could simple repair the >> index for the user automatically. If the problems were more serious, >> such as a corrupted table, we could offer to rebuild the database by >> dump/import. > >Good idea! IMHO, open database should first check the integrity flag. If it is okay, it should go ahead and open the db. If not, it should return an error that db was not closed properly. Then, we decide whether to run diagnose (and act upon the results) or ask to open it anyway as it is. I would not like to have this occuring automatically (just like I always hated Valentina changing file format on me silently). Diagnose should have options telling it what exactly to do and what to report. In some programs, I may want to have only errors reported, but in others, I may want all good and bad. The results should probably be a single report string, although, may be in highly OO environments using objects would be preferable. The single-string report could be returned as XML, so we could parse it to extract individual information we need. Most environments have xml parsing libraries available after all. > >> We could run the diagnose every time a db is opened, too, to catch >> corruption errors early and warn our users before they become >> compounded and result in trashed databases (which does occasionally >> happen). >> >> What do you think? > >Hi Jon, > >I think String is not a problem. > >Than more that internally we do build it as string originally... > >I think we can add API functions > > db.Diagnose() > >And yes, it is interesting idea to use object for this. >Of course it will require many changes in the current code... >Ech, could not you tell this 2-3 months ago. :-) But, Ruslan, this is really not a new idea. It has been discussed at least a few times in the past. Sometimes I have a feeling that you do not have a proper system tracking feature/bug requests. May be you should consider something like Bugzilla (not that I would truly recommend this specific product) for version 2. >I think for 2.0 we need at least Diagnose() as string. > Robert From jda at his.com Tue Oct 5 11:31:46 2004 From: jda at his.com (jda) Date: Tue Oct 5 10:31:56 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: References: Message-ID: >Hi Jon, > >You are close to happiness! :-) > Not quite there, yet. :-> Now I'm having problems retrieving data from the preferences database -> out of bounds error. I'll have to track that down. Also, this query fails, even though it should work: select id,hit from thereferences where ((left(authors, 1) = 'A')) order by id Any idea why? Ruslan, maybe you could try my project yourself -- I have a newer version updated as per your comments on this list if you would like it. Jon P.S. In Valentina 1.x the number parameter in LEFT() was ignored. Is that true in V2.x, too? Or do we have to pay attention to this... From sunshine at public.kherson.ua Tue Oct 5 20:08:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 12:09:04 2004 Subject: Diagnose In-Reply-To: Message-ID: On 10/5/04 5:52 PM, "Robert Brenstein" wrote: > IMHO, open database should first check the integrity flag. If it is > okay, it should go ahead and open the db. If not, it should return an > error that db was not closed properly. Then, we decide whether to run > diagnose (and act upon the results) or ask to open it anyway as it > is. I would not like to have this occuring automatically (just like I > always hated Valentina changing file format on me silently). agree > Diagnose should have options telling it what exactly to do and what > to report. In some programs, I may want to have only errors reported, > but in others, I may want all good and bad. The results should > probably be a single report string, although, may be in highly OO > environments using objects would be preferable. Well, Diagnose() in 2.0 have VerboseLevel parameter > The single-string report could be returned as XML, so we could parse > it to extract individual information we need. Most environments have > xml parsing libraries available after all. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 5 20:11:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 12:11:44 2004 Subject: Diagnose In-Reply-To: Message-ID: On 10/5/04 5:52 PM, "Robert Brenstein" wrote: >> I think String is not a problem. >> >> Than more that internally we do build it as string originally... >> >> I think we can add API functions >> >> db.Diagnose() >> >> And yes, it is interesting idea to use object for this. >> Of course it will require many changes in the current code... >> Ech, could not you tell this 2-3 months ago. :-) > > > But, Ruslan, this is really not a new idea. It has been discussed at > least a few times in the past. Sometimes I have a feeling that you do > not have a proper system tracking feature/bug requests. May be you > should consider something like Bugzilla (not that I would truly > recommend this specific product) for version 2. You are right Robert, We have no yet bug system. And we think about it of course. But as far as I remember before we did discuss only string return. Jon have suggest to use some object with properties. You now have suggest to use XML. I see that XML is better from point of view that it is more easier for us -- less API in each IDE. But it is harder for TODO. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 5 20:18:53 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 12:19:00 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: Message-ID: On 10/5/04 6:31 PM, "jda" wrote: >> Hi Jon, >> >> You are close to happiness! :-) >> > > Not quite there, yet. :-> > > Now I'm having problems retrieving data from the preferences database > -> out of bounds error. I'll have to track that down. Jon, ONE POINT. Please do not use for now UTF8. Only UTF16. I have no gurantee that in UTF8 all works fine. You see? We need first of all build kernel design for major features. Then only we will spend time for UTF8 conversion. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 5 20:20:03 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 12:20:10 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: Message-ID: On 10/5/04 6:31 PM, "jda" wrote: > Also, this query fails, even though it should work: > > select id,hit from thereferences where ((left(authors, 1) = 'A')) order by id > > Any idea why? Any error code ? > Ruslan, maybe you could try my project yourself -- I have a newer > version updated as per your comments on this list if you would like > it. Just please first of all setup UTF16 usage > Jon > > P.S. In Valentina 1.x the number parameter in LEFT() was ignored. Is > that true in V2.x, too? Or do we have to pay attention to this... I believe we consider it now. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 5 21:20:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 13:20:47 2004 Subject: FIXED: NEW BUILD V4RB, example IndexByWordsWithStyle added In-Reply-To: Message-ID: On 10/5/04 3:33 PM, "Erik Mueller-Harder" wrote: > Question: If I make no changes to your code, typing "cross" -- or even > just "c" -- with pmFilterMode = "begins with", then "cross-platform > database" does *not* show up. Using "contains" instead of "begins > with" shows the record fine. Bug? Or me, again? :-) BUG, fixed. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Tue Oct 5 14:33:47 2004 From: jda at his.com (jda) Date: Tue Oct 5 13:34:01 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: References: Message-ID: > > Also, this query fails, even though it should work: >> >> select id,hit from thereferences where ((left(authors, 1) = 'A')) >>order by id >> >> Any idea why? > >Any error code ? No. Just 0 records returned. > > >> Ruslan, maybe you could try my project yourself -- I have a newer >> version updated as per your comments on this list if you would like >> it. > >Just please first of all setup UTF16 usage > OK -- perhaps this is the kind of thing you might mention beforehand? It will save you time, too... Thanks. Jon From jda at his.com Tue Oct 5 15:05:54 2004 From: jda at his.com (jda) Date: Tue Oct 5 14:06:06 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: References: Message-ID: > > Also, this query fails, even though it should work: >> > > select id,hit from thereferences where ((left(authors, 1) = 'A')) >order by id > > >Just please first of all setup UTF16 usage > OK, I did. .storageEncoding = default (UTF-16). The search above still failed... Jon From sunshine at public.kherson.ua Tue Oct 5 22:18:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 14:18:48 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: Message-ID: On 10/5/04 10:05 PM, "jda" wrote: >>> Also, this query fails, even though it should work: >>> >>> select id,hit from thereferences where ((left(authors, 1) = 'A')) >> order by id >> >> >> Just please first of all setup UTF16 usage >> > > OK, I did. .storageEncoding = default (UTF-16). > > The search above still failed... Then please send me something May be only db and I will do it in viSQL -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 5 22:19:06 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 14:19:13 2004 Subject: [V4RB new build] added SQL/IndexByWords example In-Reply-To: Message-ID: On 10/5/04 10:05 PM, "jda" wrote: >>> Also, this query fails, even though it should work: >>> >>> select id,hit from thereferences where ((left(authors, 1) = 'A')) >> order by id >> >> >> Just please first of all setup UTF16 usage >> > > OK, I did. .storageEncoding = default (UTF-16). > > The search above still failed... What is remove EXTRA () -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Tue Oct 5 15:21:54 2004 From: jda at his.com (jda) Date: Tue Oct 5 14:22:04 2004 Subject: VText .SetString fails In-Reply-To: References: Message-ID: There is no question, now. myCursor.Field("textField").setString(s) myCursor.addRecord causes the text in s to become garbled (textField is a VText field, UTF16, compressed, indexedByWord and caseInsensitive). The text in the cursor is OK until after the .addRecord. Jon From sunshine at public.kherson.ua Tue Oct 5 22:26:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 14:27:03 2004 Subject: VText .SetString fails In-Reply-To: Message-ID: On 10/5/04 10:21 PM, "jda" wrote: > There is no question, now. > > myCursor.Field("textField").setString(s) > myCursor.addRecord > > causes the text in s to become garbled (textField is a VText field, > UTF16, compressed, indexedByWord and caseInsensitive). The text in > the cursor is OK until after the .addRecord. Ok, Btw, I recommend to compile and use viSQL on 2.0 Very useful. ** Try remove compressed. We have not work deeply on this. ** caseInsensitive -- I think this flag is not needed. we can and must control this via CollationAtribute -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Oct 6 00:11:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 5 16:11:21 2004 Subject: V4RB, syntax for sorting of sets. Message-ID: Hi all, I want discuss one point. So let we have selection as result of Find() dim set as Vset Now I add to Vtable class new method Sort( set, fld, Ascending ) as VSet This method allow us to sort selection of found records by single field. Also we must to have other function, that will allow us sort by few fields. It can looks for example as Sort( set, order() as VSortPair ) as VSet Then in REALbasic code we could do dim order as array ? order(1) = new VSortPair( f1, kAsc ) order(2) = new VSortPair( f3, kDesc ) order(3) = new VSortPair( f2, kAsc ) SortedSet = t.Sort( set, order ) Do you like such syntax? It seems we have no other way for RB... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Tue Oct 5 19:03:32 2004 From: jda at his.com (jda) Date: Tue Oct 5 18:03:38 2004 Subject: VText .SetString fails In-Reply-To: References: Message-ID: > > > myCursor.Field("textField").setString(s) >> myCursor.addRecord >> >> causes the text in s to become garbled (textField is a VText field, > > UTF16, compressed, indexedByWord and caseInsensitive). The text in > > the cursor is OK until after the .addRecord. > > >** Try remove compressed. We have not work deeply on this. > Yes, when I remove that it works. So compressed caused that problem... Jon From jda at his.com Tue Oct 5 19:36:48 2004 From: jda at his.com (jda) Date: Tue Oct 5 18:36:53 2004 Subject: SQL search crash on ConvertValue In-Reply-To: References: Message-ID: > > >> >>> Just please first of all setup UTF16 usage >>> >> >> OK, I did. .storageEncoding = default (UTF-16). >> >> The search above still failed... > >What is remove EXTRA () > I tried this search in a UTF16 database: select hit from thetable where myField='test' It crashed, with this log: Thread 0 Crashed: 0 Kernel_Carbon_Debug.shlb 0x0226b104 Convert_str_str__3fblFPCQ23fbl7I_ValuePQ23fbl7I_Value + 0xb8 1 Kernel_Carbon_Debug.shlb 0x02056200 ConvertValue__3fblFUlUlPCQ23fbl7I_ValuePQ23fbl7I_Value + 0x54 2 Kernel_Carbon_Debug.shlb 0x02056300 ConvertValue__3fblFPCQ23fbl7I_ValuePQ23fbl7I_Value + 0x5c 3 Kernel_Carbon_Debug.shlb 0x020564c4 ConvertValue__3fblFRCQ23fbl7I_ValueUl + 0x11c 4 Kernel_Carbon_Debug.shlb 0x0206d3d4 CastValueType__Q23fbl9Field_ImpCFQ23fbl26smart_ptr + 0xa0 5 Kernel_Carbon_Debug.shlb 0x02066fc8 Find__Q23fbl9Field_ImpCFQ23fbl26smart_ptrQ23fbl25smart_ptr + 0x40 6 Kernel_Carbon_Debug.shlb 0x0235e12c Execute__Q23fbl17PNode_Field_ValueFQ23fbl24smart_ptr + 0x58 7 Kernel_Carbon_Debug.shlb 0x0227e570 Execute__Q23fbl4PlanFv + 0x4c 8 Kernel_Carbon_Debug.shlb 0x02210f1c Execute__Q23fbl5QueryFv + 0x7c 9 Kernel_Carbon_Debug.shlb 0x02275e08 Refresh__Q23fbl14Table_IndirectFv + 0x1d0 10 Kernel_Carbon_Debug.shlb 0x02275b4c put_Where__Q23fbl14Table_IndirectFQ23fbl25smart_ptr + 0x2c 11 Kernel_Carbon_Debug.shlb 0x0212c898 CreateResultTable__Q24vsql14Node_TableExprFQ23fbl27smart_ptrUl + 0x154 12 Kernel_Carbon_Debug.shlb 0x0212afa4 Execute_Select_From1_Where__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x244 13 Kernel_Carbon_Debug.shlb 0x0212d9dc Execute_Select_From_Where_Indirect__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x54 14 Kernel_Carbon_Debug.shlb 0x0212d90c Execute_Select_From_Where__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x64 15 Kernel_Carbon_Debug.shlb 0x02129d94 ExecuteSql__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x50 16 Kernel_Carbon_Debug.shlb 0x021262b8 ExecuteSql__Q24vsql16Node_QuerySelectFRQ24vsql11Environment + 0x64 17 Kernel_Carbon_Debug.shlb 0x021421d0 ExecuteSql__Q24vsql11Node_SelectFRQ24vsql11Environment + 0x30 18 Kernel_Carbon_Debug.shlb 0x0221e9d0 ProceedCommand__Q24vsql8DatabaseFRQ24vsql11Environment + 0x68 19 Kernel_Carbon_Debug.shlb 0x0221d3a4 SqlSelect__Q24vsql8DatabaseFRCQ23fbl6StringQ24vsql15ECursorLocationQ24vsql9ELockTypeQ24vsql16ECursorDirectionQ23fbl70smart_ptr>> + 0xe8 20 Plugin 0x005034c8 Database_SqlSelect__FP16REALobjectStructP16REALstringStructiiiQ23fbl70smart_ptr>> + 0x22c 21 Plugin 0x00502ef0 Database_SqlSelect_1__FP16REALobjectStructP16REALstringStructiii + 0x54 From sunshine at public.kherson.ua Wed Oct 6 08:33:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Oct 6 00:33:16 2004 Subject: VText .SetString fails In-Reply-To: Message-ID: On 10/6/04 2:03 AM, "jda" wrote: >>> myCursor.Field("textField").setString(s) >>> myCursor.addRecord >>> >>> causes the text in s to become garbled (textField is a VText field, >>> UTF16, compressed, indexedByWord and caseInsensitive). The text in >>> the cursor is OK until after the .addRecord. >> >> >> ** Try remove compressed. We have not work deeply on this. >> > > Yes, when I remove that it works. So compressed caused that problem... Ok, so problem with search query also resolved ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina-list at vermontsoftworks.com Wed Oct 6 07:38:15 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Wed Oct 6 06:38:25 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: References: Message-ID: <35FE4E8A-178C-11D9-A0FD-000393DC4766@vermontsoftworks.com> On Oct 5, 2004, at 17:11, Ruslan Zasukhin wrote: > dim order as array ? > > order(1) = new VSortPair( f1, kAsc ) > order(2) = new VSortPair( f3, kDesc ) > order(3) = new VSortPair( f2, kAsc ) > > SortedSet = t.Sort( set, order ) > > > Do you like such syntax? It's a little verbose, but it's certainly clear and orderly. I assume the first array element would be the primary sort. I'd be fine with it -- but then I used to write in COBOL. ;-) > It seems we have no other way for RB... Would this be impractical: SortedSet = t.Sort(set, f1, kAsc, f3, kDesc, f2, kAsc) or even: Set.Sort(f1, kAsc, f3, kDesc, f2, kAsc) -- Erik From jda at his.com Wed Oct 6 07:39:21 2004 From: jda at his.com (jda) Date: Wed Oct 6 06:39:24 2004 Subject: VText .SetString fails In-Reply-To: References: Message-ID: >On 10/6/04 2:03 AM, "jda" wrote: > >>>> myCursor.Field("textField").setString(s) >>>> myCursor.addRecord >>>> >>>> causes the text in s to become garbled (textField is a VText field, >>>> UTF16, compressed, indexedByWord and caseInsensitive). The text in >>>> the cursor is OK until after the .addRecord. >>> >>> >>> ** Try remove compressed. We have not work deeply on this. >>> >> >> Yes, when I remove that it works. So compressed caused that problem... > >Ok, so problem with search query also resolved ? > No. Those fields are not compressed. I haven't gotten any search to work. You have my project... Jon From sunshine at public.kherson.ua Wed Oct 6 15:11:06 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Oct 6 07:11:13 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: <35FE4E8A-178C-11D9-A0FD-000393DC4766@vermontsoftworks.com> Message-ID: On 10/6/04 2:38 PM, "Erik Mueller-Harder" wrote: > On Oct 5, 2004, at 17:11, Ruslan Zasukhin wrote: > >> dim order as array ? >> >> order(1) = new VSortPair( f1, kAsc ) >> order(2) = new VSortPair( f3, kDesc ) >> order(3) = new VSortPair( f2, kAsc ) >> >> SortedSet = t.Sort( set, order ) >> >> >> Do you like such syntax? > > It's a little verbose, but it's certainly clear and orderly. I assume > the first array element would be the primary sort. I'd be fine with it > -- but then I used to write in COBOL. ;-) > >> It seems we have no other way for RB... > > Would this be impractical: > > SortedSet = t.Sort(set, f1, kAsc, f3, kDesc, f2, kAsc) > > or even: > > Set.Sort(f1, kAsc, f3, kDesc, f2, kAsc) But how I can do this in RB plugin ?! REALbasic do not allow functions with variable number of parameters. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From AYU8 at CDC.GOV Wed Oct 6 08:33:24 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Wed Oct 6 07:33:39 2004 Subject: V4RB, syntax for sorting of sets. Message-ID: Ruslan said: > Hi all, > > I want discuss one point. > > So let we have selection as result of Find() > > dim set as Vset > > Now I add to Vtable class new method > > Sort( set, fld, Ascending ) as VSet > > This method allow us to sort selection of found records by > single field. Also we must to have other function, that will > allow us sort by few fields. > > It can looks for example as > > Sort( set, order() as VSortPair ) as VSet > > > Then in REALbasic code we could do > > dim order as array ? > > order(1) = new VSortPair( f1, kAsc ) > order(2) = new VSortPair( f3, kDesc ) > order(3) = new VSortPair( f2, kAsc ) > > SortedSet = t.Sort( set, order ) > > > Do you like such syntax? > > It seems we have no other way for RB... > Hi Ruslan, I personally think that would work fine. I have one question. Are the fields (f1,f2,f3) in your example Vfields or the name of the field as a string -- or could we have both :-) ? FYI, REALbasic doesn't have a "dim as array", the REALbasic code would look something like... Dim order() as VSortPair Order.append(new VSortPair( f1, kAsc )) Order.append(new VSortPair( f3, kDesc )) Order.append(new VSortPair( f2, kAsc )) SortedSet = t.Sort( set, order ) Take care and keep up the good work. -John From sunshine at public.kherson.ua Wed Oct 6 15:50:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Oct 6 07:50:59 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: Message-ID: On 10/6/04 3:33 PM, "Sims, John" wrote: >> I want discuss one point. >> >> So let we have selection as result of Find() >> >> dim set as Vset >> >> Now I add to Vtable class new method >> >> Sort( set, fld, Ascending ) as VSet >> >> This method allow us to sort selection of found records by >> single field. Also we must to have other function, that will >> allow us sort by few fields. >> >> It can looks for example as >> >> Sort( set, order() as VSortPair ) as VSet >> >> >> Then in REALbasic code we could do >> >> dim order as array ? >> >> order(1) = new VSortPair( f1, kAsc ) >> order(2) = new VSortPair( f3, kDesc ) >> order(3) = new VSortPair( f2, kAsc ) >> >> SortedSet = t.Sort( set, order ) >> >> >> Do you like such syntax? >> >> It seems we have no other way for RB... >> > > Hi Ruslan, > > I personally think that would work fine. I have one question. Are the > fields (f1,f2,f3) in your example Vfields or the name of the field as a > string -- or could we have both :-) ? This can't be name because then IN WHICH TABLE ? > FYI, REALbasic doesn't have a "dim as array", the REALbasic code would > look something like... > > Dim order() as VSortPair > > Order.append(new VSortPair( f1, kAsc )) > Order.append(new VSortPair( f3, kDesc )) > Order.append(new VSortPair( f2, kAsc )) > > SortedSet = t.Sort( set, order ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Wed Oct 6 16:45:19 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Wed Oct 6 09:45:39 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: Message-ID: Hi Ruslan, on 5-10-2004 23:11, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > So let we have selection as result of Find() > > dim set as Vset > > Now I add to Vtable class new method > > Sort( set, fld, Ascending ) as VSet > > This method allow us to sort selection of found records by single field. > Also we must to have other function, that will allow us sort by few fields. > > It can looks for example as > > Sort( set, order() as VSortPair ) as VSet > > > Then in REALbasic code we could do > > dim order as array ? > > order(1) = new VSortPair( f1, kAsc ) > order(2) = new VSortPair( f3, kDesc ) > order(3) = new VSortPair( f2, kAsc ) > > SortedSet = t.Sort( set, order ) > > > Do you like such syntax? > > It seems we have no other way for RB... > > I could think of a vOrder object I have similar object for a query class I've defined it has a prop vSort array vSort has props field as vField ascending as Boolean vOrder has also some methods like AddSort(theField as vField, theOrder as Boolean = true) // order defaults to ascending HTH Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From yeomans at desuetude.com Wed Oct 6 12:56:00 2004 From: yeomans at desuetude.com (Charles Yeomans) Date: Wed Oct 6 11:56:10 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: References: Message-ID: <99E2B97E-17B8-11D9-9EEF-000A957CB4CC@desuetude.com> On Oct 6, 2004, at 8:11 AM, Ruslan Zasukhin wrote: > On 10/6/04 2:38 PM, "Erik Mueller-Harder" > wrote: > >> On Oct 5, 2004, at 17:11, Ruslan Zasukhin wrote: >> >>> dim order as array ? >>> >>> order(1) = new VSortPair( f1, kAsc ) >>> order(2) = new VSortPair( f3, kDesc ) >>> order(3) = new VSortPair( f2, kAsc ) >>> >>> SortedSet = t.Sort( set, order ) >>> >>> >>> Do you like such syntax? >> >> It's a little verbose, but it's certainly clear and orderly. I assume >> the first array element would be the primary sort. I'd be fine with >> it >> -- but then I used to write in COBOL. ;-) >> >>> It seems we have no other way for RB... >> >> Would this be impractical: >> >> SortedSet = t.Sort(set, f1, kAsc, f3, kDesc, f2, kAsc) >> >> or even: >> >> Set.Sort(f1, kAsc, f3, kDesc, f2, kAsc) > > But how I can do this in RB plugin ?! > > REALbasic do not allow functions with variable number of parameters. But it does. The ParamArray keyword was added to Rb 5.5. You declare a method like so -- Sub Sort(ParamArray sortPairs as VSortPair) You then call it in code as follows. Sort sortPair1, sortPair2, ..., sortPairN sortPairs is passed into the method as an Rb array containing the elements sortPair1, ..., sortPairN. I don't know how this works from the plugin standpoint, but I am sure that you can figure it out. Charles Yeomans From sunshine at public.kherson.ua Wed Oct 6 20:30:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Oct 6 12:30:25 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: <99E2B97E-17B8-11D9-9EEF-000A957CB4CC@desuetude.com> Message-ID: On 10/6/04 7:56 PM, "Charles Yeomans" wrote: Hi Charles, >> REALbasic do not allow functions with variable number of parameters. > > But it does. The ParamArray keyword was added to Rb 5.5. You declare a > method like so -- > > Sub Sort(ParamArray sortPairs as VSortPair) > > You then call it in code as follows. > > Sort sortPair1, sortPair2, ..., sortPairN Probably Sort( new sortPair1, new sortPair2, ..., new sortPairN ) Right? > sortPairs is passed into the method as an Rb array containing the > elements sortPair1, ..., sortPairN. I don't know how this works from > the plugin standpoint, but I am sure that you can figure it out. Interesting. Thank you for point. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From yeomans at desuetude.com Wed Oct 6 13:56:54 2004 From: yeomans at desuetude.com (Charles Yeomans) Date: Wed Oct 6 12:57:02 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: References: Message-ID: <1BC69036-17C1-11D9-9EEF-000A957CB4CC@desuetude.com> On Oct 6, 2004, at 1:30 PM, Ruslan Zasukhin wrote: > On 10/6/04 7:56 PM, "Charles Yeomans" wrote: > > Hi Charles, > > >>> REALbasic do not allow functions with variable number of parameters. >> >> But it does. The ParamArray keyword was added to Rb 5.5. You declare >> a >> method like so -- >> >> Sub Sort(ParamArray sortPairs as VSortPair) >> >> You then call it in code as follows. >> >> Sort sortPair1, sortPair2, ..., sortPairN > > Probably > > Sort( new sortPair1, new sortPair2, ..., new sortPairN ) > > Right? You don't need the parentheses. Rb is much better than it used to be about such things. Charles Yeomans From sunshine at public.kherson.ua Wed Oct 6 22:13:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Oct 6 14:13:23 2004 Subject: V4RB, syntax for sorting of sets. In-Reply-To: <1BC69036-17C1-11D9-9EEF-000A957CB4CC@desuetude.com> Message-ID: On 10/6/04 8:56 PM, "Charles Yeomans" wrote: >>> Sort sortPair1, sortPair2, ..., sortPairN >> >> Probably >> >> Sort( new sortPair1, new sortPair2, ..., new sortPairN ) >> >> Right? > > You don't need the parentheses. Rb is much better than it used to be > about such things. Actually I prefer use () because then visually easy to see the functions. Also note that I have add 'new' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Oct 9 00:15:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 8 16:15:49 2004 Subject: V4RB 2.0 b18 - uploaded Message-ID: Hi All, [NEW] b18 introduce to you the new example that demonstrate 2 forms of new method Table.Sort( set, fld ) as VSet Table.Sort( set, it as VSortItem , ... ) as VSet Also added new small helper class VSortItem. This feature continue improvement of non-SQL API of V4RB. Now you can do searches and sorting using Sets. Actually now we have practically complete API for all general db tasks. Note, that I have found way implement VSortItem to support 3 forms of field specification: by name, by index, by reference. [NEW] example/SQL/Table_Alter * demonstrate usage of SQL ALTER TABLE command. * in 2.0 this command have much more power. - you can rename table - you can rename field - you can change field type - you can change field length - add/drop constraints, ... - more ------------------ We add soon also Algorithm Global methods such as Union( t1 as Table, t2 as Table ) as Table Interset( t1 as Table, t2 as Table ) as Table Difference( t1 as Table, t2 as Table ) as Table As you see this functions mirror the basic Relational Algebra operations, But again we will be able do this without SQL. -------------- Also will be added CreateSnapShoot( inTable ) as VTable This function allow you easy create new table with the same records as inTable. The main magic will be if and when we can send as inTable some cursor. Then we can build any cursor and COPY its records into new TMP or not tmp table. ---------------- Also, if I am not mistake, we have implement in kernel such cool feature as db.Clone( newLocation ) It is similar probably to FileMaker's feature. You can clone existed db and specify if new db should have - the same structure only - or also records Robert, I think THIS FEATURE can be considered as a way to REPAIR record of corrupted db. Agree? I really hope that we already have implement it in 2.0 I will ask our developers tomorrow. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Sat Oct 9 09:11:50 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Oct 9 02:12:36 2004 Subject: V4RB 2.0 b18 - uploaded In-Reply-To: Message-ID: Hi Ruslan, on 8-10-2004 23:15, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > Hi All, > > [NEW] b18 introduce to you the new example that demonstrate > 2 forms of new method > > Table.Sort( set, fld ) as VSet > Table.Sort( set, it as VSortItem , ... ) as VSet > > > Also added new small helper class VSortItem. > > This feature continue improvement of non-SQL API of V4RB. > Now you can do searches and sorting using Sets. > Actually now we have practically complete API for all general db tasks. > > Note, that I have found way implement VSortItem to support 3 forms > of field specification: by name, by index, by reference. > > [NEW] example/SQL/Table_Alter > > * demonstrate usage of SQL ALTER TABLE command. > > * in 2.0 this command have much more power. > - you can rename table > - you can rename field > - you can change field type > - you can change field length > - add/drop constraints, ... > - more > > > ------------------ > We add soon also Algorithm Global methods such as > > Union( t1 as Table, t2 as Table ) as Table > Interset( t1 as Table, t2 as Table ) as Table > Difference( t1 as Table, t2 as Table ) as Table > > As you see this functions mirror the basic Relational Algebra operations, > But again we will be able do this without SQL. > > > > -------------- > Also will be added > > CreateSnapShoot( inTable ) as VTable > > This function allow you easy create new table with the same records as > inTable. > > The main magic will be if and when we can send as inTable some cursor. > Then we can build any cursor and COPY its records into new TMP or not tmp > table. > > > ---------------- > Also, if I am not mistake, we have implement in kernel such cool feature as > > db.Clone( newLocation ) > > It is similar probably to FileMaker's feature. > > You can clone existed db and specify if new db should have > - the same structure only > - or also records > there's somewhere we can find complete documentation of these new supercool features? > Robert, I think THIS FEATURE can be considered as a way to REPAIR record of > corrupted db. Agree? > > I really hope that we already have implement it in 2.0 > I will ask our developers tomorrow. > > as you know cloning a db is no big deal main issue here is maintenance of recid based relations Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From vidal_olivier at yahoo.fr Sat Oct 9 09:22:45 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Sat Oct 9 02:13:39 2004 Subject: V4RB 2.0 b18 - uploaded In-Reply-To: References: Message-ID: <03F103BA-19C4-11D9-A403-00039310B7DA@yahoo.fr> > This feature continue improvement of non-SQL API of V4RB. > > Union( t1 as Table, t2 as Table ) as Table > Interset( t1 as Table, t2 as Table ) as Table > Difference( t1 as Table, t2 as Table ) as Table > > As you see this functions mirror the basic Relational Algebra > operations, > But again we will be able do this without SQL. > What real advantages will bring methods which are not SQL ? The advantages really have to be important if we go away from standards SQL. Olivier From sunshine at public.kherson.ua Sat Oct 9 10:56:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 9 02:56:41 2004 Subject: V4RB 2.0 b18 - uploaded In-Reply-To: <03F103BA-19C4-11D9-A403-00039310B7DA@yahoo.fr> Message-ID: On 10/9/04 10:22 AM, "olivier" wrote: >> This feature continue improvement of non-SQL API of V4RB. >> > >> Union( t1 as Table, t2 as Table ) as Table >> Interset( t1 as Table, t2 as Table ) as Table >> Difference( t1 as Table, t2 as Table ) as Table >> >> As you see this functions mirror the basic Relational Algebra >> operations, >> But again we will be able do this without SQL. >> > > > What real advantages will bring methods which are not SQL ? > > The advantages really have to be important if we go away from standards > SQL. Good question! Yes SQL is standard. YES SQL is perfect for REMOTE database access and control. But in the world exists other tasks also, And SQL sometimes is not the best way. -------------------------- I think in the first turn THE LOCAL db is an issue. * SQL is slower because you need spend time to build strings, then must exists parser which parse strings, which build trees of nodes, which at last of end do call the same API function. * SQL parser and engine usually need to have powerful analysator and optimizer which also eat space and time * Or look on this. You have table, you have some WHEHRE condition which select from million records e.g. 10,000 records. You sort it by f1. Now user ask to sort by f2. What you do in SQL way ? You must again execute the full SQL query, i.e. You again need PARSER, optimize, do SEARCH WHERE and only now do new ORDER BY Ah, also cursor need unlock records, and later again lock records, actually THE SAME records! What we have with sets? You have execute search and get set. Now you can THIS SET sort many times in different ways. I.e. When user say SORT BY f2, you do only the final step sort( s2, f2 ) Cool? I think very cool! -------------------------- * another example. SQL92 absolutely is not able handle recursive queries. SQL99 have add some features for this, but they are so complex and ugly, that it is even hard to understand them. Instead API methods allow you do work in very natural way. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Oct 9 11:09:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 9 03:09:20 2004 Subject: [V4RB TIP] collect classes into project folder(s) Message-ID: Hi All, I recommend you to create in project window of RB the folders and keep here all classes related to database. If you have 2 kinds of database in your app you should use 2 folders. Then it will be much ore clean design. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From vidal_olivier at yahoo.fr Sat Oct 9 11:09:23 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Sat Oct 9 04:00:14 2004 Subject: V4RB 2.0 b18 - uploaded In-Reply-To: References: Message-ID: very interesting. thank you Ruslan. have a good day. olivier > Yes SQL is standard. > YES SQL is perfect for REMOTE database access and control. > > But in the world exists other tasks also, > And SQL sometimes is not the best way. > > > -------------------------- > I think in the first turn THE LOCAL db is an issue. > > * SQL is slower because you need spend time to build strings, > then must exists parser which parse strings, > which build trees of nodes, which at last of end do call > the same API function. > > * SQL parser and engine usually need to have powerful analysator and > optimizer which also eat space and time > > * Or look on this. You have table, you have some WHEHRE condition which > select from million records e.g. 10,000 records. > You sort it by f1. > > Now user ask to sort by f2. What you do in SQL way ? > You must again execute the full SQL query, i.e. You again need > PARSER, optimize, do SEARCH WHERE and only now do new ORDER BY > Ah, also cursor need unlock records, > and later again lock records, actually THE SAME records! > > What we have with sets? > You have execute search and get set. > Now you can THIS SET sort many times in different ways. > I.e. When user say SORT BY f2, you do only the final step > > sort( s2, f2 ) > > Cool? I think very cool! > > > > -------------------------- > * another example. SQL92 absolutely is not able handle recursive > queries. > > SQL99 have add some features for this, but they are so complex and > ugly, > that it is even hard to understand them. > > Instead API methods allow you do work in very natural way. From sunshine at public.kherson.ua Sun Oct 10 15:41:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Oct 10 07:41:50 2004 Subject: [V4RB] b17/2 Message-ID: Hi All, Uploaded a new build of V4RB. * Fixed bugs in work with TEXT field and indexes. * example IndexStyle now have in table VarChar field and TEXT field * shared item/Table Browser now improved, it can hide/show controls to do FILTER search. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Oct 10 16:12:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Oct 10 08:12:15 2004 Subject: [V4RB] b18/2 Message-ID: Hi All, Uploaded a new build of V4RB. * Fixed bugs in work with TEXT field and indexes. * example IndexStyle now have in table VarChar field and TEXT field * shared item/Table Browser now improved, it can hide/show controls to do FILTER search. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 11 18:04:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 11 10:05:00 2004 Subject: [NEW] Bug tracking system for Valentina products Message-ID: Hi All, We have set up the Mantis -- bug tracking system for Valentina products. http://paradigma.ukrcom.kherson.ua/bt/ Please play with it. You need register self, get login and password. And you are welcome to use it to report bugs/features in 2.0 products Which we test now. NOTE: we have disable for now FILE UPLOAD. may be we need enable it with limit 100-300KB files.... NOTE: that this system have very good search of existed bugs and features. So play and tell us if something is wrong, of should be improved. If you have feature requests then please go ahead and add them. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Oct 11 18:52:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 11 10:52:32 2004 Subject: FIXED: search by word, longer Message-ID: If field have 'bbb' then fld.startsWith( 'bbb2') did find it. This is FIXED now. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Oct 12 14:54:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 12 06:54:12 2004 Subject: [ANN V4RB] 2.0 b19 uploaded Message-ID: Hi All, b19 introduce improved example projects API/IndexByWords API/IndexByWordsWithStyle SQL/IndexByWords They all now work on table with 4 fields 2 normal fields: VarChar and Text 2 methods VarChar ad Text. Also correct minor bug so viSQL's structure browser now correctly show type of field. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From frank-list2 at mindstarprods.com Wed Oct 13 16:37:32 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Wed Oct 13 17:37:43 2004 Subject: [V4RB] Translating 1.11 to 2.0 Message-ID: <790E3C78-1D68-11D9-B478-0003939246BC@mindstarprods.com> Hi everyone, I was trying to learn Valentina 2.0 coding by translating the _TEST project to Valentina 2.0 format. But I am stuck on a line of code that I cannot figure out: In 1.11 in the method Test_DataBase_XMLDump_Parse in the class test_DbStructure is the following code: if (VObjectPtr(fld).PointedObject <> boA) and (VObjectPtr(fld).DeletionControl <> kV_Cascade) then One_TEST_FAIL("Parse Dump : Check param " + fld.name ) end if The exact problem is "VObjectPtr(fld).PointedObject". I'm sure that "VObjectPtr(fld).DeletionControl" will also be a problem. How can I write this in Valentina 2.0 syntax? Best regards, Frank From sunshine at public.kherson.ua Thu Oct 14 20:32:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 14 12:32:57 2004 Subject: [V4RB] Translating 1.11 to 2.0 In-Reply-To: <4C23475F-1DFA-11D9-96CE-0003939246BC@mindstarprods.com> Message-ID: On 10/14/04 7:01 PM, "Frank Schima" wrote: Hi Franke, > I tried sending this to the beta list - but I have not seen it: Probably down > I was trying to learn Valentina 2.0 coding by translating the _TEST > project to Valentina 2.0 format. But I am stuck on a line of code that > I cannot figure out: > > In 1.11 in the method Test_DataBase_XMLDump_Parse in the class > test_DbStructure is the following code: > if (VObjectPtr(fld).PointedObject <> boA) and > (VObjectPtr(fld).DeletionControl <> kV_Cascade) then > One_TEST_FAIL("Parse Dump : Check param " + fld.name ) > end if > > The exact problem is "VObjectPtr(fld).PointedObject". I'm sure that > "VObjectPtr(fld).DeletionControl" will also be a problem. > > How can I write this in Valentina 2.0 syntax? Casting seems to be the > main issue. I have not understand problem. You cannot cast ? Or what ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 15 09:26:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 15 01:26:53 2004 Subject: Test, ignore Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 15 23:41:01 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 15 15:41:08 2004 Subject: [V4RB] Try Catch VException Problem In-Reply-To: <85273412-1EE3-11D9-99D5-0003939246BC@mindstarprods.com> Message-ID: On 10/15/04 10:50 PM, "Frank Schima" wrote: > Hi everyone, > > > I'm having a problem translating the _TEST project to V4RB 2a19. This > may be more of an RB issue though. > > In the following lines of code in the Test_Field_Add_To_Unique Method > of the Test_Fields class, a RuntimeException is thrown as a VException. > > res = BaseObject.FirstRecord > for i = 1 to 5000 > fldLong.value = i > bAddRecordFailed = False > Try > iNewRecord = BaseObject.AddRecord() > Catch > bAddRecordFailed = True > End Try > if bAddRecordFailed = False Then > ONE_TEST_FAIL( "Add unique value: " + str(i) ) > Exit > end if > Next > LOOP_TEST_DONE( "Add unique value.", i, 5000 ) > > Basically the test is trying to add duplicate records with the Unique > flag set. So the line: > iNewRecord = BaseObject.AddRecord() > Should fail because of the Unique flag. But RB quits into the debugger > and says "VException". I thought that the Try...Catch block would catch > it. > > What am I doing wrong? Hi Frank, In the debugger, in the menu DEBUG you can set OFF option "stop on exception" (or something like this) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Oct 17 14:42:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Oct 17 06:42:45 2004 Subject: V4RB NEW Build. Message-ID: Hi All, A new build of V4RB is ready. * NEW * - Example SQL/Constraints - VField class now have property DefaultValue, it is analog of SQL's DEFAULT from CREATE TABLE command. - Improved "shared/Structure Browser" now it can show Compressed flag, and show Index by Words flag and show default value of a field. * FIXED * - now indexed search take into account the Locale settings of field on which this index is built - now methods correctly index its values on Add/Delete/Update and this works for TEXT methods also - Static model few bugs fixed. Erik, now must work Links for static model. Please check and let us know. -------------------------------------- We have take on hands practically last tasks in our TODO list! :-) Let's hope on next week we will resolve them or most of them. After this we will start phase of bug fixes and polishing. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Mon Oct 18 10:23:01 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Mon Oct 18 03:23:20 2004 Subject: V4RB NEW Build. In-Reply-To: References: Message-ID: Hi Ruslan, On 17 ott 2004, at 13:42, Ruslan Zasukhin wrote: > Hi All, > > A new build of V4RB is ready. > I can't find any V4RB beta newer than Sep 07, 2004 on Paradigma site is this normal? Cool Runnings, Erne. |er| musical box |ne| a media store From sunshine at public.kherson.ua Mon Oct 18 12:00:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Oct 18 04:00:29 2004 Subject: V4RB NEW Build. In-Reply-To: Message-ID: On 10/18/04 11:23 AM, "erne" wrote: > Hi Ruslan, > > On 17 ott 2004, at 13:42, Ruslan Zasukhin wrote: > >> Hi All, >> >> A new build of V4RB is ready. >> > > I can't find any V4RB beta newer than Sep 07, 2004 on Paradigma site > is this normal? Erne, 2.0 beta is located pn this URL http://paradigmasoft.com/download/v2_beta/download.html This URL not present on the site because beta testing is not very public. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Mon Oct 18 18:04:11 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Mon Oct 18 11:04:56 2004 Subject: V4RB NEW Build. In-Reply-To: Message-ID: on 18-10-2004 11:00, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >>> >> >> I can't find any V4RB beta newer than Sep 07, 2004 on Paradigma site >> is this normal? > > Erne, > > 2.0 beta is located pn this URL > > http://paradigmasoft.com/download/v2_beta/download.html > > This URL not present on the site because beta testing is not very public. aha! -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Tue Oct 19 21:37:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Oct 19 13:37:30 2004 Subject: V4RB 2.0b20 uploaded. Message-ID: The main fix of this build: now SQL parser correctly work with unicode, so we can have strings of any language. WHERE fld = 'russian or japan text or spanish' Note that for now you should not create field and tables with unicode names. For now please still use English. Although if this is very big problem we an fix this also I think. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 22 00:59:53 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 21 17:00:17 2004 Subject: V4RB2 In-Reply-To: <3D7B2990-23AA-11D9-BDAB-003065514D2E@tiscalinet.it> Message-ID: On 10/22/04 12:43 AM, "erne" wrote: Hi Erne, > I'm trying the V4RB examples and have some questions and bug reports: > 1) How generation of Log Files (FBL_Asserts.txt, FBL_Asserts.txt) can > be disabled? We will remove them on release > 2) MacOS_Creator example: > Creator of .vdb file remains VALA even if set as MYAP > (btw why there's no icon for Vind files?) In fact for any file must not be icons. Icons is responsibility of YOUR app. > 3) Locales and Collation properties > what is affected by Locales? Strings, indexes of strings, > maybe date and decimal separators? no > there's a list of acceptable values? ISO standard. en_EN, en_GB, ru_RU, de_DE, ... > 4) Locale_Records example > strings are returned always as UTF-8 even from UTF-16 database > can't store UTF-16 strings to UTF-16 database They ARE stored in UTF16. Just with RB we communicate via UTF8 Yes, for now V4RB 2.0 beta expect from you UTF8 strings. This is default of RB, right ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ohmitou at wanadoo.fr Fri Oct 22 07:01:47 2004 From: ohmitou at wanadoo.fr (Thierry Nauze) Date: Thu Oct 21 22:02:13 2004 Subject: How to code a date ? In-Reply-To: References: Message-ID: Hi, How to to code a date when I kown only the year and possibily the month July 25, 2004 -> 2004/07/25 July, 2004 -> ???? : 2004/07/.. or 2004/07/00 or other string ? 2004 -> 2004/../.. or 2004/00/00 or other string ? The three dates are stored in the same field. Thanks -- Thierry Nauze Saint-Denis de la R?union -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 396 bytes Desc: not available Url : http://lists.macserve.net/pipermail/valentina-beta/attachments/20041022/6fd26329/attachment.bin From ohmitou at wanadoo.fr Fri Oct 22 07:35:56 2004 From: ohmitou at wanadoo.fr (Thierry Nauze) Date: Thu Oct 21 22:36:17 2004 Subject: Language and encoding. In-Reply-To: References: Message-ID: <7BD3C176-23DB-11D9-BC26-000A95BA5A32@wanadoo.fr> Hi, If I understood well, at present (V4RB 1.10) sorting by language (" French ", for example) is made only if the base is "coded" in macRomanl. At present, it don't work) with the encoding " UTF8 ". (???) On the other hand, in the version 2 of V4RB it could work. (???) Regards, -- Thierry Nauze Saint-Denis de la R?union From sunshine at public.kherson.ua Fri Oct 22 09:27:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 01:27:22 2004 Subject: How to code a date ? In-Reply-To: Message-ID: On 10/22/04 6:01 AM, "Thierry Nauze" wrote: Hi Thierry, > How to to code a date when I kown only the year and possibily the month > > July 25, 2004 -> 2004/07/25 > > July, 2004 -> ???? : 2004/07/.. or 2004/07/00 or other string ? > > 2004 -> 2004/../.. or 2004/00/00 or other string ? > > The three dates are stored in the same field. Code for storing on disk or for searching ? For storing you can do INSERT ... ( '2004/00/00' ) For search you can use LIKE or REGEX WHERE fld LIKE '2004/??/??' WHERE fld REGEX '2004/../..' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 22 09:30:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 01:30:32 2004 Subject: Language and encoding. In-Reply-To: <7BD3C176-23DB-11D9-BC26-000A95BA5A32@wanadoo.fr> Message-ID: On 10/22/04 6:35 AM, "Thierry Nauze" wrote: > Hi, > > If I understood well, at present (V4RB 1.10) sorting by language (" > French ", for example) is made only if the base is "coded" in > macRomanl. > > At present, it don't work) with the encoding " UTF8 ". (???) > On the other hand, in the version 2 of V4RB it could work. (???) Hi Thierry, So you need to make French database, yes? 1) for now do not set UTF8 for database. 2) do simple next: db.Locale = "fr_FR" db.Create(); // now you have UTF16 db for French locale You can do not specify anything for fields. They will inherit locale from database. 3) work as usually with REALbasic strings. on default they was in UTF8. this is ok, when Valentina et them it self convert them to UTF16. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Fri Oct 22 10:24:59 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 03:25:43 2004 Subject: V4RB2 In-Reply-To: Message-ID: Hi Ruslan, thanks for reply on 21-10-2004 23:59, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >> 2) MacOS_Creator example: >> Creator of .vdb file remains VALA even if set as MYAP >> (btw why there's no icon for Vind files?) > > In fact for any file must not be icons. > Icons is responsibility of YOUR app. > of course... finder uses icons from vApp for default VALA creator and it's there that the Vind files icon is missing not a big deal, just a curiosity problem remains that changing DB.Creator does not affect the creator of the .vdb file >> 3) Locales and Collation properties >> what is affected by Locales? > > Strings, indexes of strings, > >> maybe date and decimal separators? > > no > >> there's a list of acceptable values? > > ISO standard. > > en_EN, en_GB, ru_RU, de_DE, ... > > >> 4) Locale_Records example >> strings are returned always as UTF-8 even from UTF-16 database >> can't store UTF-16 strings to UTF-16 database > > They ARE stored in UTF16. > Just with RB we communicate via UTF8 > > Yes, for now V4RB 2.0 beta expect from you UTF8 strings. > This is default of RB, right ? > this is default but RB can deal with strings of any encoding so what sense to set a DB.StorageEncoding to UTF16 if I must feed it with UTF8 strings and get back UTF8 from it anyway? It's cool for me since I intend to use UTF8 default but if I set a StorageEncoding prop to something then I expect to deal with it in that encoding, either input or output e.g. this is expected behavior IMO: I have some vCard text from a file known to be UTF16 read it in RB with encoding set to UTF16 store it in an UTF16 Vale field retrieve it from DB Vale passes me an UTF16 string I write it back to vCard file Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Fri Oct 22 14:18:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 06:18:32 2004 Subject: V4RB2 //VALA creator In-Reply-To: Message-ID: On 10/22/04 11:24 AM, "erne" wrote: > Hi Ruslan, > > thanks for reply > > on 21-10-2004 23:59, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > >>> 2) MacOS_Creator example: >>> Creator of .vdb file remains VALA even if set as MYAP >>> (btw why there's no icon for Vind files?) >> >> In fact for any file must not be icons. >> Icons is responsibility of YOUR app. >> > > of course... finder uses icons from vApp for default VALA creator > and it's there that the Vind files icon is missing > not a big deal, just a curiosity May be example use other signature. We have add new .tmp file. > problem remains that changing DB.Creator does not affect the creator of the > .vdb file Please report to bug tracking system http://paradigma.ukrcom.kherson.ua/bt And give exact steps to see problems. Actually I still not understand very good what is wrong. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 22 14:23:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 06:23:25 2004 Subject: V4RB2 In-Reply-To: Message-ID: On 10/22/04 11:24 AM, "erne" wrote: >>> 4) Locale_Records example >>> strings are returned always as UTF-8 even from UTF-16 database >>> can't store UTF-16 strings to UTF-16 database >> >> They ARE stored in UTF16. >> Just with RB we communicate via UTF8 >> >> Yes, for now V4RB 2.0 beta expect from you UTF8 strings. >> This is default of RB, right ? >> > > this is default but RB can deal with strings of any encoding > so what sense to set a DB.StorageEncoding to UTF16 if I must feed it with > UTF8 strings and get back UTF8 from it anyway? 1) Right, just for now I have made only UTF8 recognition. 2) Erne, do NOT confuse a) Storing encoding -- this is how we store on disk b) strings between RB <-> V4RB, they can be other encoding. although for now UTF8 only > It's cool for me since I intend to use UTF8 default > > but if I set a StorageEncoding prop to something then I expect to deal with > it in that encoding, either input or output NO! You still can use UTF8. Valentina will convert to StorageEncoding if needed. > e.g. this is expected behavior IMO: > I have some vCard text from a file known to be UTF16 > read it in RB with encoding set to UTF16 > store it in an UTF16 Vale field This can be done. And will be done > retrieve it from DB > Vale passes me an UTF16 string Vale will return UTF8 on default. Encoding of storing and encoding of I/O this is not the same. May be we need some API to be able ask V4RB str = fld.GetString( "UTF16" ) > I write it back to vCard file -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Fri Oct 22 08:12:05 2004 From: jda at his.com (jda) Date: Fri Oct 22 07:12:32 2004 Subject: V4RB2 //VALA creator In-Reply-To: References: Message-ID: > > >>> 2) MacOS_Creator example: >>>> Creator of .vdb file remains VALA even if set as MYAP >>>> (btw why there's no icon for Vind files?) >>> >>> In fact for any file must not be icons. >>> Icons is responsibility of YOUR app. >>> >> >> of course... finder uses icons from vApp for default VALA creator >> and it's there that the Vind files icon is missing >> not a big deal, just a curiosity > >May be example use other signature. >We have add new .tmp file. > > I have seen the same problem with my project (and so have you, Ruslan). But in my case, sometimes the creator "sticks" and sometimes it doesn't. Have haven't figured out a pattern... The relevant snippet is tempDataBase = new MyDataBase tempDataBase.Creator = "MYAP Jon From ernestogiannotta at tiscalinet.it Fri Oct 22 19:16:45 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 12:17:27 2004 Subject: V4RB2 In-Reply-To: Message-ID: on 22-10-2004 13:23, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >>>> 4) Locale_Records example >>>> strings are returned always as UTF-8 even from UTF-16 database >>>> can't store UTF-16 strings to UTF-16 database >>> >>> They ARE stored in UTF16. >>> Just with RB we communicate via UTF8 >>> >>> Yes, for now V4RB 2.0 beta expect from you UTF8 strings. >>> This is default of RB, right ? >>> >> >> this is default but RB can deal with strings of any encoding >> so what sense to set a DB.StorageEncoding to UTF16 if I must feed it with >> UTF8 strings and get back UTF8 from it anyway? > > 1) Right, just for now I have made only UTF8 recognition. > > 2) Erne, do NOT confuse > > a) Storing encoding -- this is how we store on disk > b) strings between RB <-> V4RB, they can be other encoding. > although for now UTF8 only > >> It's cool for me since I intend to use UTF8 default >> >> but if I set a StorageEncoding prop to something then I expect to deal with >> it in that encoding, either input or output > > NO! > > You still can use UTF8. Valentina will convert to StorageEncoding if needed. > this is kind of Valentina to do this for me but if the string I pass is of undefined encoding how will Vale know how to deal with that? >> e.g. this is expected behavior IMO: > >> I have some vCard text from a file known to be UTF16 >> read it in RB with encoding set to UTF16 >> store it in an UTF16 Vale field > > This can be done. And will be done > >> retrieve it from DB >> Vale passes me an UTF16 string > > Vale will return UTF8 on default. > > Encoding of storing and encoding of I/O this is not the same. > May be we need some API to be able ask V4RB > > str = fld.GetString( "UTF16" ) > >> I write it back to vCard file > Well, I can live with this behaviour but I still don't get sense of it what's the point in defining a storing encoding if I don't I/O data in that format by default? Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From ernestogiannotta at tiscalinet.it Fri Oct 22 19:21:17 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 12:21:57 2004 Subject: V4RB2 //VALA creator In-Reply-To: Message-ID: on 22-10-2004 13:18, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >>>> 2) MacOS_Creator example: >>>> Creator of .vdb file remains VALA even if set as MYAP >>>> (btw why there's no icon for Vind files?) >>> >>> In fact for any file must not be icons. >>> Icons is responsibility of YOUR app. >>> >> >> of course... finder uses icons from vApp for default VALA creator >> and it's there that the Vind files icon is missing >> not a big deal, just a curiosity > > May be example use other signature. most example do not use any Creator at all so files are VALA by default > We have add new .tmp file. > yep! temp file has no icon as well but it didn't wonder me not to find it in the vApp bundle res I was wondering about ind files > >> problem remains that changing DB.Creator does not affect the creator of the >> .vdb file > > Please report to bug tracking system > > http://paradigma.ukrcom.kherson.ua/bt > > And give exact steps to see problems. > Actually I still not understand very good what is wrong. > ok! Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Fri Oct 22 21:56:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 13:56:56 2004 Subject: V4RB2 In-Reply-To: Message-ID: On 10/22/04 8:16 PM, "erne" wrote: >> You still can use UTF8. Valentina will convert to StorageEncoding if needed. >> > > this is kind of Valentina to do this for me > but if the string I pass is of undefined encoding > how will Vale know how to deal with that? She will complain! :-) How you can made undefined string ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 22 22:01:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 14:01:31 2004 Subject: V4RB2 // storing encoding In-Reply-To: Message-ID: On 10/22/04 8:16 PM, "erne" wrote: > Well, I can live with this behaviour > but I still don't get sense of it > > what's the point in defining a storing encoding > if I don't I/O data in that format by default? Hmm. Storage Enoding -- you say HOW you want keep strings on disk Japan guys will prefer UTF16 roman language group will prefer UTF8 Russian will prefer Cyrillic Mac or Win. But this is not related in any case to IO encoding, You can give to V4RB string in UTF8 or UTF16 and Valentina do next INSIDE of KERNEL it will convert it to UTF16. ALWAYS. ALWAYS ALWAYS. Because inside of kernel all Valentina algorithms use UTF16. When Valentina ed tore something to disk it convert from UTF16 to StorageEncoding. When it read from disk then back to UTF16. You see? REALBasic <-------> engine <--------> disk IO Storage -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Fri Oct 22 22:12:40 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 15:12:58 2004 Subject: V4RB2 // storing encoding In-Reply-To: References: Message-ID: On 22 ott 2004, at 21:01, Ruslan Zasukhin wrote: > On 10/22/04 8:16 PM, "erne" wrote: > >> Well, I can live with this behaviour >> but I still don't get sense of it >> >> what's the point in defining a storing encoding >> if I don't I/O data in that format by default? > > Hmm. > > Storage Enoding -- you say HOW you want keep strings on disk > Japan guys will prefer UTF16 > roman language group will prefer UTF8 > Russian will prefer Cyrillic Mac or Win. > sure, that is why I expect to deal with that data in my preferred encoding I really can appreciate that Vale will convert any string fed to her into preferred encoding, this is smart But I'd expect to get back my data in that encoding and not have to convert them from UTF8 > > But this is not related in any case to IO encoding, > You can give to V4RB string in UTF8 or UTF16 and Valentina do next > > INSIDE of KERNEL it will convert it to UTF16. > > ALWAYS. > ALWAYS > ALWAYS. > > Because inside of kernel all Valentina algorithms use UTF16. > > When Valentina ed tore something to disk it convert from UTF16 to > StorageEncoding. When it read from disk then back to UTF16. > > > You see? > > > REALBasic <-------> engine <--------> disk > IO Storage > yep! I can understand this btw have you figures of what the overhead of this conversion? i.e. will we gain significant advantage in using UTF16 for storage? Cool Runnings, Erne. |er| musical box |ne| a media store From ernestogiannotta at tiscalinet.it Fri Oct 22 22:14:29 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 15:14:49 2004 Subject: V4RB2 In-Reply-To: References: Message-ID: On 22 ott 2004, at 20:56, Ruslan Zasukhin wrote: > On 10/22/04 8:16 PM, "erne" wrote: > >>> You still can use UTF8. Valentina will convert to StorageEncoding if >>> needed. >>> >> >> this is kind of Valentina to do this for me >> but if the string I pass is of undefined encoding >> how will Vale know how to deal with that? > > She will complain! :-) > > > How you can made undefined string ? > mmm.... s.Encoding = nil :?) |er| musical box |ne| a media store From sunshine at public.kherson.ua Fri Oct 22 23:19:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 15:19:26 2004 Subject: V4RB2 // storing encoding In-Reply-To: Message-ID: On 10/22/04 11:12 PM, "erne" wrote: > On 22 ott 2004, at 21:01, Ruslan Zasukhin wrote: > >> On 10/22/04 8:16 PM, "erne" wrote: >> >>> Well, I can live with this behaviour >>> but I still don't get sense of it >>> >>> what's the point in defining a storing encoding >>> if I don't I/O data in that format by default? >> >> Hmm. >> >> Storage Enoding -- you say HOW you want keep strings on disk >> Japan guys will prefer UTF16 >> roman language group will prefer UTF8 >> Russian will prefer Cyrillic Mac or Win. >> > > sure, that is why I expect to deal with that data in my preferred > encoding > I really can appreciate that Vale will convert any string fed to her > into preferred encoding, this is smart > But I'd expect to get back my data in that encoding and not have to > convert them from UTF8 I see. Okay I see 2 steps for this 1) GetString( Locale as String ) 2) add also db.IOEncoding So if you always want work in UTF16 then inform about this db object. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 22 23:20:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 15:20:23 2004 Subject: V4RB2 // storing encoding In-Reply-To: Message-ID: On 10/22/04 11:12 PM, "erne" wrote: >> But this is not related in any case to IO encoding, >> You can give to V4RB string in UTF8 or UTF16 and Valentina do next >> >> INSIDE of KERNEL it will convert it to UTF16. >> >> ALWAYS. >> ALWAYS >> ALWAYS. >> >> Because inside of kernel all Valentina algorithms use UTF16. >> >> When Valentina ed tore something to disk it convert from UTF16 to >> StorageEncoding. When it read from disk then back to UTF16. >> >> >> You see? >> >> >> REALBasic <-------> engine <--------> disk >> IO Storage >> > > yep! I can understand this > btw have you figures of what the overhead of this conversion? > i.e. will we gain significant advantage in using UTF16 for storage? I have told that Roman group (Italian also) Should prefer UTF8 or native encoding. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Oct 22 23:20:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Oct 22 15:21:17 2004 Subject: V4RB2 In-Reply-To: Message-ID: On 10/22/04 11:14 PM, "erne" wrote: > On 22 ott 2004, at 20:56, Ruslan Zasukhin wrote: > >> On 10/22/04 8:16 PM, "erne" wrote: >> >>>> You still can use UTF8. Valentina will convert to StorageEncoding if >>>> needed. >>>> >>> >>> this is kind of Valentina to do this for me >>> but if the string I pass is of undefined encoding >>> how will Vale know how to deal with that? >> >> She will complain! :-) >> >> >> How you can made undefined string ? >> > > mmm.... s.Encoding = nil :?) We will complain! This is not gentleman step :-))) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Sat Oct 23 00:28:56 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 17:29:24 2004 Subject: V4RB2 In-Reply-To: References: Message-ID: On 22 ott 2004, at 22:20, Ruslan Zasukhin wrote: > On 10/22/04 11:14 PM, "erne" wrote: > >> On 22 ott 2004, at 20:56, Ruslan Zasukhin wrote: >> >>> On 10/22/04 8:16 PM, "erne" wrote: >>> >>>>> You still can use UTF8. Valentina will convert to StorageEncoding >>>>> if >>>>> needed. >>>>> >>>> >>>> this is kind of Valentina to do this for me >>>> but if the string I pass is of undefined encoding >>>> how will Vale know how to deal with that? >>> >>> She will complain! :-) >>> >>> >>> How you can made undefined string ? >>> >> >> mmm.... s.Encoding = nil :?) > > We will complain! > > This is not gentleman step :-))) > hehe :-) but look at this from latest RB 5.5.4fc release notes: [Fix] [All] MemoryBlock: CString and PString now return strings with an unknown encoding instead of ASCII. (Feedback ID: poijvfea) Cool Runnings, Erne. |er| musical box |ne| a media store From ernestogiannotta at tiscalinet.it Sat Oct 23 00:35:26 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Oct 22 17:35:47 2004 Subject: V4RB2 // storing encoding In-Reply-To: References: Message-ID: On 22 ott 2004, at 22:19, Ruslan Zasukhin wrote: > On 10/22/04 11:12 PM, "erne" wrote: > >> On 22 ott 2004, at 21:01, Ruslan Zasukhin wrote: >> >>> On 10/22/04 8:16 PM, "erne" wrote: >>> >>>> Well, I can live with this behaviour >>>> but I still don't get sense of it >>>> >>>> what's the point in defining a storing encoding >>>> if I don't I/O data in that format by default? >>> >>> Hmm. >>> >>> Storage Enoding -- you say HOW you want keep strings on disk >>> Japan guys will prefer UTF16 >>> roman language group will prefer UTF8 >>> Russian will prefer Cyrillic Mac or Win. >>> >> >> sure, that is why I expect to deal with that data in my preferred >> encoding >> I really can appreciate that Vale will convert any string fed to her >> into preferred encoding, this is smart >> But I'd expect to get back my data in that encoding and not have to >> convert them from UTF8 > > I see. > > Okay I see 2 steps for this > > 1) GetString( Locale as String ) > maybe you mean GetString( Encoding as String ) ? btw why not use the Encoding RB object to tell Vale about this? e.g. GetString( Encoding as textEncoding ) db.StorageEncoding as TextEncoding etc. > 2) add also > > db.IOEncoding > > So if you always want work in UTF16 then inform about this db object. > fair enough :!) still looking a bit redundant Cool Runnings, Erne. |er| musical box |ne| a media store From sunshine at public.kherson.ua Sat Oct 23 09:11:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 01:12:48 2004 Subject: V4RB2 // storing encoding In-Reply-To: Message-ID: On 10/23/04 1:35 AM, "erne" wrote: >>> sure, that is why I expect to deal with that data in my preferred >>> encoding >>> I really can appreciate that Vale will convert any string fed to her >>> into preferred encoding, this is smart >>> But I'd expect to get back my data in that encoding and not have to >>> convert them from UTF8 >> >> I see. >> >> Okay I see 2 steps for this >> >> 1) GetString( Locale as String ) >> > > maybe you mean GetString( Encoding as String ) ? > > btw why not use the Encoding RB object to tell Vale about this? > e.g. > GetString( Encoding as textEncoding ) > db.StorageEncoding as TextEncoding > etc. Because here must be names of encodings that ICU want to see Actually this is ISO names: GetString( "Latin-1" ) >> 2) add also >> >> db.IOEncoding >> >> So if you always want work in UTF16 then inform about this db object. >> > > fair enough :!) > > still looking a bit redundant Why ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Oct 23 09:09:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 01:13:22 2004 Subject: V4RB2 In-Reply-To: Message-ID: On 10/23/04 1:28 AM, "erne" wrote: >> We will complain! >> >> This is not gentleman step :-))) >> > > hehe :-) > > but look at this from latest RB 5.5.4fc release notes: > > [Fix] [All] MemoryBlock: CString and PString now return strings with an > unknown encoding instead of ASCII. (Feedback ID: poijvfea) Then you need self set encoding, right ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Sat Oct 23 08:50:51 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Oct 23 01:51:32 2004 Subject: V4RB2 In-Reply-To: Message-ID: on 23-10-2004 8:09, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > On 10/23/04 1:28 AM, "erne" wrote: > >>> We will complain! >>> >>> This is not gentleman step :-))) >>> >> >> hehe :-) >> >> but look at this from latest RB 5.5.4fc release notes: >> >> [Fix] [All] MemoryBlock: CString and PString now return strings with an >> unknown encoding instead of ASCII. (Feedback ID: poijvfea) > > Then you need self set encoding, right ? > yep! s.DefineEncoding(Enc as TextEncoding) -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From ernestogiannotta at tiscalinet.it Sat Oct 23 09:21:14 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Oct 23 02:21:53 2004 Subject: V4RB2 // storing encoding In-Reply-To: Message-ID: on 23-10-2004 8:11, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >>>> sure, that is why I expect to deal with that data in my preferred >>>> encoding >>>> I really can appreciate that Vale will convert any string fed to her >>>> into preferred encoding, this is smart >>>> But I'd expect to get back my data in that encoding and not have to >>>> convert them from UTF8 >>> >>> I see. >>> >>> Okay I see 2 steps for this >>> >>> 1) GetString( Locale as String ) >>> >> >> maybe you mean GetString( Encoding as String ) ? >> >> btw why not use the Encoding RB object to tell Vale about this? >> e.g. >> GetString( Encoding as textEncoding ) >> db.StorageEncoding as TextEncoding >> etc. > > Because here must be names of encodings that ICU want to see > Actually this is ISO names: > > GetString( "Latin-1" ) > IIRC Textencodings have an InternetName read only property that should be what ICU wants to see e.g. enc = Encodings.MacRoman s = enc.InternetName // s = "macintosh" enc = Encodings.WIndowsLatin1 s = enc.InternetName // s = "windows-1252" enc = Encodings.ISOLatin1 s = enc.InternetName // s = "ISO-8859-1" enc = Encodings.UTF8 s = enc.InternetName // s = "UTF-8" and so on... can we use these strings as parameters? it would be easier though if I could talk with vale in terms of TextEncodings objects > > >>> 2) add also >>> >>> db.IOEncoding >>> >>> So if you always want work in UTF16 then inform about this db object. >>> >> >> fair enough :!) >> >> still looking a bit redundant > > Why ? > maybe there's something I miss but I can't see why I would want to store data in a different encoding than the one I want to work with Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Sat Oct 23 10:26:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 02:27:20 2004 Subject: V4RB2 // storing encoding In-Reply-To: Message-ID: On 10/23/04 10:21 AM, "erne" wrote: >> Because here must be names of encodings that ICU want to see >> Actually this is ISO names: >> >> GetString( "Latin-1" ) >> > > IIRC Textencodings have an InternetName read only property that should be > what ICU wants to see > > e.g. > enc = Encodings.MacRoman > s = enc.InternetName // s = "macintosh" > > enc = Encodings.WIndowsLatin1 > s = enc.InternetName // s = "windows-1252" > > enc = Encodings.ISOLatin1 > s = enc.InternetName // s = "ISO-8859-1" > > enc = Encodings.UTF8 > s = enc.InternetName // s = "UTF-8" > > and so on... > > can we use these strings as parameters? It looks yes. > it would be easier though if I could talk with vale in terms of > TextEncodings objects -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Sat Oct 23 09:32:17 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Oct 23 02:32:59 2004 Subject: V4RB2 //VALA creator In-Reply-To: Message-ID: on 22-10-2004 13:18, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >> problem remains that changing DB.Creator does not affect the creator of the >> .vdb file > > Please report to bug tracking system > > http://paradigma.ukrcom.kherson.ua/bt > sorry, can't access that page, Safari shows this message: Warning: Smarty error: unable to read template resource: "index.html" in /var/www/html/libs/Smarty.class.php on line 1043 > And give exact steps to see problems. > Actually I still not understand very good what is wrong. > anyway you can just run the Creator example and check the creator of the .vdb file it still is VALA while other db files' creator is (correctly) MYAP Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Sat Oct 23 10:38:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 02:38:39 2004 Subject: V4RB2 //VALA creator In-Reply-To: Message-ID: On 10/23/04 10:32 AM, "erne" wrote: > on 22-10-2004 13:18, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > >>> problem remains that changing DB.Creator does not affect the creator of the >>> .vdb file >> >> Please report to bug tracking system >> >> http://paradigma.ukrcom.kherson.ua/bt >> > > sorry, can't access that page, Safari shows this message: > > Warning: Smarty error: unable to read template resource: "index.html" > in /var/www/html/libs/Smarty.class.php on line 1043 Must be http://paradigma.ukrcom.kherson.ua/bt/ Note the last / -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Sat Oct 23 09:42:46 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Oct 23 02:43:28 2004 Subject: V4RB2 //VALA creator In-Reply-To: Message-ID: on 23-10-2004 9:38, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > On 10/23/04 10:32 AM, "erne" wrote: > >> on 22-10-2004 13:18, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >> >>>> problem remains that changing DB.Creator does not affect the creator of the >>>> .vdb file >>> >>> Please report to bug tracking system >>> >>> http://paradigma.ukrcom.kherson.ua/bt >>> >> >> sorry, can't access that page, Safari shows this message: >> >> Warning: Smarty error: unable to read template resource: "index.html" >> in /var/www/html/libs/Smarty.class.php on line 1043 > > Must be > > http://paradigma.ukrcom.kherson.ua/bt/ > > > Note the last / > that works :!) -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From jda at his.com Sat Oct 23 13:17:35 2004 From: jda at his.com (jda) Date: Sat Oct 23 12:17:50 2004 Subject: Errors In-Reply-To: References: Message-ID: Hi Ruslan, I've noticed that many exceptions have an errorMessage but no errorNumber. Not implemented, or bug? Along the same lines, are the new errors going to be in the constants list for Valentina (e.g. Valentina.kNotUniqueError = ###)? Jon From sunshine at public.kherson.ua Sat Oct 23 20:25:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 12:25:27 2004 Subject: Errors In-Reply-To: Message-ID: On 10/23/04 8:17 PM, "jda" wrote: Hi Jon, > I've noticed that many exceptions have an errorMessage but no > errorNumber. Not implemented, or bug? Looks to be bug. You see INSIDE of errNumer of Vexception ? > Along the same lines, are the new errors going to be in the constants > list for Valentina (e.g. Valentina.kNotUniqueError = ###)? Yes, I have not create yet algorithm for V4RB. We will automatically map error codes from .xml file into RB constants. Also keep eye on such bugs as you get error string, but it contains '%' instead of % must be something, e.g. Field name. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Oct 23 13:29:26 2004 From: jda at his.com (jda) Date: Sat Oct 23 12:29:42 2004 Subject: Errors In-Reply-To: References: Message-ID: > > I've noticed that many exceptions have an errorMessage but no >> errorNumber. Not implemented, or bug? > >Looks to be bug. > >You see INSIDE of errNumer of Vexception ? I turn throwexceptions OFF, then look at myDatabase.ErrorNum > > >Also keep eye on such bugs as > > you get error string, but it contains '%' > instead of % must be something, e.g. Field name. > Yes, I see this all the time. Jon From sunshine at public.kherson.ua Sat Oct 23 21:02:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 13:02:25 2004 Subject: Errors In-Reply-To: Message-ID: On 10/23/04 8:29 PM, "jda" wrote: >>> I've noticed that many exceptions have an errorMessage but no >>> errorNumber. Not implemented, or bug? >> >> Looks to be bug. >> >> You see INSIDE of errNumer of Vexception ? > > I turn throwexceptions OFF, then look at myDatabase.ErrorNum Then you talk about NOT exceptions -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Oct 23 21:02:28 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 13:03:30 2004 Subject: Errors In-Reply-To: Message-ID: On 10/23/04 8:29 PM, "jda" wrote: >>> I've noticed that many exceptions have an errorMessage but no >>> errorNumber. Not implemented, or bug? >> >> Looks to be bug. >> >> You see INSIDE of errNumer of Vexception ? > > I turn throwexceptions OFF, then look at myDatabase.ErrorNum > >> >> >> Also keep eye on such bugs as >> >> you get error string, but it contains '%' >> instead of % must be something, e.g. Field name. >> > > Yes, I see this all the time. Ways to reproduce ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Oct 23 14:07:07 2004 From: jda at his.com (jda) Date: Sat Oct 23 13:07:24 2004 Subject: Errors In-Reply-To: References: Message-ID: > > >> Also keep eye on such bugs as >>> >>> you get error string, but it contains '%' >>> instead of % must be something, e.g. Field name. >>> >> >> Yes, I see this all the time. > >Ways to reproduce ? > Yes, easily. Almost every exception (VException) I've seen so far as the % instead of the field name. Jon From jda at his.com Sat Oct 23 14:47:07 2004 From: jda at his.com (jda) Date: Sat Oct 23 13:47:21 2004 Subject: Unique field bug? In-Reply-To: References: Message-ID: I'm adding records in which there is one unique field, uniqueID. I trying to trap for exceptions with the following code: i = myCursor.LongField("uniqueID").value do try cursPosition = myCursor.addRecord catch vError as VException if cursPosition = 0 then //and myDatabase.errNumber = 344 then duplicate uniqueID --will update when v2 has error constants i = i + 1 myCursor.LongField("uniqueID").value = i else raise vError end if end try loop until cursPosition <> 0 The exceptions are trapped properly, but when it's finished a record is added for EVERY time cursPosition = myCursor.addRecord was called. So if the first add -> exception and the second is successful, I end up with two records (each having the same uniqueID value, BTW!). Jon From sunshine at public.kherson.ua Sat Oct 23 22:17:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 14:17:53 2004 Subject: Errors In-Reply-To: Message-ID: On 10/23/04 9:07 PM, "jda" wrote: >>>> Also keep eye on such bugs as >>>> >>>> you get error string, but it contains '%' >>>> instead of % must be something, e.g. Field name. >>>> >>> >>> Yes, I see this all the time. >> >> Ways to reproduce ? >> > > Yes, easily. Almost every exception (VException) I've seen so far as > the % instead of the field name. But I did not see them :-) So way? And I assume you again talk about NON-exception way? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Oct 23 22:21:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 14:21:37 2004 Subject: Unique field bug? In-Reply-To: Message-ID: On 10/23/04 9:47 PM, "jda" wrote: > I'm adding records in which there is one unique field, uniqueID. I > trying to trap for exceptions with the following code: > > i = myCursor.LongField("uniqueID").value > do > try > cursPosition = myCursor.addRecord > catch vError as VException > > if cursPosition = 0 then //and myDatabase.errNumber = 344 Note, 2.0 have different numbers for error codes!!! So it is not 344. > then duplicate uniqueID --will update when v2 has error constants > > i = i + 1 > myCursor.LongField("uniqueID").value = i > else > raise vError > end if > end try > loop until cursPosition <> 0 > > The exceptions are trapped properly, but when it's finished a record > is added for EVERY time cursPosition = myCursor.addRecord was called. > > So if the first add -> exception and the second is successful, I end > up with two records (each having the same uniqueID value, BTW!). I have not understand, You say that record IS ADDED _and_ exception is throw? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Oct 23 16:21:08 2004 From: jda at his.com (jda) Date: Sat Oct 23 15:21:22 2004 Subject: Errors In-Reply-To: References: Message-ID: > > >But I did not see them :-) > >So way? > >And I assume you again talk about NON-exception way? > No, it's the exception way. To see an example, run my project, make a database, then Copy Reference, then Paste Reference. Jon From jda at his.com Sat Oct 23 16:21:45 2004 From: jda at his.com (jda) Date: Sat Oct 23 15:22:32 2004 Subject: Unique field bug? In-Reply-To: References: Message-ID: >On 10/23/04 9:47 PM, "jda" wrote: > >> I'm adding records in which there is one unique field, uniqueID. I >> trying to trap for exceptions with the following code: >> >> i = myCursor.LongField("uniqueID").value >> do >> try >> cursPosition = myCursor.addRecord >> catch vError as VException >> >> if cursPosition = 0 then //and myDatabase.errNumber = 344 > >Note, 2.0 have different numbers for error codes!!! >So it is not 344. > >> then duplicate uniqueID --will update when v2 has error constants >> >> i = i + 1 >> myCursor.LongField("uniqueID").value = i >> else >> raise vError >> end if >> end try >> loop until cursPosition <> 0 >> >> The exceptions are trapped properly, but when it's finished a record >> is added for EVERY time cursPosition = myCursor.addRecord was called. >> >> So if the first add -> exception and the second is successful, I end >> up with two records (each having the same uniqueID value, BTW!). > >I have not understand, > >You say that record IS ADDED _and_ exception is throw? > Yes, that's what seems to be happening... Jon From sunshine at public.kherson.ua Sun Oct 24 01:34:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 23 17:34:53 2004 Subject: Errors In-Reply-To: Message-ID: On 10/23/04 11:21 PM, "jda" wrote: >> But I did not see them :-) >> >> So way? >> >> And I assume you again talk about NON-exception way? >> > > No, it's the exception way. > > To see an example, run my project, make a database, then Copy > Reference, then Paste Reference. This is menu commands ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Oct 23 18:48:42 2004 From: jda at his.com (jda) Date: Sat Oct 23 17:48:58 2004 Subject: Errors In-Reply-To: References: Message-ID: >On 10/23/04 11:21 PM, "jda" wrote: > >>> But I did not see them :-) >>> >>> So way? >>> >>> And I assume you again talk about NON-exception way? >>> >> >> No, it's the exception way. >> >> To see an example, run my project, make a database, then Copy >> Reference, then Paste Reference. > >This is menu commands ? > Yes -- Edit menu. Jon From sunshine at public.kherson.ua Thu Oct 28 17:24:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 28 09:25:27 2004 Subject: V4RB b21 uploaded Message-ID: Hi All, We have upload new beta 21. Jon, please test and let me know about found problems. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Oct 28 12:19:06 2004 From: jda at his.com (jda) Date: Thu Oct 28 11:19:18 2004 Subject: V4RB b21 uploaded In-Reply-To: References: Message-ID: >Hi All, > >We have upload new beta 21. > >Jon, please test and let me know about found problems. > > I can't unstuff VEngine -- halts in the middle (http downloaded). Jon From AYU8 at CDC.GOV Thu Oct 28 12:26:00 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Thu Oct 28 11:26:22 2004 Subject: V4RB b21 uploaded Message-ID: > I can't unstuff VEngine -- halts in the middle (http downloaded). > > Jon This does not appear to be an isolated incident. It won't unstuff correctly for me either. (also http downloaded) John From sunshine at public.kherson.ua Thu Oct 28 19:29:03 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 28 11:30:10 2004 Subject: V4RB b21 uploaded In-Reply-To: Message-ID: On 10/28/04 7:19 PM, "jda" wrote: >> Hi All, >> >> We have upload new beta 21. >> >> Jon, please test and let me know about found problems. >> >> > > I can't unstuff VEngine -- halts in the middle (http downloaded). I will repeat upload now again -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Oct 28 12:58:30 2004 From: jda at his.com (jda) Date: Thu Oct 28 11:58:40 2004 Subject: V4RB b21 uploaded In-Reply-To: References: Message-ID: >On 10/28/04 7:19 PM, "jda" wrote: > >>> Hi All, >>> >>> We have upload new beta 21. >>> >>> Jon, please test and let me know about found problems. >>> >>> >> >> I can't unstuff VEngine -- halts in the middle (http downloaded). > >I will repeat upload now again > Still no good. Please restuff (and try unstuffing on your end). Jon From sunshine at public.kherson.ua Thu Oct 28 20:00:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 28 12:01:21 2004 Subject: V4RB b21 uploaded In-Reply-To: Message-ID: On 10/28/04 7:29 PM, "Ruslan Zasukhin" wrote: >> I can't unstuff VEngine -- halts in the middle (http downloaded). > > I will repeat upload now again FIXED -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Oct 28 13:55:42 2004 From: jda at his.com (jda) Date: Thu Oct 28 12:55:51 2004 Subject: V4RB b21 uploaded In-Reply-To: References: Message-ID: >>Hi All, >> >>We have upload new beta 21. >> >>Jon, please test and let me know about found problems. >> I've only been able to play with it for a few minutes -- creating new records still crashes after a while, boolean sql searches still don't work. I'll test the other issues later. Why don't we pick a few things and work on those? Jon From sunshine at public.kherson.ua Thu Oct 28 21:02:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 28 13:03:28 2004 Subject: V4RB b21 uploaded In-Reply-To: Message-ID: On 10/28/04 8:55 PM, "jda" wrote: > I've only been able to play with it for a few minutes -- creating new > records still crashes after a while, boolean sql searches still don't > work. I'll test the other issues later. > > Why don't we pick a few things and work on those? ? 1) Was fixed crash in index 2) your report COPY REF / PASTE REF works for me 3) and others -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Oct 28 14:13:49 2004 From: jda at his.com (jda) Date: Thu Oct 28 13:13:54 2004 Subject: V4RB b21 uploaded In-Reply-To: References: Message-ID: > > >1) Was fixed crash in index Hm, I don't recall that one, unless you mean crash when importing my text file -- yes, that still crashes. I can send you the necessary file to reproduce that, if you want. > >2) your report COPY REF / PASTE REF works for me FIXED! :-> > >3) and others > Boolean search -> no Icon for my database file -> so far, seems fixed (I'll need to make more to be sure) I'll test more later... Jon From sunshine at public.kherson.ua Thu Oct 28 21:21:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 28 13:22:41 2004 Subject: V4RB b21 uploaded In-Reply-To: Message-ID: On 10/28/04 9:13 PM, "jda" wrote: >> 3) and others >> > > Boolean search -> no > Icon for my database file -> so far, seems fixed (I'll need to make > more to be sure) > > I'll test more later... Yes I did not test it. Jon, Please test and add EACH found problem with STEPS to reproduce to bug system. Now I really understand REAL guys and others which ask to report bug using trackers. :-) 1) when bug is reported into system EACH our developer see it, often, bug can be resolved by other developers but not me. Each of them see if reported bug is in are which he have develop. 2) this bug is not lost. And so on. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Oct 28 17:16:27 2004 From: jda at his.com (jda) Date: Thu Oct 28 16:16:36 2004 Subject: V4RB b21 uploaded In-Reply-To: References: Message-ID: > > >2) your report COPY REF / PASTE REF works for me > Ah, Ruslan, I spoke too soon. It doesn't crash anymore. BUT, when there is a unique field error (vException) the record is added anyway! Run my project, Copy Ref and then paste twice -- the first adds ONE record (because there is no unique error), the second paste adds TWO records (there was a unique field exception (but the record was added anyway), a new unique id was created, and on the second try a new record was added successfully. Jon From sunshine at public.kherson.ua Fri Oct 29 01:45:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Oct 28 17:46:24 2004 Subject: V4RB b21 uploaded In-Reply-To: Message-ID: On 10/29/04 12:16 AM, "jda" wrote: >> >> >> 2) your report COPY REF / PASTE REF works for me >> > > Ah, Ruslan, I spoke too soon. > > It doesn't crash anymore. BUT, when there is a unique field error > (vException) the record is added anyway! > > Run my project, Copy Ref and then paste twice -- the first adds ONE > record (because there is no unique error), the second paste adds TWO > records (there was a unique field exception (but the record was added > anyway), a new unique id was created, and on the second try a new > record was added successfully. Please tell me: What field is marked as unique ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Oct 28 18:48:47 2004 From: jda at his.com (jda) Date: Thu Oct 28 17:48:54 2004 Subject: V4RB b21 uploaded In-Reply-To: References: Message-ID: > > > >> Run my project, Copy Ref and then paste twice -- the first adds ONE >> record (because there is no unique error), the second paste adds TWO >> records (there was a unique field exception (but the record was added >> anyway), a new unique id was created, and on the second try a new >> record was added successfully. > >Please tell me: > >What field is marked as unique ? > uniqueID a LongField. Jon From jda at his.com Sat Oct 30 07:13:04 2004 From: jda at his.com (jda) Date: Sat Oct 30 06:13:11 2004 Subject: VComponents In-Reply-To: References: Message-ID: Hi Ruslan, I thought you mentioned a while ago that the VComponents folder could be in the same folder as our app. I see that's not the case -- has to be in the CFMSupport folder. Will this be allowed before 2.0 is released? JOn From sunshine at public.kherson.ua Sat Oct 30 20:24:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Oct 30 12:25:28 2004 Subject: VComponents In-Reply-To: Message-ID: On 10/30/04 2:13 PM, "jda" wrote: > Hi Ruslan, > > I thought you mentioned a while ago that the VComponents folder could > be in the same folder as our app. I see that's not the case -- has to > be in the CFMSupport folder. Will this be allowed before 2.0 is > released? Yes, and please add this also to Mantis. We need for this special function to specify path -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina -------------------------------------------------------------