From sunshine at public.kherson.ua Thu Jul 1 00:28:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jun 30 16:30:29 2004 Subject: large BLOB data slow to load In-Reply-To: <20040630212125.56839.qmail@web52406.mail.yahoo.com> Message-ID: On 7/1/04 12:21 AM, "Chris Sheffield" wrote: > You can just run it in VStudio if you want to. The > same thing happens there. It doesn't seem to make a > difference whether I use the XCMD or VStudio. If you > don't want to do that, I can put together a little > test stack or something for you to test it with. No no. I prefer Vstudio of course. -- 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 Thu Jul 1 01:23:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jun 30 17:23:59 2004 Subject: New demo license files for Vserver uploaded 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 barney at custombased.com Thu Jul 1 16:44:16 2004 From: barney at custombased.com (Barney) Date: Wed Jun 30 23:46:14 2004 Subject: V4RB Windows cursor read only ? Message-ID: Hello, Have embarked upon porting app over to Windows. First stumbling block...my cursor seems to be read only for some reason ? Database opening fine and reading data OK, but can't : err = cur.update() Why would this be, what can I do to fix this ? IDE Error message tells me I can't alter this property. Thank you for your help. Barney From sunshine at public.kherson.ua Thu Jul 1 09:57:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 01:58:02 2004 Subject: V4RB Windows cursor read only ? In-Reply-To: Message-ID: On 7/1/04 7:44 AM, "Barney" wrote: Hi Barney, > Have embarked upon porting app over to Windows. > > First stumbling block...my cursor seems to be read only for some reason ? > > Database opening fine and reading data OK, but can't : > > err = cur.update() > > Why would this be, what can I do to fix this ? IDE Error message tells me > I can't alter this property. Do you mean that REALbasic IDE do NOT compile it ? then some glitch I think. It must compile always Or this happens runtime? then this can be -- cursor client-side -- cursor on few tables -- ... -- 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 idevaney at mac.com Thu Jul 1 09:48:27 2004 From: idevaney at mac.com (Ian Devaney) Date: Thu Jul 1 03:49:14 2004 Subject: RB Destructors - Still Confused In-Reply-To: <20040630095145.33E19167B8D@edison.macserve.net> References: <20040630095145.33E19167B8D@edison.macserve.net> Message-ID: <6B530EEE-CB3B-11D8-AAA6-000A9566DC14@mac.com> On 30 Jun 2004, at 10:51 am, valentina-request@lists.macserve.net wrote: > > On 6/28/04 12:23 PM, "Ian Devaney" wrote: > >> Thanks Charles. >> >> Yes, I am closing the databases and then setting the reference to nil. >> >> I suppose I still must have a reference I can't find! > > Ian, > > Am I right that RB debugger show you the count of refs ? Yes. > > Is it possible to step by big steps and monitor the count of refs? > > Then go down to isolate. Don't really understand this. I use the debugger in a very rudimentary way! Ian From paolo.sala at ff3d.com Thu Jul 1 16:52:49 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 1 03:52:48 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash Message-ID: <001601c45f7b$143525a0$475801da@Paolo> Hi, i'm developping a software with Director MX and ValentinaDB. If my software crash for any reason, and the connescion is still open, after i cannot re-open the DB. I leave my connection open all the time in a Global variable. it's the correct way? Thanks From paolo.sala at ff3d.com Thu Jul 1 16:58:13 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 1 03:57:57 2004 Subject: [4VMD] Query 1,5 million records... Message-ID: <002301c45f7b$d50b24f0$475801da@Paolo> In Macromedia DirectorMX, I've a simple query "SELECT * FROM tabName WHERE a='b' this table contains 1,5 million record but the time is very long, even better the query never ended! After that, the software is blocked and is impossible re-open the DB Thanks Paolo From sunshine at public.kherson.ua Thu Jul 1 12:01:45 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 04:02:02 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash In-Reply-To: <001601c45f7b$143525a0$475801da@Paolo> Message-ID: On 7/1/04 5:52 PM, "Paolo Sala" wrote: Hi Paolo, > i'm developping a software with Director MX and ValentinaDB. > If my software crash for any reason, and the connescion is still open, after i > cannot re-open the DB. > I leave my connection open all the time in a Global variable. > it's the correct way? You see this in Director IDE ? Please note that in our examples we have in handler on StopMovie The Valentina ShutDown. Add this into your project also. You can see that example do not have this problem. -- 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 Thu Jul 1 12:03:50 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 04:04:04 2004 Subject: [4VMD] Query 1,5 million records... In-Reply-To: <002301c45f7b$d50b24f0$475801da@Paolo> Message-ID: On 7/1/04 5:58 PM, "Paolo Sala" wrote: > In Macromedia DirectorMX, I've a simple query "SELECT * FROM tabName WHERE > a='b' > this table contains 1,5 million record but the time is very long, even better > the query never ended! > After that, the software is blocked and is impossible re-open the DB 1) try open this db in Valentina Studio or in viSQL 2) try do the same query from this tools. what you see? 3) what cache size you have specify for Valentina ? for such big db I recommend 20MB. 4) in Valentina Studio check if field a is marked as indexed. may be Valentina build index -- 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 paolo.sala at ff3d.com Thu Jul 1 17:07:47 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 1 04:07:37 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash References: Message-ID: <003301c45f7d$2b79f4a0$475801da@Paolo> The problem happens if the system crash during a SQLQuery, the only possible thing is close the application with TaskManager (when the query still working...) and so "On Stop Movie" don't happends (i think...) and also the "ValentinaShutDown" never happens. > > Hi Paolo, > > > i'm developping a software with Director MX and ValentinaDB. > > > If my software crash for any reason, and the connescion is still open, after i > > cannot re-open the DB. > > > I leave my connection open all the time in a Global variable. > > it's the correct way? > > You see this in Director IDE ? > > Please note that in our examples we have in handler on StopMovie > The Valentina ShutDown. > > Add this into your project also. > > You can see that example do not have this problem. > > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Thu Jul 1 12:11:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 04:14:01 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash In-Reply-To: <003301c45f7d$2b79f4a0$475801da@Paolo> Message-ID: On 7/1/04 6:07 PM, "Paolo Sala" wrote: > The problem happens if the system crash during a SQLQuery, the only possible > thing is close the application with TaskManager (when the query still > working...) and so "On Stop Movie" don't happends (i think...) and also the > "ValentinaShutDown" never happens. Paolo, about which application you talk? Director itself or Projector ? >> Hi Paolo, >> >>> i'm developping a software with Director MX and ValentinaDB. >> >>> If my software crash for any reason, and the connescion is still open, > after i >>> cannot re-open the DB. >> >>> I leave my connection open all the time in a Global variable. >>> it's the correct way? >> >> You see this in Director IDE ? >> >> Please note that in our examples we have in handler on StopMovie >> The Valentina ShutDown. >> >> Add this into your project also. >> >> You can see that example do not have this problem. -- 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 paolo.sala at ff3d.com Thu Jul 1 17:25:48 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 1 04:25:33 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash References: Message-ID: <003f01c45f7f$afbbc3e0$475801da@Paolo> Both (thanks for your patience. I've bought my licence only yesterday!) If, during a query, I kill director or projector with task manager, i cannot re-open the DB > On 7/1/04 6:07 PM, "Paolo Sala" wrote: > > > The problem happens if the system crash during a SQLQuery, the only possible > > thing is close the application with TaskManager (when the query still > > working...) and so "On Stop Movie" don't happends (i think...) and also the > > "ValentinaShutDown" never happens. > > Paolo, about which application you talk? > > Director itself or Projector ? > > > > >> Hi Paolo, > >> > >>> i'm developping a software with Director MX and ValentinaDB. > >> > >>> If my software crash for any reason, and the connescion is still open, > > after i > >>> cannot re-open the DB. > >> > >>> I leave my connection open all the time in a Global variable. > >>> it's the correct way? > >> > >> You see this in Director IDE ? > >> > >> Please note that in our examples we have in handler on StopMovie > >> The Valentina ShutDown. > >> > >> Add this into your project also. > >> > >> You can see that example do not have this problem. > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > From bibiko at eva.mpg.de Thu Jul 1 11:45:35 2004 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Thu Jul 1 04:48:53 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash In-Reply-To: <003301c45f7d$2b79f4a0$475801da@Paolo> References: <003301c45f7d$2b79f4a0$475801da@Paolo> Message-ID: <40E3DD3F.30507@eva.mpg.de> Hi Paolo, you wrote: > ... and so "On Stop Movie" don't happends (i think...) and also the > "ValentinaShutDown" never happens. Please check your Director Syntax: on stopMovie !! If I kill a projector via 'END TASK' this routine will also run. On the other hand, if you imported 1.5 mill records it will take really a long time to index these fields by Valentina for the first run. After building index the server runs very fast. I have only 200.000 records and it takes about 2min. for two fields depending on your computer's speed. Hans-Joerg From sunshine at public.kherson.ua Thu Jul 1 12:49:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 04:49:25 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash In-Reply-To: <003f01c45f7f$afbbc3e0$475801da@Paolo> Message-ID: On 7/1/04 6:25 PM, "Paolo Sala" wrote: > Both (thanks for your patience. I've bought my licence only yesterday!) > If, during a query, I kill director or projector with task manager, i cannot > re-open the DB Strange. And what is solution to open file? Restart computer? -- 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 Thu Jul 1 12:53:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 04:54:09 2004 Subject: [4vMD] Impossible re-open DB if the sofware crash In-Reply-To: <40E3DD3F.30507@eva.mpg.de> Message-ID: On 7/1/04 12:45 PM, "Hans-Joerg Bibiko" wrote: > Hi Paolo, > > you wrote: > >> ... and so "On Stop Movie" don't happends (i think...) and also the >> "ValentinaShutDown" never happens. > > Please check your Director Syntax: on stopMovie !! > > If I kill a projector via 'END TASK' this routine will also run. > > On the other hand, if you imported 1.5 mill records it will take really > a long time to index these fields by Valentina for the first run. After > building index the server runs very fast. I have only 200.000 records > and it takes about 2min. for two fields depending on your computer's speed. And if you set cache bigger then indexing can be faster. Indexing is very sensitive to cache size. -- 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 Thu Jul 1 22:43:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 14:43:56 2004 Subject: strange query In-Reply-To: <7BDFFDCF-CB94-11D8-A916-000A95680702@amug.org> Message-ID: On 7/1/04 10:26 PM, "Tim Davis" wrote: Hi Tim, > I have two queries below. The first one returns 4817 records the second > return 830. The second should be correct. The only difference is a sum > field. Why is the first returning so many "duplicate" records? Does > Group By only work when there is a field function? 1) both your query are wrong because you have break SQL standard rule: if you use GROUP BY then in SELECT can be ONLY AND ONLY - fields listed in GROUP BY - aggregative functions on that fields - mix of 2 above. You do e.g. SELECT Inventory.tCompany, but this field is not in the GROUP BY. Valentina 2.0 will simply return error on such query. 2) in first case, when you use GROUP BY but not use aggregative functions, you can use workaround: SELECT DISTINCT f1, f2, ... FROM T WHERE ... And no GROUP BY at all. > Thanks, > Tim > > > > Cost Report (Current Month): > SELECT > Inventory.tCompany, > Inventory.tLocation, > Inventory.tMaterial, > Inventory.tPlacement, > Inventory.tMfr, > Inventory.tSubCategory, > Inventory.tDescription, > Inventory.tSpecials, > Inventory.cHand, > Inventory.cBinSort, > Inventory.cBinSort1, > Inventory.cBinSort2, > Inventory.cID > FROM > Inventory, > InventoryLog > WHERE > Inventory.cID=InventoryLog.cID > and Inventory.tStockStatus<>'Not Stock' > and Inventory.tLocation='LV' > GROUP BY > Inventory.cID > ORDER BY > Inventory.tCompany, > Inventory.tLocation, > Inventory.tMaterial, > Inventory.cBinSort, > Inventory.cBinSort1, > Inventory.cBinSort2, > Inventory.tPlacement, > Inventory.tMfr > > Cost Report (Current Month): > SELECT > Inventory.tCompany, > Inventory.tLocation, > Inventory.tMaterial, > Inventory.tPlacement, > Inventory.tMfr, > Inventory.tSubCategory, > Inventory.tDescription, > Inventory.tSpecials, > Inventory.cHand, > Sum(InventoryLog.cQtyDiffStock), > Inventory.cBinSort, > Inventory.cBinSort1, > Inventory.cBinSort2, > Inventory.cID > FROM > Inventory, > InventoryLog > WHERE > Inventory.cID=InventoryLog.cID > and Inventory.tStockStatus<>'Not Stock' > and Inventory.tLocation='LV' > GROUP BY > Inventory.cID > ORDER BY > Inventory.tCompany, > Inventory.tLocation, > Inventory.tMaterial, > Inventory.cBinSort, > Inventory.cBinSort1, > Inventory.cBinSort2, > Inventory.tPlacement, > Inventory.tMfr > -- 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 barney at custombased.com Fri Jul 2 08:42:18 2004 From: barney at custombased.com (Barney) Date: Thu Jul 1 15:44:19 2004 Subject: V4RB Windows cursor read only ? In-Reply-To: Message-ID: Hi Ruslan, My project is compiling just fine, the database is opening. Cur = App.DB.SQLSelect("Select * from Table Where field = 'example' ") My cursors are being created OK using the code above and I can read data from them OK but I can't seem to save data. At closer inspection I see that the cursor is flagged as ReadOnly = true. This is in the runtime environment. Just out of interest I tried adding the code : Cur = App.DB.SQLSelect("Select * from Table Where field = 'example' ") Cur.ReadOnly = false But the IDE doesn't like this last line ? Is there something different we have to do on Windows ? I've got the latest plugin from the Paradigmasoft.com site only a few days ago. This is just a normal single user database project with an embedded database. It is not being served. Thanks. Barney > Do you mean that REALbasic IDE do NOT compile it ? > then some glitch I think. It must compile always > on 1/7/04 6:57 PM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > On 7/1/04 7:44 AM, "Barney" wrote: > > Hi Barney, > >> Have embarked upon porting app over to Windows. >> >> First stumbling block...my cursor seems to be read only for some reason ? >> >> Database opening fine and reading data OK, but can't : >> >> err = cur.update() >> >> Why would this be, what can I do to fix this ? IDE Error message tells me >> I can't alter this property. > > Do you mean that REALbasic IDE do NOT compile it ? > then some glitch I think. It must compile always > > Or this happens runtime? > then this can be > -- cursor client-side > -- cursor on few tables > -- ... From sunshine at public.kherson.ua Thu Jul 1 23:47:05 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 15:47:14 2004 Subject: V4RB Windows cursor read only ? In-Reply-To: Message-ID: On 7/1/04 11:42 PM, "Barney" wrote: > Hi Ruslan, > > My project is compiling just fine, the database is opening. > > Cur = App.DB.SQLSelect("Select * from Table Where field = 'example' ") > > My cursors are being created OK using the code above and I can read data > from them OK but I can't seem to save data. OF COURSE. You have not specify in the SqlSelect() that you want SERVER SIDE and READ WIRTE cursor. Please check docs. SqlSelect( query, ServerSide, ReadWrite, Random ) -- 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 barney at custombased.com Fri Jul 2 09:02:24 2004 From: barney at custombased.com (Barney) Date: Thu Jul 1 16:04:25 2004 Subject: V4RB Windows cursor read only ? In-Reply-To: Message-ID: Oh...OK, But I have never had to do this before ? Is the plugin I've downloaded different from the one I'm using on my Mac ? Is this kind of query now needed for both the client/server plugin AND the single user plugin ? I have hundreds and hundreds of lines scattered throughout this project calling cursors in this fashion : >> Cur = App.DB.SQLSelect("Select * from Table Where field = 'example' ") Must I now change all this code, or maybe create a subclass ? I'd like to use the same code base for both Mac and Windows. Must the code for the plugin on the Mac now be different than that on Windows. Or am I just using an old out of date plugin on my Mac ? Thanks. Barney > OF COURSE. > > You have not specify in the SqlSelect() that you want SERVER SIDE and READ > WIRTE cursor. > > Please check docs. > > SqlSelect( query, ServerSide, ReadWrite, Random ) > > > on 2/7/04 8:47 AM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > On 7/1/04 11:42 PM, "Barney" wrote: > >> Hi Ruslan, >> >> My project is compiling just fine, the database is opening. >> >> Cur = App.DB.SQLSelect("Select * from Table Where field = 'example' ") >> >> My cursors are being created OK using the code above and I can read data >> from them OK but I can't seem to save data. > > OF COURSE. > > You have not specify in the SqlSelect() that you want SERVER SIDE and READ > WIRTE cursor. > > Please check docs. > > SqlSelect( query, ServerSide, ReadWrite, Random ) > > > From sunshine at public.kherson.ua Fri Jul 2 00:08:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 1 16:09:11 2004 Subject: V4RB Windows cursor read only ? In-Reply-To: Message-ID: On 7/2/04 12:02 AM, "Barney" wrote: > Oh...OK, > > But I have never had to do this before ? You need do this starting from Valentina 1.10 > Is the plugin I've downloaded different from the one I'm using on > my Mac ? The same. This wonder me. > Is this kind of query now needed for both the client/server plugin AND > the single user plugin ? Yes, single user plugin still do record locks. This is good in case you use several cursors. > I have hundreds and hundreds of lines scattered throughout > this project calling cursors in this fashion : > >>> Cur = App.DB.SQLSelect("Select * from Table Where field = 'example' ") > Must I now change all this code, or maybe create a subclass ? It looks to me subclass is more hard than find replace > I'd like to use the same code base for both Mac and Windows. Must the code > for the plugin on the Mac now be different than that on Windows. Or am I > just using an old out of date plugin on my Mac ? Code of course MUST BE the same for all platforms. May be and old. Make sure that both are of 1.10 version. -- 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 Jul 2 09:23:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 2 01:23:39 2004 Subject: [V4MD] Impossible re-open DB if the sofware crash In-Reply-To: <002701c4601d$0028abc0$6801a8c0@Paolo> Message-ID: On 7/2/04 1:11 PM, "Paolo Sala" wrote: Hi Paolo, > Yes, thanks! > Last night i've changed my VB project that biulding the Valentina DB and > i've used the indexes. > Now it's incredibly fast! Query 1.5 million records is now very easy! My VB > project need more time to generate the DB and indexes (with your ActiveX, > very nice!), but when you use it in Director is very fast and the sistem > doesn't crash! > Before, during the query in Director (Application or Proj.) Valentina engine > build the index and the system apparently crash, so I blocked with task > manager. It was only my fault! Excellent. I am glad to hear that Valentina now works fine for you. So as I see you use Visual BASIC to build database, Then use this database in the final Director project, yes? Question: why you prefer to build db in VB but not in Director itself? You import records somehow from other DBMS ? Quesion2: Valentina Studio was in help to you? any comments on Valentina Studio? > Thanks again! > Paolo > >> ----- Original Message ----- >> From: "Ruslan Zasukhin" >> To: >> Sent: Thursday, July 01, 2004 10:27 PM >> Subject: Re: [4vMD] Impossible re-open DB if the sofware crash >> >> Paolo, >> >> have you resolve problems with open file and >> Speed of query ? -- 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 marcus at synchromedia.co.uk Fri Jul 2 17:42:38 2004 From: marcus at synchromedia.co.uk (Marcus Bointon) Date: Fri Jul 2 11:43:03 2004 Subject: V4MD - Blob embedded images with text In-Reply-To: Message-ID: on 23/6/04 16:23, Joseph Lantis at joseph@lantis.cc wrote: > I need to know how to > get the image references to display at the appropriate spot in the text. I think you're missing a big factor here. Director's HTML support is pretty bad and does not extend to images. The only option is really to use a web browser Xtra like WebXtra to render the HTML properly: http://xtras.tabuleiro.com/products/web/whatis.htm Unfortunately it's effectively Windows only - hopefully they will wrap WebCore to produce a Mac version at some point. You could try using pointochar to find the location of links in the text and attempt to align sprites over them, but remember that Director will not make space for the images to fit. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk From marcus at synchromedia.co.uk Fri Jul 2 17:50:16 2004 From: marcus at synchromedia.co.uk (Marcus Bointon) Date: Fri Jul 2 11:50:25 2004 Subject: [4VMD] Query 1,5 million records... In-Reply-To: <002301c45f7b$d50b24f0$475801da@Paolo> Message-ID: on 1/7/04 15:58, Paolo Sala at paolo.sala@ff3d.com wrote: > In Macromedia DirectorMX, I've a simple query "SELECT * FROM tabName WHERE > a='b' > this table contains 1,5 million record but the time is very long, even better > the query never ended! > After that, the software is blocked and is impossible re-open the DB Make sure that everything that needs to be is indexed (in this case the 'a' field). I've had more complex searches than this on a database with 20m records taking only 0.1 sec. Building indexes can take a long time. I've found the best place to get them built is in VApp, as it shows a progress bar. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk From forgete at cafederic.com Sat Jul 3 00:02:09 2004 From: forgete at cafederic.com (Eric Forget) Date: Fri Jul 2 23:02:23 2004 Subject: [VSDK] Specifying a secondary index? Message-ID: Hi Ruslan, I'm starting to have speed issue with one table that has 32017 records. The problem happens with a query like this: SELECT DISTINCT LowerName, Name FROM Keyword WHERE Keyword.LowerName <> '' ORDER BY LowerName It also happens with a cursor->Add(); The problem happens only the first time. With Sampler I have been able to figure out the Valentina Stack: ... FBL_SecondaryIndex::BuildIndex() FBL_SecondaryIndex::OpenFirstTime() FBL_SecondaryIndex::Open() So it looks like that an index has to be rebuild on each launch of my application! Is there a way to specify such index to be persistent like the others? Thanks, ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sat Jul 3 07:32:28 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 2 23:32:41 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: On 7/3/04 7:02 AM, "Eric Forget" wrote: Hi Eric, > I'm starting to have speed issue with one table that has 32017 records. The > problem happens with a query like this: > > SELECT DISTINCT LowerName, Name FROM Keyword WHERE Keyword.LowerName <> '' > ORDER BY LowerName > > It also happens with a cursor->Add(); > > The problem happens only the first time. With Sampler I have been able to > figure out the Valentina Stack: > > ... > > FBL_SecondaryIndex::BuildIndex() > FBL_SecondaryIndex::OpenFirstTime() > FBL_SecondaryIndex::Open() > > So it looks like that an index has to be rebuild on each launch of my > application! > > Is there a way to specify such index to be persistent like the others? Of course. 1) If you set flag fIndxed, then index must be persistent. 2) even if Valentina automatically index some NOT indexed field, then Valentina 1.x do not kill that index, and field imply become indexed. So check this. After close of app, open db in VAPP. Is the field marked as indexed? It must be. Try do not search from VAPP. Works? 3) may be YOUR code somehow remove flag fIndxed? 4) another case when Valentina self rebuild index -- if it find that number of records in table differ from number of index records. -- 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 forgete at cafederic.com Sat Jul 3 01:19:06 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jul 3 00:19:15 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: Ruslan, >> I'm starting to have speed issue with one table that has 32017 records. The >> problem happens with a query like this: >> >> SELECT DISTINCT LowerName, Name FROM Keyword WHERE Keyword.LowerName <> '' >> ORDER BY LowerName >> >> It also happens with a cursor->Add(); >> >> The problem happens only the first time. With Sampler I have been able to >> figure out the Valentina Stack: >> >> ... >> >> FBL_SecondaryIndex::BuildIndex() >> FBL_SecondaryIndex::OpenFirstTime() >> FBL_SecondaryIndex::Open() >> >> So it looks like that an index has to be rebuild on each launch of my >> application! >> >> Is there a way to specify such index to be persistent like the others? > > Of course. > > 1) If you set flag fIndxed, then index must be persistent. I was assuming 2) to work so I've been a bit lazy on that. To make sure the problem is not related to that I've added it to all the fields of my table. With no success... > 2) even if Valentina automatically index some NOT indexed field, then > Valentina 1.x do not kill that index, and field imply become indexed. > > > So check this. After close of app, open db in VAPP. > Is the field marked as indexed? > It must be. > > Try do not search from VAPP. Works? They are marked as indexed... > 3) may be YOUR code somehow remove flag fIndxed? I do not touch that outside the constructor of the field in the .h... So if it is changing it should be memory corruption... > 4) another case when Valentina self rebuild index -- if it find that number > of records in table differ from number of index records. How can that happens? Also, is it normal for a 504 MB database having a 3.2 MB index file? ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sat Jul 3 08:28:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 3 00:29:08 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: On 7/3/04 8:19 AM, "Eric Forget" wrote: >> Of course. >> >> 1) If you set flag fIndxed, then index must be persistent. > > I was assuming 2) to work so I've been a bit lazy on that. To make sure the > problem is not related to that I've added it to all the fields of my table. > With no success... > >> 2) even if Valentina automatically index some NOT indexed field, then >> Valentina 1.x do not kill that index, and field imply become indexed. >> >> >> So check this. After close of app, open db in VAPP. >> Is the field marked as indexed? >> It must be. >> >> Try do not search from VAPP. Works? > > They are marked as indexed... > >> 3) may be YOUR code somehow remove flag fIndxed? > > I do not touch that outside the constructor of the field in the .h... So if > it is changing it should be memory corruption... > >> 4) another case when Valentina self rebuild index -- if it find that number >> of records in table differ from number of index records. > > How can that happens? E.g. After crash. But you say you have this as consistent behavior. > Also, is it normal for a 504 MB database having a 3.2 MB index file? Hmm. * Your db files are not marked as read only ? Because if yes, then Valentina will build index not in the .ind file But in the tmp file located in the tmp folder of OS. And in this case it will build such index on each start. * if db is not read only then I even have no idea... * may be you close db somehow bad ? I can recommend to do just in case XML dump/rebuild. But before this try todo diagnose for db -- 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 forgete at cafederic.com Sat Jul 3 01:34:05 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jul 3 00:34:12 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: Hi Ruslan, I've found the culprit: VDK_String::SetCompareFunction(); As soon as we call this function, it marks the field index to "dirty". Unfortunately, I cannot call this function before opening the database: my callback will never be called if I do so... Do you have an idea on how to resolve that? Maybe adding a Boolean as a second parameter to SetCompareFunction()? ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sat Jul 3 08:41:00 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 3 00:41:11 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: On 7/3/04 8:34 AM, "Eric Forget" wrote: Hi Eric, > I've found the culprit: > > VDK_String::SetCompareFunction(); > > As soon as we call this function, it marks the field index to "dirty". > Unfortunately, I cannot call this function before opening the database: my > callback will never be called if I do so... > > Do you have an idea on how to resolve that? > > Maybe adding a Boolean as a second parameter to SetCompareFunction()? Looks to be the only way. Remind me why you set own compare function ? -- 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 forgete at cafederic.com Sat Jul 3 01:46:18 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jul 3 00:46:28 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: >> I've found the culprit: >> >> VDK_String::SetCompareFunction(); >> >> As soon as we call this function, it marks the field index to "dirty". >> Unfortunately, I cannot call this function before opening the database: my >> callback will never be called if I do so... >> >> Do you have an idea on how to resolve that? >> >> Maybe adding a Boolean as a second parameter to SetCompareFunction()? > > Looks to be the only way. > > Remind me why you set own compare function ? I'm using UTF-8 strings and also I need to compare number friendly: in order "AAA 28", "AAA 190", etc. ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sat Jul 3 09:24:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 3 01:27:10 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: On 7/3/04 8:46 AM, "Eric Forget" wrote: >>> I've found the culprit: >>> >>> VDK_String::SetCompareFunction(); >>> >>> As soon as we call this function, it marks the field index to "dirty". >>> Unfortunately, I cannot call this function before opening the database: my >>> callback will never be called if I do so... >>> >>> Do you have an idea on how to resolve that? >>> >>> Maybe adding a Boolean as a second parameter to SetCompareFunction()? >> >> Looks to be the only way. >> >> Remind me why you set own compare function ? > > I'm using UTF-8 strings and also I need to compare number friendly: in order > "AAA 28", "AAA 190", etc. Ok, so what you want ? That I have build new SDK for you? You use xcode 1.2 ? I already have install it here. So now I have only xCode 1.2 -- 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 forgete at cafederic.com Sat Jul 3 02:35:53 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jul 3 01:36:02 2004 Subject: [VSDK] Specifying a secondary index? In-Reply-To: Message-ID: > Ok, so what you want ? > > That I have build new SDK for you? That would be nice... > You use xcode 1.2 ? > > I already have install it here. > So now I have only xCode 1.2 I'm using Xcode 1.2 too... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From barney at custombased.com Mon Jul 5 11:34:37 2004 From: barney at custombased.com (Barney) Date: Sun Jul 4 18:36:33 2004 Subject: S = VBO.VFld.Getstring() ? Message-ID: Hello, I am just trying to access a fields data using... BaseObject.Field.Getstring() Below I am writing to a text file all the data inside a database just so on Windows I can quickly see what's happening inside. It writes everything properly except the data. the line... S = S + Fld.Name + " = " + Fld.GetString() + tb is not getting the data from the field. What am I doing wrong here ? Thank you. Barney Dim BO as VBaseObject Dim Fld as VField Dim I,Z,BOCount,FieldCount as Integer Dim S,T as string Dim BR,Tb as String Dim D as Date Dim F as Folderitem Dim TOut as TextOutputStream #If TargetWin32 then BR = chr(13) + chr(10) #Else BR = chr(13) #Endif D = New Date Tb = chr(9) S = "Examination of database " + D.LongDate + " : " + D.LongTime + "|||" For BOCount = 1 to App.DB.BaseObjectsCount BO = App.DB.BaseObject(BOCount) S = S + "Base Object " + str(BOCount) + "Name : " + BO.Name + "||" For Z = 1 to BO.RecordCount For FieldCount = 1 to BO.FieldCount Fld = BO.field(FieldCount) S = S + Fld.Name + " = " + Fld.GetString() + tb Next S = S + "|" Next S = S + "|||" Next S = ReplaceAll(S,"|",BR) F = GetFolderItem("Database Data.txt") TOut = F.CreateTextFile TOut.Write S From sunshine at public.kherson.ua Mon Jul 5 07:54:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 4 23:55:00 2004 Subject: S = VBO.VFld.Getstring() ? In-Reply-To: Message-ID: On 7/5/04 2:34 AM, "Barney" wrote: > Hello, > > I am just trying to access a fields data using... > > BaseObject.Field.Getstring() > > Below I am writing to a text file all the data inside a database just so on > Windows I can quickly see what's happening inside. First of all for this task better to use viSQL and Valentina Studio -- 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 Jul 5 07:56:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 4 23:58:28 2004 Subject: S = VBO.VFld.Getstring() ? In-Reply-To: Message-ID: On 7/5/04 2:34 AM, "Barney" wrote: Hi Barney, > I am just trying to access a fields data using... > > BaseObject.Field.Getstring() > > Below I am writing to a text file all the data inside a database just so on > Windows I can quickly see what's happening inside. > > It writes everything properly except the data. the line... > > S = S + Fld.Name + " = " + Fld.GetString() + tb > > is not getting the data from the field. > > What am I doing wrong here ? You do not manimulate with records. I do not see calls BaseObject.firstRecord, BaseObject.NextRecord > Thank you. > > Barney > > > > > Dim BO as VBaseObject > Dim Fld as VField > Dim I,Z,BOCount,FieldCount as Integer > Dim S,T as string > Dim BR,Tb as String > Dim D as Date > Dim F as Folderitem > Dim TOut as TextOutputStream > > > #If TargetWin32 then > BR = chr(13) + chr(10) > #Else > BR = chr(13) > #Endif > > D = New Date > Tb = chr(9) > > S = "Examination of database " + D.LongDate + " : " + D.LongTime + "|||" > > > For BOCount = 1 to App.DB.BaseObjectsCount > > BO = App.DB.BaseObject(BOCount) > S = S + "Base Object " + str(BOCount) + "Name : " + BO.Name + "||" > > For Z = 1 to BO.RecordCount > For FieldCount = 1 to BO.FieldCount > Fld = BO.field(FieldCount) > S = S + Fld.Name + " = " + Fld.GetString() + tb > Next > S = S + "|" > Next > > S = S + "|||" > > Next > > S = ReplaceAll(S,"|",BR) > > F = GetFolderItem("Database Data.txt") > TOut = F.CreateTextFile > TOut.Write S > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina -- 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 softil at onlinehome.de Mon Jul 5 08:37:16 2004 From: softil at onlinehome.de (SoftIl) Date: Mon Jul 5 01:37:42 2004 Subject: What can you say about the new VNET-Update and my last eMail to you? Message-ID: <000501c4625a$91774cf0$0ae2e6d9@IPSBASIS> Hi Ruslan, I have send an mail to your private eMail-Adress on June 20, 2004, but I haven't get answer from you. Here is my last mail: Best regards, Carsten ----- Original Message ----- From: "SoftIl" To: "Ruslan Zasukhin" Sent: Sunday, June 20, 2004 7:06 PM Subject: What can you say about the new VNET-Update? > Hi Ruslan, > how are the VNET-Update? > Can you say something about the time you will need to make the Update? > > To remember my problems with the current version: > > 1) unaccurate exception from db.open methode > ... > if I try to open an database I get inaccurate exception return in case of > the db isn't available. > Could be the db doesn't exist or the db is in use by an other programm, for > example. > In every case I get always the same exception "VNET.VException" with an > empty exception message string return. > That isn't really good. > It is impossible to find out for me, why I couldn't open the db. > ... > I have add an small testprogram for you. > > 2) problem with the "IsReadOnly"-Property of the VDataBase object > ... > The property "IsReadOnly" gets always TRUE return also isn't the file > readonly. > ... > > 3) problem with an baseobject methode and unique-flag > ... > The unique control works only if I add a new Record. > The unique control doesn't work if I change an existing record, or add the > method field to an table with already existing records. > In this case, it is possible to get duplicates. > .... From sunshine at public.kherson.ua Mon Jul 5 10:42:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 02:45:15 2004 Subject: What can you say about the new VNET-Update and my last eMail to you? In-Reply-To: <000501c4625a$91774cf0$0ae2e6d9@IPSBASIS> Message-ID: On 7/5/04 9:37 AM, "SoftIl" wrote: > Hi Ruslan, > I have send an mail to your private eMail-Adress on June 20, 2004, but I > haven't get answer from you. > Here is my last mail: It seems I did not get it. I will read. -- 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 Jul 5 10:52:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 02:52:20 2004 Subject: What can you say about the new VNET-Update and my last eMail to you? In-Reply-To: <000501c4625a$91774cf0$0ae2e6d9@IPSBASIS> Message-ID: On 7/5/04 9:37 AM, "SoftIl" wrote: >> 3) problem with an baseobject methode and unique-flag >> ... >> The unique control works only if I add a new Record. >> The unique control doesn't work if I change an existing record, or add the >> method field to an table with already existing records. >> In this case, it is possible to get duplicates. Btw, this sounds strange, I am sure this must 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 huancaya at wanadoo.fr Mon Jul 5 17:59:33 2004 From: huancaya at wanadoo.fr (Thierry Nauze) Date: Mon Jul 5 08:59:46 2004 Subject: Request SQL Message-ID: <8AC8C00E-CE8B-11D8-B05C-000A95BA5A32@wanadoo.fr> Hello, I have a table : relations with fields : id, idIndividu,idRelation,idSource ... How to select the records where idIndividu=idRelation "SELECT id,idSource FROM relations WHERE idIndividu=idRelation" select ALL records. Where is the error ? Thanks Valentina 1.10 with REALbasic -- Thierry Nauze Saint-Denis de la R?union From sunshine at public.kherson.ua Mon Jul 5 17:06:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 09:11:48 2004 Subject: Request SQL In-Reply-To: <8AC8C00E-CE8B-11D8-B05C-000A95BA5A32@wanadoo.fr> Message-ID: On 7/5/04 4:59 PM, "Thierry Nauze" wrote: Hi Thierry , > I have a table : relations > with fields : id, idIndividu,idRelation,idSource ... > > How to select the records where idIndividu=idRelation > > "SELECT id,idSource FROM relations WHERE idIndividu=idRelation" select > ALL records. > > Where is the error ? Just not implemented in Valentina 1.x You should to use workaround: create BaseObject method field with formula "idIndividu=idRelation" -- 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 huancaya at wanadoo.fr Mon Jul 5 19:17:56 2004 From: huancaya at wanadoo.fr (Thierry Nauze) Date: Mon Jul 5 10:18:09 2004 Subject: Request SQL In-Reply-To: References: Message-ID: <7E783A19-CE96-11D8-B05C-000A95BA5A32@wanadoo.fr> Le 5 juil. 04, ? 18:06, Ruslan Zasukhin a ?crit : > On 7/5/04 4:59 PM, "Thierry Nauze" wrote: > > Hi Thierry , > >> I have a table : relations >> with fields : id, idIndividu,idRelation,idSource ... >> >> How to select the records where idIndividu=idRelation >> >> "SELECT id,idSource FROM relations WHERE idIndividu=idRelation" >> select >> ALL records. >> >> Where is the error ? > > Just not implemented in Valentina 1.x > > You should to use workaround: > create BaseObject method field with formula "idIndividu=idRelation" > Thank you But said otherwise? I tried and example # 7 (and documentation) are not very explicit. -- Thierry Nauze Saint-Denis de la R?union From softil at onlinehome.de Mon Jul 5 17:46:12 2004 From: softil at onlinehome.de (SoftIl) Date: Mon Jul 5 10:46:16 2004 Subject: What can you say about the new VNET-Update and my last eMailto you? References: Message-ID: <001b01c462a7$34830a00$f8e9e6d9@IPSBASIS> Hi Ruslan, > >> 3) problem with an baseobject methode and unique-flag > >> ... > >> The unique control works only if I add a new Record. > >> The unique control doesn't work if I change an existing record, or add the > >> method field to an table with already existing records. > >> In this case, it is possible to get duplicates. > I am sure this must work. here is your last Answer for this problem: --------------------- On 6/9/04 3:36 PM, "SoftIl" wrote: Hi Carsten, >>> It is possible to save double entries in that field. Why? >> Aha, you mean that you can set flags but it not protect from duplicates? > Yes,but it is a little bit difficult: > The unique control works only if I add a new Record. ok > The unique control doesn't work if I change an existing record, I see. > or add the > method field to an table with already existing records. Well, if you add method, then set flag unique, I think it will refuse index building. And this will be sign of something wrong. I agree, this area not very clean yet. ----------------------- Best regards, Carsten From barney at custombased.com Tue Jul 6 08:10:24 2004 From: barney at custombased.com (Barney) Date: Mon Jul 5 15:12:22 2004 Subject: New Plugin not retrieving cursor In-Reply-To: Message-ID: Hi Ruslan, I have sent through an email to your private address too. Last night ...or this morning for you I think ? I just wonder if you've received this also. It had a small attachment. I have a file from which I cannot retrieve the most simple cursor. The file opens OK but the SQLstatement returns a nil cursor. "Select * from Gcodes" Yet if I use my old plugin version 1.9.6b18 with RB, the same code will retrieve a cursor just fine, has been doing so for a couple of years now. I wondered how to get around this, so I sent through the file. Did you get this ? Thanks Barney on 5/7/04 7:42 PM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > On 7/5/04 9:37 AM, "SoftIl" wrote: > >> Hi Ruslan, >> I have send an mail to your private eMail-Adress on June 20, 2004, but I >> haven't get answer from you. >> Here is my last mail: > > It seems I did not get it. > > I will read. From sunshine at public.kherson.ua Mon Jul 5 23:52:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 15:52:33 2004 Subject: New Plugin not retrieving cursor In-Reply-To: Message-ID: On 7/5/04 11:10 PM, "Barney" wrote: > Hi Ruslan, > > I have sent through an email to your private address too. > > Last night ...or this morning for you I think ? I just wonder if > you've received this also. It had a small attachment. > > I have a file from which I cannot retrieve the most simple cursor. > The file opens OK but the SQLstatement returns a nil cursor. > > "Select * from Gcodes" > > Yet if I use my old plugin version 1.9.6b18 with RB, the same code > will retrieve a cursor just fine, has been doing so for a couple of years > now. > > I wondered how to get around this, so I sent through the file. > > Did you get this ? Yes I have get your letter. It is on hold as few others. I hope I will spend Wednesday on this bug reports for 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 barney at custombased.com Tue Jul 6 09:42:05 2004 From: barney at custombased.com (Barney) Date: Mon Jul 5 16:44:02 2004 Subject: New Plugin not retrieving cursor In-Reply-To: Message-ID: Hi Ruslan, Don't worry about that one now, I have found the era of my ways. I had a field named with the same name as the base object. This is obviously not allowed now. Probably not a very good idea anyway. Thanks Barney on 6/7/04 8:52 AM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > On 7/5/04 11:10 PM, "Barney" wrote: > >> Hi Ruslan, >> >> I have sent through an email to your private address too. >> >> Last night ...or this morning for you I think ? I just wonder if >> you've received this also. It had a small attachment. >> >> I have a file from which I cannot retrieve the most simple cursor. >> The file opens OK but the SQLstatement returns a nil cursor. >> >> "Select * from Gcodes" >> >> Yet if I use my old plugin version 1.9.6b18 with RB, the same code >> will retrieve a cursor just fine, has been doing so for a couple of years >> now. >> >> I wondered how to get around this, so I sent through the file. >> >> Did you get this ? > > Yes I have get your letter. > It is on hold as few others. > > I hope I will spend Wednesday on this bug reports for 1.x From barney at custombased.com Tue Jul 6 10:09:44 2004 From: barney at custombased.com (Barney) Date: Mon Jul 5 17:11:40 2004 Subject: New Plugin not retrieving cursor In-Reply-To: Message-ID: Hi Ruslan, Actually I've still got problems. I've renamed it now but it's still not retrieving a cursor. If I ask for fields other than this one I get a cursor OK. As soon as I ask for this field either using its name or a * I get a nil cursor. This field is unique because it is the only VarChar in the database. VarChar length = 20000 ASC11 Indexed = true Presumably this is causing the problem ? Changing this field to a string makes everything work fine. Thanks Barney on 6/7/04 9:42 AM, Barney at barney@custombased.com wrote: > Hi Ruslan, > > Don't worry about that one now, I have found the era of my ways. > > I had a field named with the same name as the base object. This > is obviously not allowed now. Probably not a very good idea anyway. > > Thanks > > Barney > > > > on 6/7/04 8:52 AM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > >> On 7/5/04 11:10 PM, "Barney" wrote: >> >>> Hi Ruslan, >>> >>> I have sent through an email to your private address too. >>> >>> Last night ...or this morning for you I think ? I just wonder if >>> you've received this also. It had a small attachment. >>> >>> I have a file from which I cannot retrieve the most simple cursor. >>> The file opens OK but the SQLstatement returns a nil cursor. >>> >>> "Select * from Gcodes" >>> >>> Yet if I use my old plugin version 1.9.6b18 with RB, the same code >>> will retrieve a cursor just fine, has been doing so for a couple of years >>> now. >>> >>> I wondered how to get around this, so I sent through the file. >>> >>> Did you get this ? >> >> Yes I have get your letter. >> It is on hold as few others. >> >> I hope I will spend Wednesday on this bug reports for 1.x > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > From sunshine at public.kherson.ua Tue Jul 6 01:18:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 17:18:51 2004 Subject: New Plugin not retrieving cursor In-Reply-To: Message-ID: On 7/6/04 1:09 AM, "Barney" wrote: Hi Barney, > Actually I've still got problems. > > I've renamed it now but it's still not retrieving a cursor. If I ask for > fields other than this one I get a cursor OK. As soon as I ask for this > field either using its name or a * I get a nil cursor. This field is unique > because it is the only VarChar in the database. > > VarChar > length = 20000 > ASC11 ^^^^^^^^^^^^ ? "ASCII" as language? you type ASC11, should be ASCII Or you can try "English" > Indexed = true > > Presumably this is causing the problem ? Changing this field to a string > makes everything work fine. Db was fresh new ? Or modified somehow ? Try on fresh db -- 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 huancaya at wanadoo.fr Tue Jul 6 05:46:53 2004 From: huancaya at wanadoo.fr (Thierry Nauze) Date: Mon Jul 5 20:47:06 2004 Subject: Request SQL In-Reply-To: References: Message-ID: <5B7875B4-CEEE-11D8-90F7-000A95BA5A32@wanadoo.fr> Le 5 juil. 04, ? 18:06, Ruslan Zasukhin a ?crit : > On 7/5/04 4:59 PM, "Thierry Nauze" wrote: > > Hi Thierry , > >> I have a table : relations >> with fields : id, idIndividu,idRelation,idSource ... >> >> How to select the records where idIndividu=idRelation >> >> "SELECT id,idSource FROM relations WHERE idIndividu=idRelation" >> select >> ALL records. >> >> Where is the error ? > > Just not implemented in Valentina 1.x > > You should to use workaround: > create BaseObject method field with formula "idIndividu=idRelation" Whith : boRelations name = "relations" id = new vUMedium("id",kV_Unique) idIndividu = new vUMedium("idIndividu") idRelation = new vUMedium("idRelation") autoRelation=new vUMedium("autorelation") autoRelation.setMethod("idIndividu-idRelation") My request : "SELECT id,idSource,idIndividu FROM relations WHERE id>0 AND autorelation=0" works But, boRelations name = "relations" id = new vUMedium("id",kV_Unique) idIndividu = new vUMedium("idIndividu") idRelation = new vUMedium("idRelation") autoRelation=new vBoolean("autorelation") autoRelation.setMethod("idIndividu=idRelation") And the request : "SELECT id,idSource,idIndividu FROM relations WHERE id>0 AND autorelation*" don't works autoRelation, autoRelation=true ... Many expression were tried. What is then cood ? Regards, -- Thierry Nauze Saint-Denis de la R?union From forgete at cafederic.com Mon Jul 5 23:48:38 2004 From: forgete at cafederic.com (Eric Forget) Date: Mon Jul 5 22:48:45 2004 Subject: [VSDK] long FBL_Task::DoIndexing() Message-ID: Hi Ruslan, I'm trying to install the "callbacks" to display a progress bar to the user while indexing. If I thought that all you had to do is to implement the following functions: long FBL_Task::DoIndexing() It doesn't seems to work. It is never called. I should probably have missed something else. What are the steps to support such a feature? Thanks, ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Tue Jul 6 07:59:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 23:59:57 2004 Subject: Request SQL In-Reply-To: <5B7875B4-CEEE-11D8-90F7-000A95BA5A32@wanadoo.fr> Message-ID: On 7/6/04 4:46 AM, "Thierry Nauze" wrote: Hi Thierry, > Whith : > boRelations > name = "relations" > id = new vUMedium("id",kV_Unique) > idIndividu = new vUMedium("idIndividu") > idRelation = new vUMedium("idRelation") > > autoRelation=new vUMedium("autorelation") > autoRelation.setMethod("idIndividu-idRelation") > > My request : > "SELECT id,idSource,idIndividu FROM relations WHERE id>0 AND > autorelation=0" > works > > > But, > > boRelations > name = "relations" > id = new vUMedium("id",kV_Unique) > idIndividu = new vUMedium("idIndividu") > idRelation = new vUMedium("idRelation") > > autoRelation=new vBoolean("autorelation") > autoRelation.setMethod("idIndividu=idRelation") > > And the request : > "SELECT id,idSource,idIndividu FROM relations WHERE id>0 AND > autorelation*" > don't works > > autoRelation, autoRelation=true ... Many expression were tried. > What is then cood ? What you mean with many expressions? May happens that problem in Medium field. Please try the same with ULONG 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 sunshine at public.kherson.ua Tue Jul 6 08:01:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 6 00:01:17 2004 Subject: [VSDK] long FBL_Task::DoIndexing() In-Reply-To: Message-ID: On 7/6/04 6:48 AM, "Eric Forget" wrote: > Hi Ruslan, > > I'm trying to install the "callbacks" to display a progress bar to the user > while indexing. If I thought that all you had to do is to implement the > following functions: > > long FBL_Task::DoIndexing() > > It doesn't seems to work. It is never called. I should probably have Hi Eric, I will send you off list files from VAPP -- 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 forgete at cafederic.com Tue Jul 6 11:18:44 2004 From: forgete at cafederic.com (Eric Forget) Date: Tue Jul 6 10:18:50 2004 Subject: [VSDK] long FBL_Task::DoIndexing() In-Reply-To: Message-ID: Hi Ruslan, >> I'm trying to install the "callbacks" to display a progress bar to the user >> while indexing. If I thought that all you had to do is to implement the >> following functions: >> >> long FBL_Task::DoIndexing() >> >> It doesn't seems to work. It is never called. I should probably have > > Hi Eric, > > I will send you off list files from VAPP I had those files from the "VSDK_MAC_cw7" package. Unfortunately, it doesn't seems to work with the VSDK.framework. If I understand correctly, you have already implemented the FBL_Task::DoIndexing() inside the framework. It seems that with a framework, it is only that one that is being called. We cannot override it from the outside. So it seems that the only solution is having a framework without the FBL_Task::DoIndexing() implementated... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Tue Jul 6 18:23:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 6 10:30:58 2004 Subject: [VSDK] long FBL_Task::DoIndexing() In-Reply-To: Message-ID: On 7/6/04 6:18 PM, "Eric Forget" wrote: > Hi Ruslan, > >>> I'm trying to install the "callbacks" to display a progress bar to the user >>> while indexing. If I thought that all you had to do is to implement the >>> following functions: >>> >>> long FBL_Task::DoIndexing() >>> >>> It doesn't seems to work. It is never called. I should probably have >> >> Hi Eric, >> >> I will send you off list files from VAPP > > I had those files from the "VSDK_MAC_cw7" package. Unfortunately, it doesn't > seems to work with the VSDK.framework. If I understand correctly, you have > already implemented the FBL_Task::DoIndexing() inside the framework. It > seems that with a framework, it is only that one that is being called. We > cannot override it from the outside. So it seems that the only solution is > having a framework without the FBL_Task::DoIndexing() implementated... Aha. In codeWarrior this works in this way. YES, FBL_DoIndexing.cpp already can be in the .LIB But into VAPP project I include file again and compile it with other #defines. CodeWarrior see 2 versions of the same method, and prefer the one from project. Xcode cannot do this ?! I know that visual c++ also work in this 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 forgete at cafederic.com Tue Jul 6 11:50:44 2004 From: forgete at cafederic.com (Eric Forget) Date: Tue Jul 6 10:50:51 2004 Subject: [VSDK] long FBL_Task::DoIndexing() In-Reply-To: Message-ID: >>>> I'm trying to install the "callbacks" to display a progress bar to the user >>>> while indexing. If I thought that all you had to do is to implement the >>>> following functions: >>>> >>>> long FBL_Task::DoIndexing() >>>> >>>> It doesn't seems to work. It is never called. I should probably have >>> >>> Hi Eric, >>> >>> I will send you off list files from VAPP >> >> I had those files from the "VSDK_MAC_cw7" package. Unfortunately, it doesn't >> seems to work with the VSDK.framework. If I understand correctly, you have >> already implemented the FBL_Task::DoIndexing() inside the framework. It >> seems that with a framework, it is only that one that is being called. We >> cannot override it from the outside. So it seems that the only solution is >> having a framework without the FBL_Task::DoIndexing() implementated... > > Aha. > > In codeWarrior this works in this way. > > YES, FBL_DoIndexing.cpp already can be in the .LIB > But into VAPP project I include file again and compile it with other > #defines. > > CodeWarrior see 2 versions of the same method, and prefer the one from > project. > > Xcode cannot do this ?! > > I know that visual c++ also work in this way. For the new version you will build with a second parameter to SetCompareFunction(), would you mind adding a real C callback function that will be called from the the kernel version? It could have the same prototype as FBL_Task::DoIndexing() and working the same way... Just needed to being installed with a SetDoIndexingCallback() function... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Tue Jul 6 19:18:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 6 11:45:43 2004 Subject: [VSDK] long FBL_Task::DoIndexing() In-Reply-To: Message-ID: On 7/6/04 6:50 PM, "Eric Forget" wrote: >> I know that visual c++ also work in this way. > > For the new version you will build with a second parameter to > SetCompareFunction(), would you mind adding a real C callback function that > will be called from the the kernel version? It could have the same prototype > as FBL_Task::DoIndexing() and working the same way... Just needed to being > installed with a SetDoIndexingCallback() function... Please note that DoIndexing is NOT callback. In way it is made now, you simply provide OWN version of this function. If I will add callback then... okay I can do this as next if callback pointer is not NULL, then I call it. otherwise I call internal version -- 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 forgete at cafederic.com Tue Jul 6 13:02:12 2004 From: forgete at cafederic.com (Eric Forget) Date: Tue Jul 6 12:04:22 2004 Subject: [VSDK] long FBL_Task::DoIndexing() In-Reply-To: Message-ID: > Please note that DoIndexing is NOT callback. > > In way it is made now, you simply provide OWN version of this function. > > If I will add callback then... > > okay I can do this as next > if callback pointer is not NULL, then I call it. > otherwise I call internal version That's exactly what I've thought... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From martin at kinetix.co.uk Wed Jul 7 11:48:26 2004 From: martin at kinetix.co.uk (Martin Wright) Date: Wed Jul 7 05:50:06 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <801592C8-82A6-11D8-B6E1-003065BB0634@desuetude.com> Message-ID: <20040707105000.30A3D173E39@edison.macserve.net> Hi When I try to connect to a Vserver with a wrong IP address I get no error, so I can't trap it. set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", mySerialNumber) err = ValentinaError() errStr = ValentinaErrorString() OpenDatabase( gMyDB, dbPath ) The 4 lines above give me: * V4MD *: Create_VDataBase...* V4MD *: DB_New...done * V4MD *: ValentinaError...done * V4MD *: ValentinaErrorString...done * V4MD *: OpenDatabase...done How can I trap this? Martin From sunshine at public.kherson.ua Wed Jul 7 14:10:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 7 06:10:18 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <20040707105000.30A3D173E39@edison.macserve.net> Message-ID: On 7/7/04 1:48 PM, "Martin Wright" wrote: > Hi > > When I try to connect to a Vserver with a wrong IP address I get no error, > so I can't trap it. > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > err = ValentinaError() > errStr = ValentinaErrorString() > OpenDatabase( gMyDB, dbPath ) > > > The 4 lines above give me: > > * V4MD *: Create_VDataBase...* V4MD *: DB_New...done > * V4MD *: ValentinaError...done > * V4MD *: ValentinaErrorString...done > * V4MD *: OpenDatabase...done > > How can I trap this? Hi Martin, Igor say that must be error. We need check this. Have you check log of Vserver? It not show connection? I ask because from your above all looks as correct. Try to restart also -- 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 martin at kinetix.co.uk Wed Jul 7 12:19:00 2004 From: martin at kinetix.co.uk (Martin Wright) Date: Wed Jul 7 06:20:36 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: Message-ID: <20040707112031.E6945173E95@edison.macserve.net> Hi Ruslan There is no Vserver, and no computer with IP "2.2.2.2". This is the problem, I need to trap it when there's no Vserver found. When the Vserver is there, it works great. -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: 07 July 2004 12:10 To: valentina@lists.macserve.net Subject: Re: [V4MD Client] no error on bad connect On 7/7/04 1:48 PM, "Martin Wright" wrote: > Hi > > When I try to connect to a Vserver with a wrong IP address I get no > error, so I can't trap it. > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > err = ValentinaError() > errStr = ValentinaErrorString() > OpenDatabase( gMyDB, dbPath ) > > > The 4 lines above give me: > > * V4MD *: Create_VDataBase...* V4MD *: DB_New...done > * V4MD *: ValentinaError...done > * V4MD *: ValentinaErrorString...done > * V4MD *: OpenDatabase...done > > How can I trap this? Hi Martin, Igor say that must be error. We need check this. Have you check log of Vserver? It not show connection? I ask because from your above all looks as correct. Try to restart also -- 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 mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Jul 7 14:25:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 7 06:25:21 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <20040707112031.E6945173E95@edison.macserve.net> Message-ID: On 7/7/04 2:19 PM, "Martin Wright" wrote: > Hi Ruslan > > There is no Vserver, and no computer with IP "2.2.2.2". > This is the problem, I need to trap it when there's no Vserver found. > > When the Vserver is there, it works great. Igor, tests this right 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 cm_sheffield at yahoo.com Wed Jul 7 14:12:25 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Thu Jul 8 00:28:41 2004 Subject: question regarding Server_New and Database_New Message-ID: <20040707211225.30579.qmail@web52402.mail.yahoo.com> These two functions create a server object and a database object, respectively. So once I've called these functions, and then made a call to Database_Open, when I close my database using Database_Close, does the connection to the server get released, or do I need to do something else? Is it necessary to somehow destroy the database and server objects? Thanks, ===== Chris Sheffield Read Naturally www.readnaturally.com __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From sunshine at public.kherson.ua Thu Jul 8 09:22:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 06:35:53 2004 Subject: question regarding Server_New and Database_New In-Reply-To: <20040707211225.30579.qmail@web52402.mail.yahoo.com> Message-ID: On 7/8/04 12:12 AM, "Chris Sheffield" wrote: Hi Chris, > These two functions create a server object and a > database object, respectively. > So once I've called > these functions, and then made a call to > Database_Open, when I close my database using > Database_Close, does the connection to the server get > released, or do I need to do something else? Both this functions create 2 different objects. Vserver object you need if you ADMIN and you want do some operations with server. You need do Server_New OpenSession << this will establish connect CloseSession << close connect. destroy server object. Hmm. Not remember syntax for VXCMD now Database object we use just to connect and open some db Database_New db.Open << make connection db.Close delete db Also you can use Vserver object to establish ONE connection And later you create SEVERAL DB objects and use vserver to create them. In this way you can have one connection, but open several dbs from Vserver. vsrv = server_new vsrv.OpenSession // optional db1 = Database_New( vsrv ) db2 = Database_New( vsrv ) db1.Open << if was OpenSession then use its connection << otherwise make connection self. db2.Open << use the same connection > Is it necessary to somehow destroy the database and server > objects? Yes of course. We always delete db object in VXCMD, 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 martin at kinetix.co.uk Thu Jul 8 12:48:39 2004 From: martin at kinetix.co.uk (Martin Wright) Date: Thu Jul 8 06:50:30 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: Message-ID: <20040708115026.31E6D175266@edison.macserve.net> Hi Ruslan, Igor Any info on this problem? Is there any other way of trapping a faulty IP address when connecting to Vserver? Martin On 7/7/04 2:19 PM, "Martin Wright" wrote: > Hi Ruslan > > There is no Vserver, and no computer with IP "2.2.2.2". > This is the problem, I need to trap it when there's no Vserver found. > > When the Vserver is there, it works great. Igor, tests this right 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 ------------------------------------------------------------- _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Thu Jul 8 15:01:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:01:27 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <20040708115026.31E6D175266@edison.macserve.net> Message-ID: On 7/8/04 2:48 PM, "Martin Wright" wrote: > Hi Ruslan, Igor > > Any info on this problem? > Is there any other way of trapping a faulty IP address when connecting to > Vserver? > > Martin Hmm, it seems letters did not come to list. I will send now again for last night -- 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 Thu Jul 8 15:01:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:02:04 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <20040707105000.30A3D173E39@edison.macserve.net> Message-ID: On 7/7/04 1:48 PM, "Martin Wright" wrote: > Hi > > When I try to connect to a Vserver with a wrong IP address I get no error, > so I can't trap it. > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > err = ValentinaError() > errStr = ValentinaErrorString() > OpenDatabase( gMyDB, dbPath ) Hi Martin, Igor says that you must check error AFTER OpenDatabase() call, Because OpoenDatabase() try conenct. Constructor of Vdatabase just create object in RAM. -- 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 Thu Jul 8 15:02:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:02:15 2004 Subject: FW: V4RB b7 uploaded. In-Reply-To: Message-ID: Hi All, I forward this to main list because beta list seems to be down. I think most of beta listers present on this list also. ------ Forwarded Message From: Ruslan Zasukhin Date: Thu, 08 Jul 2004 01:05:31 +0300 To: Subject: V4RB b7 uploaded. Hi All, [NEW] Example Api/Field_Find show how to use NEW functions Vfield.Find( value ) and how to use NEW classes Sets to complex searches on several fields in single table without SQL. We think this is very cool extension, because Vfield.Find + Sets + Links = Navigational Model. This is alternative non-SQL way to work with databases. and we have decide implement this way for client/server architecture also. [NEW] Example Advanced/viSQL yes, Sergey have port viSQL to 2.0 engine. it can now open dbs, show structure, and do queries. [DONE][Kernel] - now works DISTINCT on single table and join when only one table fields are SELECTed ------------------ [DONE][Kernel] - implemented a lots of different syntaxes for JOIN FROM T1 join T2 ON T1.key = T2.ptr [WHERE search conditions] ^^^^^^^^^^^^^ this can be FOREIGN KEY or ObjectPtr this is SQL92 syntax. FROM T1 join T2 on link_name [WHERE search conditions] this is Valentina extension to support LINK abstraction FROM T1 join T2 // skipped link condition FROM T1, T2 this is Valentina extension. Valentina self will try find link. FROM T1, T2 WHERE T1.key = T2.ptr this is old-style of join. Link-condition is located in the WHERE clause. All this also works for LEFT|RIGHT|FULL OUTER joins of course. [DONE] -- Now we can close db and open it, information about db structure comes from sys tables. Here still many issues to polish. -- 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 ------------------------------------------------------------- ------ End of Forwarded Message From sunshine at public.kherson.ua Thu Jul 8 09:36:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:06:07 2004 Subject: FW: V4RB b7 uploaded. In-Reply-To: Message-ID: Hi All, I forward this to main list because beta list seems to be down. I think most of beta listers present on this list also. ------ Forwarded Message From: Ruslan Zasukhin Date: Thu, 08 Jul 2004 01:05:31 +0300 To: Subject: V4RB b7 uploaded. Hi All, [NEW] Example Api/Field_Find show how to use NEW functions Vfield.Find( value ) and how to use NEW classes Sets to complex searches on several fields in single table without SQL. We think this is very cool extension, because Vfield.Find + Sets + Links = Navigational Model. This is alternative non-SQL way to work with databases. and we have decide implement this way for client/server architecture also. [NEW] Example Advanced/viSQL yes, Sergey have port viSQL to 2.0 engine. it can now open dbs, show structure, and do queries. [DONE][Kernel] - now works DISTINCT on single table and join when only one table fields are SELECTed ------------------ [DONE][Kernel] - implemented a lots of different syntaxes for JOIN FROM T1 join T2 ON T1.key = T2.ptr [WHERE search conditions] ^^^^^^^^^^^^^ this can be FOREIGN KEY or ObjectPtr this is SQL92 syntax. FROM T1 join T2 on link_name [WHERE search conditions] this is Valentina extension to support LINK abstraction FROM T1 join T2 // skipped link condition FROM T1, T2 this is Valentina extension. Valentina self will try find link. FROM T1, T2 WHERE T1.key = T2.ptr this is old-style of join. Link-condition is located in the WHERE clause. All this also works for LEFT|RIGHT|FULL OUTER joins of course. [DONE] -- Now we can close db and open it, information about db structure comes from sys tables. Here still many issues to polish. -- 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 ------------------------------------------------------------- ------ End of Forwarded Message From sunshine at public.kherson.ua Thu Jul 8 09:10:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:22:46 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <20040707105000.30A3D173E39@edison.macserve.net> Message-ID: On 7/7/04 1:48 PM, "Martin Wright" wrote: > Hi > > When I try to connect to a Vserver with a wrong IP address I get no error, > so I can't trap it. > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > err = ValentinaError() > errStr = ValentinaErrorString() > OpenDatabase( gMyDB, dbPath ) Hi Martin, Igor says that you must check error AFTER OpenDatabase() call, Because OpoenDatabase() try conenct. Constructor of Vdatabase just create object in RAM. -- 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 cm_sheffield at yahoo.com Thu Jul 8 09:10:24 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Thu Jul 8 11:10:33 2004 Subject: large BLOB data slow to load In-Reply-To: Message-ID: <20040708161025.39586.qmail@web52407.mail.yahoo.com> Hi Ruslan, Any progress on this issue? I'm just wondering if there's anything that can be done to make large BLOB data load faster from a networked database. Is no one out there doing anything like this? Chris Sheffield --- Ruslan Zasukhin wrote: > On 7/1/04 12:21 AM, "Chris Sheffield" > wrote: > > > You can just run it in VStudio if you want to. > The > > same thing happens there. It doesn't seem to make > a > > difference whether I use the XCMD or VStudio. If > you > > don't want to do that, I can put together a little > > test stack or something for you to test it with. > > No no. I prefer Vstudio of course. > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From sunshine at public.kherson.ua Thu Jul 8 19:41:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 11:41:09 2004 Subject: large BLOB data slow to load In-Reply-To: <20040708161025.39586.qmail@web52407.mail.yahoo.com> Message-ID: On 7/8/04 7:10 PM, "Chris Sheffield" wrote: > Hi Ruslan, > > Any progress on this issue? I'm just wondering if > there's anything that can be done to make large BLOB > data load faster from a networked database. > > Is no one out there doing anything like this? Hi Chris, Today we have resolve 3 problem reports. No one bug found. All was mistakes on developer side. Now I work on another one. I think here can be something wrong in engine. So tomorrow I will spend again time for 1.x problem reports. It seems 2-3 yet. -- 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 paolo.sala at ff3d.com Thu Jul 8 20:55:31 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 8 13:28:11 2004 Subject: [4vMD] Timeout Message-ID: <023501c4654b$a6f56870$5800a8c0@Paolo> Hi, if i leave my Director open (also the projector) for several minutes without any action, the sistem doesn't access the DB and all the operation with the dB give me an error. There's some properties to set to avoid that? thanks Paolo From sunshine at public.kherson.ua Thu Jul 8 21:35:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 13:36:05 2004 Subject: [4vMD] Timeout In-Reply-To: <023501c4654b$a6f56870$5800a8c0@Paolo> Message-ID: On 7/8/04 9:55 PM, "Paolo Sala" wrote: > Hi, > if i leave my Director open (also the projector) for several minutes without > any action, the sistem doesn't access the DB and all the operation with the dB > give me an error. There's some properties to set to avoid that? Paolo, Do you talk about V4MD_Client and Vserver? Igor, comments? -- 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 paolo.sala at ff3d.com Fri Jul 9 09:40:21 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 8 20:40:08 2004 Subject: [4vMD] Timeout References: Message-ID: <027001c46587$fd026740$5800a8c0@Paolo> It's V4MD and not Vserver but operation like "Vcursor" give me error 5 and error 666, but only several minutes of inactivity... > > Hi, > > if i leave my Director open (also the projector) for several minutes without > > any action, the sistem doesn't access the DB and all the operation with the dB > > give me an error. There's some properties to set to avoid that? > > Paolo, > > Do you talk about V4MD_Client and Vserver? > > Igor, comments? > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > From sunshine at public.kherson.ua Fri Jul 9 06:45:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 22:45:32 2004 Subject: [4vMD] Timeout In-Reply-To: <027001c46587$fd026740$5800a8c0@Paolo> Message-ID: On 7/9/04 10:40 AM, "Paolo Sala" wrote: Hi Paolo, In V4MD LOCAL there is no any kind of timeouts except DEMO timeout in 10 minutes. If you have not enter serials then you see DEMO timeout. This must not happens if you enter serials. > It's V4MD and not Vserver but operation like "Vcursor" give me error 5 and > error 666, but only several minutes of inactivity... > >>> Hi, >>> if i leave my Director open (also the projector) for several minutes > without >>> any action, the sistem doesn't access the DB and all the operation with > the dB >>> give me an error. There's some properties to set to avoid that? >> >> Paolo, >> >> Do you talk about V4MD_Client and Vserver? -- 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 paolo.sala at ff3d.com Fri Jul 9 12:53:37 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Thu Jul 8 23:53:26 2004 Subject: [4vMD] Timeout References: Message-ID: <028b01c465a2$fcc43180$5800a8c0@Paolo> I've entered my serial What is it "error 5" ? ----- Original Message ----- From: "Ruslan Zasukhin" To: Sent: Friday, July 09, 2004 5:45 AM Subject: Re: [4vMD] Timeout > On 7/9/04 10:40 AM, "Paolo Sala" wrote: > > Hi Paolo, > > In V4MD LOCAL there is no any kind of timeouts except DEMO timeout in 10 > minutes. > > If you have not enter serials then you see DEMO timeout. > > This must not happens if you enter serials. > > > > It's V4MD and not Vserver but operation like "Vcursor" give me error 5 and > > error 666, but only several minutes of inactivity... > > > >>> Hi, > >>> if i leave my Director open (also the projector) for several minutes > > without > >>> any action, the sistem doesn't access the DB and all the operation with > > the dB > >>> give me an error. There's some properties to set to avoid that? > >> > >> Paolo, > >> > >> Do you talk about V4MD_Client and Vserver? > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Fri Jul 9 09:05:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 01:06:01 2004 Subject: [4vMD] Timeout In-Reply-To: <028b01c465a2$fcc43180$5800a8c0@Paolo> Message-ID: On 7/9/04 1:53 PM, "Paolo Sala" wrote: > I've entered my serial > What is it "error 5" ? This is internal Windows error "Access by NULL" This happens if object is NULL but we try do some command for it This is not your mistake -- 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 bibiko at eva.mpg.de Fri Jul 9 09:29:09 2004 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Fri Jul 9 02:32:37 2004 Subject: Japanese field Message-ID: <40EE4945.40202@eva.mpg.de> Hi, I know that the latest version of Valetina doesn't support Unicode and I hope version 2 will come out in the near future :). But you can set the language for each field in the database. Well, I have a question about specifying the language of a field. I want to use Japanese. But in which character set I should store Japanese text in a file for importing it? JIS, shift-JIS, EUC, UTF-8? Or if I want to import via XML. In which coding system I have to store these data if I want to import in one field Japanese and in another one German? Thanks in advance Hans-Joerg From sunshine at public.kherson.ua Fri Jul 9 11:16:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 03:16:51 2004 Subject: Japanese field In-Reply-To: <40EE4945.40202@eva.mpg.de> Message-ID: On 7/9/04 10:29 AM, "Hans-Joerg Bibiko" wrote: > Hi, > > I know that the latest version of Valetina doesn't support Unicode and I > hope version 2 will come out in the near future :). But you can set the > language for each field in the database. > > Well, I have a question about specifying the language of a field. > > I want to use Japanese. But in which character set I should store > Japanese text in a file for importing it? JIS, shift-JIS, EUC, UTF-8? > > Or if I want to import via XML. In which coding system I have to store > these data if I want to import in one field Japanese and in another one > German? I see in sources Japanese Valentina map this name to itlb2 resource of MAC OS that have id 16384 On MAC Valentina 1.x use OS's resources and API. I think this is shift-JIS -- 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 martin at kinetix.co.uk Fri Jul 9 10:40:42 2004 From: martin at kinetix.co.uk (Martin Wright) Date: Fri Jul 9 04:42:24 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: Message-ID: <20040709094219.8F18717626B@edison.macserve.net> Hi The OpenDatabase() returns 0 even if I try opening a Vserver with an impossible IP address. set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", mySerialNumber) OpenDatabase( gMyDB, dbPath ) err = ValentinaError() errStr = ValentinaErrorString() put "err = " & err ********** Message window ************ * V4MD *: Create_VDataBase...* V4MD *: DB_New...done * V4MD *: OpenDatabase...done * V4MD *: ValentinaError...done * V4MD *: ValentinaErrorString...done -- "err = 0" How can it return 'OpenDatabase...done' when there is no Vserver. Or is there another (very quick) test I can do after OpenDatabase() to make sure it connected successfully. Martin On 7/7/04 1:48 PM, "Martin Wright" wrote: > Hi > > When I try to connect to a Vserver with a wrong IP address I get no > error, so I can't trap it. > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > err = ValentinaError() > errStr = ValentinaErrorString() > OpenDatabase( gMyDB, dbPath ) Hi Martin, Igor says that you must check error AFTER OpenDatabase() call, Because OpoenDatabase() try conenct. Constructor of Vdatabase just create object in RAM. -- 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 mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Fri Jul 9 16:06:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 08:09:22 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: <20040709094219.8F18717626B@edison.macserve.net> Message-ID: On 7/9/04 12:40 PM, "Martin Wright" wrote: > Hi > > The OpenDatabase() returns 0 even if I try opening a Vserver with an > impossible IP address. > > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > OpenDatabase( gMyDB, dbPath ) > err = ValentinaError() > errStr = ValentinaErrorString() > put "err = " & err > > > ********** Message window ************ > * V4MD *: Create_VDataBase...* V4MD *: DB_New...done > * V4MD *: OpenDatabase...done > * V4MD *: ValentinaError...done > * V4MD *: ValentinaErrorString...done > -- "err = 0" > > How can it return 'OpenDatabase...done' when there is no Vserver. > Or is there another (very quick) test I can do after OpenDatabase() to make > sure it connected successfully. No, I think it must be Open...error xxxx Igor, please check again. Modify our example project for this. If it will return error code then send that project to Martin for check. -- 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 smorse at rtpi.org Fri Jul 9 10:48:19 2004 From: smorse at rtpi.org (Solon Morse) Date: Fri Jul 9 09:48:30 2004 Subject: [V4WS] valSQLSelectRecords and methods Message-ID: <20040709104819362105.GyazMail.smorse@rtpi.org> V4WS 1.10. When I use valSQLSelectRecords to retrieve data from a method field, only a list of are returned. If I use the very same SQL statement to build a curser and then iterate through it, I get the values I expect. Also works with ViSQL. Is this a bug, or am I missing something? Also, any news on the UPDATE...WHERE problem with V4WS? Thanks, Solon -- Solon Morse Assistant Director of Education Roger Tory Peterson Institute 311 Curtis Street Jamestown, NY 14701 Jamestown: (716) 665-2473 ext 243 Buffalo: (716) 886-1920 smorse@rtpi.org From sunshine at public.kherson.ua Fri Jul 9 18:41:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 10:42:03 2004 Subject: [V4WS] valSQLSelectRecords and methods In-Reply-To: <20040709104819362105.GyazMail.smorse@rtpi.org> Message-ID: On 7/9/04 5:48 PM, "Solon Morse" wrote: Hi Solon, > V4WS 1.10. > > When I use valSQLSelectRecords to retrieve data from a method field, only a > list of are returned. If I use the very same SQL statement to build a > curser and then iterate through it, I get the values I expect. Also works with > ViSQL. > > Is this a bug, or am I missing something? No idea. Only on that table/db Or always? Can you modify EXISTED EXAMPLE to show this problem? > Also, any news on the UPDATE...WHERE problem with V4WS? Aha, check in this days -- 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 smorse at rtpi.org Fri Jul 9 12:02:36 2004 From: smorse at rtpi.org (Solon Morse) Date: Fri Jul 9 11:02:48 2004 Subject: [V4WS] valSQLSelectRecords and methods In-Reply-To: References: Message-ID: <20040709120236286266.GyazMail.smorse@rtpi.org> On Fri, 09 Jul 2004 18:41:51 +0300, Ruslan Zasukhin wrote: > No idea. Only on that table/db > Or always? The flag "accept nulls" for the method field was set -- when I turned it off valSQLSelectRecords returned the correct value. I created another database with same method: if "accept nulls" is on, is returned, if "accept nulls" is off, correct value returned. I'll make sure "accept nulls" is off for methods. The method is CONCAT((field1),' ',(field2)), so what happens if both fields are but the method field won't accept nulls? Anything? Thanks, Solon -- Solon Morse Assistant Director of Education Roger Tory Peterson Institute 311 Curtis Street Jamestown, NY 14701 Jamestown: (716) 665-2473 ext 243 Buffalo: (716) 886-1920 smorse@rtpi.org From sunshine at public.kherson.ua Fri Jul 9 20:03:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 12:03:25 2004 Subject: [V4WS] valSQLSelectRecords and methods In-Reply-To: <20040709120236286266.GyazMail.smorse@rtpi.org> Message-ID: On 7/9/04 7:02 PM, "Solon Morse" wrote: > On Fri, 09 Jul 2004 18:41:51 +0300, Ruslan Zasukhin wrote: > >> No idea. Only on that table/db >> Or always? > > > The flag "accept nulls" for the method field was set -- when I turned it off > valSQLSelectRecords returned the correct value. I created another database > with same method: if "accept nulls" is on, is returned, if "accept > nulls" is off, correct value returned. > > I'll make sure "accept nulls" is off for methods. The method is > CONCAT((field1),' ',(field2)), so what happens if both fields are but > the method field won't accept nulls? Anything? Well, methods MUST work with Nullable -- 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 rbarber at yhb.att.ne.jp Sat Jul 10 03:49:55 2004 From: rbarber at yhb.att.ne.jp (ron barber) Date: Fri Jul 9 13:47:42 2004 Subject: Japanese field In-Reply-To: References: Message-ID: Hi I use Val on the Mac with Japanese all the time. The Japanese is SJIS. However, I do not use Japanese as the language of the field, I use ASCII. That is, the original data is SJIS but the Valentina field that I import it into is plain text ASCII. This works and allows searching, regex etc. HTH Ron On Jul 9, 2004, at 5:16 PM, Ruslan Zasukhin wrote: > On 7/9/04 10:29 AM, "Hans-Joerg Bibiko" wrote: > >> Hi, >> >> I know that the latest version of Valetina doesn't support Unicode >> and I >> hope version 2 will come out in the near future :). But you can set >> the >> language for each field in the database. >> >> Well, I have a question about specifying the language of a field. >> >> I want to use Japanese. But in which character set I should store >> Japanese text in a file for importing it? JIS, shift-JIS, EUC, UTF-8? >> >> Or if I want to import via XML. In which coding system I have to store >> these data if I want to import in one field Japanese and in another >> one >> German? > > I see in sources Japanese > > Valentina map this name to itlb2 resource of MAC OS that have id 16384 > On MAC Valentina 1.x use OS's resources and API. > > I think this is shift-JIS > > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sat Jul 10 21:20:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 13:20:20 2004 Subject: FIXED: UPDATE tbl SET fld = NULL In-Reply-To: <20040709104819362105.GyazMail.smorse@rtpi.org> Message-ID: On 7/9/04 5:48 PM, "Solon Morse" wrote: > Also, any news on the UPDATE...WHERE problem with V4WS? Hi Solon, I have fix this bug. You need V4WS as I understand. Yes? -- 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 paolo.sala at ff3d.com Sun Jul 11 11:59:59 2004 From: paolo.sala at ff3d.com (Paolo Sala) Date: Sat Jul 10 22:59:44 2004 Subject: [4vMD] Timeout References: Message-ID: <017301c4672d$d36f6a20$6e01a8c0@Paolo> Hi, i think the problem is exactly about serial number & Demo, because after 10 min happen a 666 error I've purchased my seriel two week ago and put in director in Win string position with copy & paste like that: ValentinaInit(4*1024*1024,"","XXXX-XXXX-XXXX-XXXX") if you have a private email address i can send you to verify Thanks Paolo > Hi Paolo, > > In V4MD LOCAL there is no any kind of timeouts except DEMO timeout in 10 > minutes. > > If you have not enter serials then you see DEMO timeout. > > This must not happens if you enter serials. > > > > It's V4MD and not Vserver but operation like "Vcursor" give me error 5 and > > error 666, but only several minutes of inactivity... > > > >>> Hi, > >>> if i leave my Director open (also the projector) for several minutes > > without > >>> any action, the sistem doesn't access the DB and all the operation with > > the dB > >>> give me an error. There's some properties to set to avoid that? > >> > >> Paolo, > >> > >> Do you talk about V4MD_Client and Vserver? > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Jul 11 08:13:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 11 00:13:39 2004 Subject: [4vMD] Timeout In-Reply-To: <017301c4672d$d36f6a20$6e01a8c0@Paolo> Message-ID: On 7/11/04 12:59 PM, "Paolo Sala" wrote: > Hi, > i think the problem is exactly about serial number & Demo, because after 10 > min happen a 666 error > I've purchased my seriel two week ago and put in director in Win string > position with copy & paste > like that: > ValentinaInit(4*1024*1024,"","XXXX-XXXX-XXXX-XXXX") > > if you have a private email address i can send you to verify Yes of course Paolo. Off list. -- 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 smorse at rtpi.org Mon Jul 12 00:08:34 2004 From: smorse at rtpi.org (Solon Morse) Date: Sun Jul 11 23:08:49 2004 Subject: FIXED: UPDATE tbl SET fld = NULL In-Reply-To: References: Message-ID: <20040712000834004577.GyazMail.smorse@rtpi.org> > You need V4WS as I understand. Yes? That's right! Thanks, Solon -- Solon Morse Assistant Director of Education Roger Tory Peterson Institute 311 Curtis Street Jamestown, NY 14701 Jamestown: (716) 665-2473 ext 243 Buffalo: (716) 886-1920 smorse@rtpi.org From sunshine at public.kherson.ua Mon Jul 12 17:28:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 09:29:42 2004 Subject: V4MD, Text or VarChar In-Reply-To: <001f01c4681b$7d176f30$b900a8c0@batcomputer> Message-ID: On 7/12/04 5:21 PM, "Chuck Neal" wrote: > One question. If I store a varchar field and a text field, which will be > larger? Does the varChar use the whole size or just the filled portion? The main Difference between them VarChar have limit TEXT field have no limit in size of value. VarChar[504] -> this is maximal string you can store Text[1024] -> this is one segment size = 1KB, but you can have any number of segments. VarChar you should choose if you know that your strings are in range for example 20-2000 bytes. Then you make VarChar[2000]. You will NOT be able store string with length 2001 byte If you NEVER know your maximal length, for a string, you should use TEXT field, but no need set huge segment size. Set it to 512 for example. TEXT field is good for example for fields Notes, Letter Text, ... -- 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 fvanlerberghe at freegates.be Tue Jul 13 16:27:26 2004 From: fvanlerberghe at freegates.be (Francois Van Lerberghe) Date: Tue Jul 13 09:27:18 2004 Subject: ChangeType crash Message-ID: Hello Ruslan, I have a crash when I try to do a ChangeType using V4RB 1.10 from a Vboolean field to a Vbyte field. My code is : table = db.BaseObject( "Donn?es" ) fld = table.Field("myField") if fld <> nil then fld = table.ChangeType(fld, kV_TypeByte, 0) <<<< crash end if Trying to do it in Vapp, I have a -39 error. Only with this VBoolean field. I can change other field without problem. I have tried with other database (other data, same structure) and I have still this error. The diagnose doesn't show any error except a minor one on a VText field. What's happening ? Thank you. Fran?ois Van Lerberghe Rue Thier Monty, 15 A 4570 Marchin Belgique From fci at europa.com Tue Jul 13 08:15:19 2004 From: fci at europa.com (Lynn Fredricks) Date: Tue Jul 13 10:15:46 2004 Subject: On-Target Reports 4.0 Professional Ships In-Reply-To: Message-ID: <20040713151524.1511582DA5@smtp2.pacifier.net> On-Target Reports 4.0 Professional Ships PREVIEW AND PRINT GRAPHICS RICH REPORTS FROM MANY DATASOURCES July 13, 2004. Roswell, Georgia. On-Target Reports, Inc announces the immediate availability of On-Target Reports 4.0 Professional, a powerful but easy to use report generator for MacOS X and Windows. On-Target Reports 4.0 Professional can generate reports from most popular databases, including , FrontBase, mySQL, OpenBase, Oracle, postgreSQL, PrimeBase, REALDatabase, REALDatabase - 5.5, SQLite, Sybase ASE and Valentina. There is also support for any ODBC compliant data source. "This is a welcome addition for database developers, especially those using REALbasic," states Geoff Perlman, president and CEO of REAL Software, which provides REALbasic, a powerful, yet easy-to-use development environment for Windows, MacOS X and Linux. "We're going to see a lot more REALbasic applications that include extended reporting capabilities," added Perlman, "which is a clear result of the development efforts of On-Target Reports." On-Target Reports 4.0 Professional feature set includes: Report Assistant. A step-by-step assistant to quickly and easily generate reports from supported datasources. Data Grouping. Organize data within your reports using sub-groups. Graphics and Watermarks. Preview and print graphics stored within any supported database. Display a company logo, Confidential or other marks useful in day-to-day business. Graphs. On-Target Reports 4.0 Professional has a new graphing engine, with support for all major graph types, including: Column, Stacked Column, Line, Stacked Line, Area, Stacked Area, Scatter and Pie. New PDF Export. Export your reports as a printable PDF file. You can also create tab delimited files of the original queried data or data shown on generated reports. Inline Expressions and Variables. Manipulate and display your data in a field using a variety of string, math, and logical functions. Create and store unique variables for creation of highly customized fields. REALbasic 5.5 Runtime Classes. REALbasic developers can use the OTR REALbasic Runtime Classes to replay report templates within their applications. Any registered user who purchased dbReports 3.x Professional edition after April 15, 2004 is entitled to a free license upgrade to On-Target Reports 4.0 Professional. Owners of dbReports 3.x Standard who purchased after April 15, 2004 will be able to upgrade for $79. All products are available direct from On-Target Reports, Inc or through authorized distributors. On-Target Reports 4.0 Professional is available for Windows and Mac OS X with a direct price of $199. About On-Target Reports, Inc On-Target Reports, Inc makes On-Target Reports 4.0 Professional, the easiest way to extract and display database information from the most popular databases on Windows and Macintosh. On-Target Reports envisions making complex data accessible and meaningful, for business users and developers. For additional information, visit the On-Target Reports website at http://www.ontargetreports.com. From sunshine at public.kherson.ua Tue Jul 13 19:13:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 13 11:14:11 2004 Subject: ChangeType crash In-Reply-To: Message-ID: On 7/13/04 5:27 PM, "Francois Van Lerberghe" wrote: Hi Francois, > I have a crash when I try to do a ChangeType using V4RB 1.10 from a Vboolean > field to a Vbyte field. > > My code is : > > table = db.BaseObject( "Donn?es" ) > fld = table.Field("myField") > if fld <> nil then > fld = table.ChangeType(fld, kV_TypeByte, 0) <<<< crash > end if > > Trying to do it in Vapp, I have a -39 error. Only with this VBoolean field. > I can change other field without problem. > > I have tried with other database (other data, same structure) and I have > still this error. > > The diagnose doesn't show any error except a minor one on a VText field. > > What's happening ? Db is not encrypted ? What show diagnose ? Other Boolean fields can be converted ? If yes, then may be corruption in that 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 robert at formworkdesign.com Tue Jul 13 12:26:11 2004 From: robert at formworkdesign.com (Robert Nichols) Date: Tue Jul 13 11:26:30 2004 Subject: [v4rb] VServer remote start using ssh?? Message-ID: <5A5AF6C2-D4E9-11D8-9C0E-000A95B5C3F8@formworkdesign.com> Kind of an abstract question for the list but.... In troubleshooting my client apps, I've found it handy to kill the ValentinaServer process on its Mac OSX remote host. Although I know very little about UNIX, I figured out how to access the host using SSH via Terminal app. But I haven't been able to figure out how to restart it? Anyone know how? Thanks, Robert -------------------------------------- Robert Nichols Formwork Design LLC robert@formworkdesign.com From sunshine at public.kherson.ua Tue Jul 13 19:32:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 13 11:32:42 2004 Subject: [v4rb] VServer remote start using ssh?? In-Reply-To: <5A5AF6C2-D4E9-11D8-9C0E-000A95B5C3F8@formworkdesign.com> Message-ID: On 7/13/04 7:26 PM, "Robert Nichols" wrote: > Kind of an abstract question for the list but.... > > In troubleshooting my client apps, I've found it handy to kill the > ValentinaServer process on its Mac OSX remote host. Although I know > very little about UNIX, I figured out how to access the host using SSH > via Terminal app. But I haven't been able to figure out how to restart > it? > > Anyone know how? Restart Vserver of host? If Vserver, then restart or start ? if Restart, then Vserver have own built-in command restart in the Vserver class. if start...do not know. Script to start Vserver is in Valentina Server folder., But it is executed on MacOS download. -- 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 srunkel at hypix.com Tue Jul 13 18:46:46 2004 From: srunkel at hypix.com (Scott Runkel) Date: Tue Jul 13 20:47:15 2004 Subject: Searching with like and \A References: Message-ID: <07d701c46944$6f293280$0200a8c0@SCOTT3> I'm sure there's a simple explanation, but... I have about 770 records with various fields, one of which is called "alltext". It's type text, sementsize 1024, ascii, indexed, and indexed by words. When I do the following, I get all records (which is correct): SELECT alltext FROM pir WHERE alltext like 'Pediatrics' NO_CASE But when I do the following, I get only 1 record, in which "Pediatrics" happens to be the first word: SELECT alltext FROM pir WHERE alltext like '\APediatrics' NO_CASE But I should still get all the records because they all have at least one mention of the word "pediatrics" in them. The same thing happens for any other term: 'boy' I get 304 hits, but '\Aboy' I get 0. My goal is to avoid hits where the user typed, say, "form" and it's finding "information" and "formation" etc. also. What am I doing wrong? (This is V4MD, but the same thing happens in Valentina Studio, so I don't think that's relevant.) -SR Scott Runkel Director of Technology Hypix Media, Inc. 503-722-2123 From sunshine at public.kherson.ua Wed Jul 14 07:38:01 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 13 23:38:21 2004 Subject: Searching with like and \A In-Reply-To: <07d701c46944$6f293280$0200a8c0@SCOTT3> Message-ID: On 7/14/04 4:46 AM, "Scott Runkel" wrote: > I'm sure there's a simple explanation, but... > > I have about 770 records with various fields, one of which is called > "alltext". > It's type text, sementsize 1024, ascii, indexed, and indexed by words. > > When I do the following, I get all records (which is correct): > > SELECT alltext FROM pir WHERE alltext like 'Pediatrics' NO_CASE > > But when I do the following, I get only 1 record, in which "Pediatrics" > happens > to be the first word: > > SELECT alltext FROM pir WHERE alltext like '\APediatrics' NO_CASE > > But I should still get all the records because they all have at least one > mention of the word "pediatrics" in them. The same thing happens for any other > term: 'boy' I get 304 hits, but '\Aboy' I get 0. > > My goal is to avoid hits where the user typed, say, "form" and it's finding > "information" and "formation" etc. also. > > What am I doing wrong? (This is V4MD, but the same thing happens in Valentina > Studio, so I don't think that's relevant.) If I am not mistake \A this is begin of line You need "begin of word", it seems this is \B Check RegEx docs -- 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 deane.venske at eduss.com Wed Jul 14 14:49:53 2004 From: deane.venske at eduss.com (Deane Venske) Date: Tue Jul 13 23:50:11 2004 Subject: REALLY strange bug. Message-ID: Hi guys, Well this one had me going all day... I have a DB with a large amount of users, let's just say the user and userDetails table. Now I have a list box I select users from then do a mass deletion. I'm basically getting each ID to be deleted and executing the following: DELETE FROM user WHERE userID = xxx flush db DELETE FROM userDetails WHERE userID = xxx flush db At the end, whether I started with 1000 users or 500 users the records from userID 223 to 255 (I don't delete userID 1) do not get deleted and are in fact then not able to be removed from the DB using SQL. Even in studio. I can delete the user from the data browser, or if I user "DELETE FROM user" without a WHERE clause. Can't even see the data with a SELECT * FROM user WHERE userID = 223 query. BUT can see data with a SELECT * FROM user query. If I delete the first 200 users then CLOSE my application, close any connections to the DB then open it again and try delete the next 200 users it only gets through the first 32. V Studio does not have problems like this and I imagine what is going on is that the RB API works fine, but the SQL interface has bugs when it comes to too many transactions in the way I am executing them. This problem happens whether or not I flush after each query. PLEASE help me on this one. There is little I can do on my side unless I change everything to rather use API than SQL, but then I don't want to do that, I want to use SQL. If v2 is going to be the answer then how much work is needed in changing my code, and is v2 stable enough for release, because this product is already out there but users want the ability to delete multiple users from the system. Best Regards, Deane Venske From srunkel at hypix.com Tue Jul 13 21:53:42 2004 From: srunkel at hypix.com (Scott Runkel) Date: Tue Jul 13 23:54:00 2004 Subject: Searching with like and \A References: Message-ID: <085401c4695e$89b9e440$0200a8c0@SCOTT3> > If I am not mistake > > \A this is begin of line > > You need "begin of word", it seems this is \B > Check RegEx docs Ahhh...I didn't even realize that "\A" was regEx, since it was in the "LIKE Search" section of the docs, and not in the "RegEx search" section. I just figured it was a Valentina construct. I checked the regEx docs, and \b (lowercase) seems to do the trick. It anchors at any word boundary. Thanks! -SR Scott Runkel Director of Technology Hypix Media, Inc. 503-722-2123 From deane.venske at eduss.com Wed Jul 14 15:24:26 2004 From: deane.venske at eduss.com (Deane Venske) Date: Wed Jul 14 00:24:39 2004 Subject: REALLY strange bug. In-Reply-To: References: Message-ID: Oh yeah, Running V4RB 1.10 > Hi guys, > > Well this one had me going all day... > > I have a DB with a large amount of users, let's just say the user and > userDetails table. > Now I have a list box I select users from then do a mass deletion. > I'm basically getting each ID to be deleted and executing the following: > DELETE FROM user WHERE userID = xxx > flush db > DELETE FROM userDetails WHERE userID = xxx > flush db > > At the end, whether I started with 1000 users or 500 users the records > from userID 223 to 255 (I don't delete userID 1) do not get deleted and > are in fact then not able to be removed from the DB using SQL. Even in > studio. I can delete the user from the data browser, or if I user > "DELETE FROM user" without a WHERE clause. Can't even see the data with > a SELECT * FROM user WHERE userID = 223 query. BUT can see data with a > SELECT * FROM user query. > > If I delete the first 200 users then CLOSE my application, close any > connections to the DB then open it again and try delete the next 200 > users it only gets through the first 32. > > V Studio does not have problems like this and I imagine what is going on > is that the RB API works fine, but the SQL interface has bugs when it > comes to too many transactions in the way I am executing them. This > problem happens whether or not I flush after each query. > > PLEASE help me on this one. There is little I can do on my side unless I > change everything to rather use API than SQL, but then I don't want to > do that, I want to use SQL. > > If v2 is going to be the answer then how much work is needed in changing > my code, and is v2 stable enough for release, because this product is > already out there but users want the ability to delete multiple users > from the system. > > Best Regards, > Deane Venske > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ From sunshine at public.kherson.ua Wed Jul 14 08:33:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 14 00:34:05 2004 Subject: REALLY strange bug. In-Reply-To: Message-ID: On 7/14/04 7:49 AM, "Deane Venske" wrote: > Hi guys, > > Well this one had me going all day... > > I have a DB with a large amount of users, let's just say the user and > userDetails table. > Now I have a list box I select users from then do a mass deletion. > I'm basically getting each ID to be deleted and executing the following: > DELETE FROM user WHERE userID = xxx > flush db > DELETE FROM userDetails WHERE userID = xxx > flush db In fact you can be more effective with DELETE FROM T WHERE userID in (id1, id2, id3, ....) Single command to server > At the end, whether I started with 1000 users or 500 users the records > from userID 223 to 255 (I don't delete userID 1) do not get deleted and > are in fact then not able to be removed from the DB using SQL. Even in > studio. May be you have some kind of RESTRICT for links on that table > I can delete the user from the data browser, or if I user "DELETE > FROM user" without a WHERE clause. > Can't even see the data with a SELECT * > FROM user WHERE userID = 223 query. BUT can see data with a SELECT * FROM > user query. It looks to be some problems with db. Have you diagnose it ? > If I delete the first 200 users then CLOSE my application, close any > connections to the DB then open it again and try delete the next 200 users > it only gets through the first 32. > > V Studio does not have problems like this and I imagine what is going on > is that the RB API works fine, but the SQL interface has bugs when it > comes to too many transactions in the way I am executing them. This > problem happens whether or not I flush after each query. > > PLEASE help me on this one. There is little I can do on my side unless I > change everything to rather use API than SQL, but then I don't want to do > that, I want to use SQL. > If v2 is going to be the answer then how much work is needed in changing > my code, and is v2 stable enough for release, because this product is > already out there but users want the ability to delete multiple users from > the system. 2.0 is not ready yet -- 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 deane.venske at eduss.com Wed Jul 14 15:51:54 2004 From: deane.venske at eduss.com (Deane Venske) Date: Wed Jul 14 00:51:55 2004 Subject: REALLY strange bug. In-Reply-To: References: Message-ID: Hi Ruslan, I found the problem by starting from scratch with a new DB and RB app. I've attached it. If the userID file is set to be indexed the problem happens, without indexing it's fine. The RB app will insert data and delete data and revert to the backup DB if needed. If you change between indexed and not indexed fields you will see the differences. Hope this helps find the problem. I will use your suggestion about using "userID in (...)" it will speed up the process greatly. Deane From deane.venske at eduss.com Wed Jul 14 16:10:45 2004 From: deane.venske at eduss.com (Deane Venske) Date: Wed Jul 14 01:10:44 2004 Subject: REALLY strange bug. In-Reply-To: References: Message-ID: Just another update. Running the sqlExecute("REINDEX DATABASE") manually every 200 transactions fixed the problem. Deane > Hi Ruslan, > > I found the problem by starting from scratch with a new DB and RB app. > I've attached it. If the userID file is set to be indexed the problem > happens, without indexing it's fine. The RB app will insert data and > delete data and revert to the backup DB if needed. If you change between > indexed and not indexed fields you will see the differences. Hope this > helps find the problem. > > I will use your suggestion about using "userID in (...)" it will speed up > the process greatly. > > Deane -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ From martin at kinetix.co.uk Wed Jul 14 11:15:13 2004 From: martin at kinetix.co.uk (Martin Wright) Date: Wed Jul 14 05:16:59 2004 Subject: [V4MD Client] no error on bad connect In-Reply-To: Message-ID: <20040714101653.BE05B186211@edison.macserve.net> Hi I haven't heard anything on this issue (below), any progress? I need to be able to check if the connection to Vserver was successful. Although OpenDatabase() does not return any errors, is there a call I can make directly after this that WILL return an error? Martin -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: 09 July 2004 14:06 To: valentina@lists.macserve.net; Igor Gomon Subject: Re: [V4MD Client] no error on bad connect On 7/9/04 12:40 PM, "Martin Wright" wrote: > Hi > > The OpenDatabase() returns 0 even if I try opening a Vserver with an > impossible IP address. > > > set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "", > mySerialNumber) > OpenDatabase( gMyDB, dbPath ) > err = ValentinaError() > errStr = ValentinaErrorString() > put "err = " & err > > > ********** Message window ************ > * V4MD *: Create_VDataBase...* V4MD *: DB_New...done > * V4MD *: OpenDatabase...done > * V4MD *: ValentinaError...done > * V4MD *: ValentinaErrorString...done > -- "err = 0" > > How can it return 'OpenDatabase...done' when there is no Vserver. > Or is there another (very quick) test I can do after OpenDatabase() to > make sure it connected successfully. No, I think it must be Open...error xxxx Igor, please check again. Modify our example project for this. If it will return error code then send that project to Martin for check. -- 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 mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Jul 14 21:05:00 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 14 13:05:10 2004 Subject: [VNET] testprogram for empty exceptions and wrong IsReadOnly()-property In-Reply-To: <000201c41e14$2b392100$fe78a8c0@IPSBASIS> Message-ID: On 4/9/04 12:20 PM, "SoftIl" wrote: > > Hi Ruslan, > here is a small test program to demonstrate my little problems. ;-) > I hope it will be helpful for you to find out the mistakes. Hi Carsten, I have spend many hours today in .NET One problem report for Mike was resolved. Your report about ReadOnly() always return true still not resolved. Here happens incredible for my mind things. I simply hate Microsoft! :-) Line of code bool res = pdb->IsReadOnly() ^^^^^^^^^^^^^^ kernel call So Visual debugger shows that my kernel function have return false. But! one step more and debugger show that variable res is true. How this happens -- no ideas. Problem only with bool type. I have try replace in kernel function return type to int then it works correctly. But I cannot change kernel API special for C#. We have several such functions with bool in VNET. --------- I have ask come to me for help the best c# and MS developer in our city. He have promise come in the nearest days. So Slava, all our hopes now directed to you. -- 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 barney at custombased.com Thu Jul 15 11:42:32 2004 From: barney at custombased.com (Barney) Date: Wed Jul 14 18:44:35 2004 Subject: connect to local embedded DB and served DB in same app ? Message-ID: Hi, My project uses a local embedded DB file which each user has. Now though I would like to take the inventory data and serve it so a few different uses can have one central inventory. I would like to place a separate DB on the server and serve it using Vserver. It would seem that I can't get access to this though ? Because I must use a V4RB plugin of the embedded DB type to access the local embedded DB, it won't allow me to access the served DB. Is there any way the same project can access both a local DB on each machine AND a served file somewhere on the network ? Thanks Barney From sunshine at public.kherson.ua Thu Jul 15 05:25:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 14 21:25:27 2004 Subject: connect to local embedded DB and served DB in same app ? In-Reply-To: Message-ID: On 7/15/04 2:42 AM, "Barney" wrote: > Hi, > > My project uses a local embedded DB file which each user > has. > > Now though I would like to take the inventory data > and serve it so a few different uses can have one central > inventory. > > I would like to place a separate DB on the server and serve it using > Vserver. > > It would seem that I can't get access to this though ? Yes, because both plugins V4RB and V4RB_Client register the same classes. > Because I must use a V4RB plugin of > the embedded DB type to access the local embedded DB, it won't allow > me to access the served DB. > > Is there any way the same project can access both a local DB on each machine > AND a served file somewhere on the network ? We plan implement this feature in 2.0 It will work as *SINGLE* plugin V4RB weakly linked with 2 DLLs: kernel.dll and vclient.dll -- 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 fb at memedia.de Thu Jul 15 10:55:14 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jul 15 03:55:18 2004 Subject: Update Message-ID: Hi Ruslan, Would you mind to update the embedded server developer downloads? Best regards, Florian From sunshine at public.kherson.ua Thu Jul 15 12:18:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 15 04:19:01 2004 Subject: Update In-Reply-To: Message-ID: On 7/15/04 11:55 AM, "Florian Bogeschdorfer" wrote: > Hi Ruslan, > > Would you mind to update the embedded server developer downloads? Hi Florian, It is up to date. Or what you mean ? -- 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 fb at memedia.de Thu Jul 15 11:25:02 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jul 15 04:25:07 2004 Subject: Update In-Reply-To: Message-ID: The "for embedded server developers" says version a055, date May while the other beta says 062, July... > > Or what you mean ? > an/listinfo/valentina From sunshine at public.kherson.ua Thu Jul 15 12:34:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 15 04:34:53 2004 Subject: Update In-Reply-To: Message-ID: On 7/15/04 12:25 PM, "Florian Bogeschdorfer" wrote: > The "for embedded server developers" says version a055, date May while the > other beta says 062, July... You mean .ZIP archive ? -- 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 fb at memedia.de Thu Jul 15 11:38:55 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jul 15 04:39:01 2004 Subject: Update In-Reply-To: Message-ID: Yes! > > You mean .ZIP archive ? > From fb at memedia.de Thu Jul 15 14:15:53 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jul 15 07:15:57 2004 Subject: Update In-Reply-To: Message-ID: Sorry Ruslan, Don't want to get on your nerves, but I would like to test the update today if possible... Best regards, Florian From sunshine at public.kherson.ua Thu Jul 15 18:23:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 15 10:23:25 2004 Subject: Update In-Reply-To: Message-ID: On 7/15/04 3:15 PM, "Florian Bogeschdorfer" wrote: > Sorry Ruslan, > > Don't want to get on your nerves, but I would like to test the update today > if possible... I was absent few hours Will upload 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 Thu Jul 15 18:28:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 15 10:28:54 2004 Subject: DONE: Update In-Reply-To: Message-ID: On 7/15/04 6:23 PM, "Ruslan Zasukhin" wrote: > On 7/15/04 3:15 PM, "Florian Bogeschdorfer" wrote: > >> Sorry Ruslan, >> >> Don't want to get on your nerves, but I would like to test the update today >> if possible... > > I was absent few hours > > Will upload 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 Fri Jul 16 13:22:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 05:23:03 2004 Subject: V4MD, 2.0 support of Images Message-ID: Hi Martin, You have ask many times that we have add support of Images. I wonder, do you know at least one Xtra for Director which is able work with Images. Xtra Which can CREATE new image ? And which can get Image from Director and do something with 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 martin.kloss at gmx.de Fri Jul 16 14:46:42 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jul 16 07:46:58 2004 Subject: V4MD, 2.0 support of Images In-Reply-To: References: Message-ID: <6.1.1.1.2.20040716143641.01aae058@pop.gmx.de> At 12:22 16.07.2004, Ruslan Zasukhin wrote: >You have ask many times that we have add support of Images. >I wonder, do you know at least one Xtra for Director which is able work with >Images. Tabuleiro's Arca Database Xtra can do it: http://xtras.tabuleiro.com/products/arca/features.htm "...Arca is the only database solution for Director that stores image objects directly, ready to be used with imaging Lingo functions..." hmm, maybe you should change that...:-) The DirectImage XTtra can import into Image objects: http://www.directxtras.com/DImage_home.asp?UUID=1347808 "...Import image files into Director image cast members or lingo image objects..." There also might be other Xtras, I haven't worked with V12 in a long time, so I don't know if they support it by now. But as you see it's possible :-) Martin. Martin Kloss "Everybody is somebody else's weirdo." Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jul 16 15:51:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 07:52:05 2004 Subject: When was added Compression format to Director Message-ID: Hi All, We have to see that Director MX have .compression property for bitmap. When this feature was added to Director? Just intresting, Andy, you remember that in 1999 year, we have add to V4MD (and to Valentina kernel) support of JPG library in Picture field? You remember why we have made this ? :-) In fact if IDE/language can give to engine already COMPRESSD picture in some format, that engine have nothing todo, we can simply store several KB of RAM and store info that format is e.g. JPG. May be we need in Valentina 2.0 simply remove from kernel JPG library? Director MX can give us JPG as I see may be although older versions cannot do this... REALbasic I think also have some plugins to compress into RAM/memBuffer a picture, which we can later get in V4RB plugin. C/c++ the same. Developer can use third party graph libs which he wish. VPHP do not need also that Valentina convert graphic self. VCOM (VB) and C# do not know... I think also they can do this. So guys, why we need in Valentina 2.0 engine to have buil-in libraries to convert pictures? Anybody see any advantages of 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 martin.kloss at gmx.de Fri Jul 16 15:04:54 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jul 16 08:05:04 2004 Subject: When was added Compression format to Director In-Reply-To: References: Message-ID: <6.1.1.1.2.20040716145822.01b019e8@pop.gmx.de> At 14:51 16.07.2004, Ruslan Zasukhin wrote: >We have to see that Director MX have .compression property for bitmap. >When this feature was added to Director? Since Director 8, there are two new properties for bitmap castmembers. But they only work for movies in Shockwave format, which most projectors are not. Here's the info from the Director help files: member(whichMember).imageCompression It indicates the type of compression that Director will apply to the member when saving the movie in Shockwave format. This property can be tested and set, and has no effect at runtime. Its value can be any one of these symbols: #movieSetting Use the compression settings of the movie, as stored in the movieImageCompression property. This is the default value for image formats not restricted to standard compression (see below). #standard Use Director?s standard internal compression format. #jpeg Use JPEG compression. See imageQuality. member(whichMember).imageQuality This bitmap cast member property indicates the level of compression to use when the member?s imageCompression property is set to #jpeg. The range of acceptable values is 0?100. Zero yields the lowest image quality and highest compression; 100 yields the highest image quality and lowest compression. This property is settable only during authoring and only affects cast members when saving a movie in Shockwave format. Martin. Martin Kloss "Everybody is somebody else's weirdo." Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jul 16 16:30:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 08:30:55 2004 Subject: When was added Compression format to Director In-Reply-To: <6.1.1.1.2.20040716145822.01b019e8@pop.gmx.de> Message-ID: On 7/16/04 4:04 PM, "Martin Kloss" wrote: > At 14:51 16.07.2004, Ruslan Zasukhin wrote: >> We have to see that Director MX have .compression property for bitmap. >> When this feature was added to Director? > > Since Director 8, there are two new properties for bitmap castmembers. > But they only work for movies in Shockwave format, which most projectors > are not. Here's the info from the Director help files: > > member(whichMember).imageCompression > > It indicates the type of compression that Director will apply to the member > when saving the movie in Shockwave format. This property can be tested > and set, and has no effect at runtime. Aha, So Director cannot give to Valentina ready JPG. Well, this explains why Andy have advice me to add into Valentina own JPG compression. So we still must have this feature (mainly for director developers). -- 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 cm_sheffield at yahoo.com Fri Jul 16 07:16:39 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Fri Jul 16 09:16:47 2004 Subject: error 2 Message-ID: <20040716141639.472.qmail@web52405.mail.yahoo.com> Can anyone tell me what error 2 means. I thought it was just a windows error, but apparently a user is seeing it on Windows and Mac when trying to access a certain database. I don't have much information right now, but I was hoping someone could at least tell me what the error means. Thanks, ===== Chris Sheffield Read Naturally www.readnaturally.com __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From sunshine at public.kherson.ua Fri Jul 16 17:20:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 09:20:27 2004 Subject: error 2 In-Reply-To: <20040716141639.472.qmail@web52405.mail.yahoo.com> Message-ID: On 7/16/04 5:16 PM, "Chris Sheffield" wrote: > Can anyone tell me what error 2 means. I thought it > was just a windows error, but apparently a user is > seeing it on Windows and Mac when trying to access a > certain database. > > I don't have much information right now, but I was > hoping someone could at least tell me what the error > means. Hi Chris, This is really Windows error. 2 - the system cannot find the file specified. -------------------- You use V4RB ? MacOS X? And you also get error 2 ? You sure ? -- 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 martin.kloss at gmx.de Fri Jul 16 17:23:46 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jul 16 10:23:58 2004 Subject: When was added Compression format to Director In-Reply-To: References: <6.1.1.1.2.20040716145822.01b019e8@pop.gmx.de> Message-ID: <6.1.1.1.2.20040716172029.01b2e1d0@pop.gmx.de> At 15:30 16.07.2004, you wrote: >So Director cannot give to Valentina ready JPG. No, I don't think that's possible. You will always get the bitmap data from a bitmap member. But I'm not sure what kind of data you'll get from an image object. You should ask some Xtras developers on Xtras-L or check the docs of the XDK, it should say something about that since image objects have been added to the XDK in version 8.5, I think. Martin. Martin Kloss "Everybody is somebody else's weirdo." Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jul 16 20:07:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 12:07:52 2004 Subject: When was added Compression format to Director In-Reply-To: <6.1.1.1.2.20040716172029.01b2e1d0@pop.gmx.de> Message-ID: On 7/16/04 6:23 PM, "Martin Kloss" wrote: > At 15:30 16.07.2004, you wrote: >> So Director cannot give to Valentina ready JPG. > > No, I don't think that's possible. You will always get > the bitmap data from a bitmap member. But I'm not > sure what kind of data you'll get from an image object. Yes, looks to be a case. > You should ask some Xtras developers on Xtras-L > or check the docs of the XDK, it should say something > about that since image objects have been added to > the XDK in version 8.5, I think. Bitmap, and only bitmap. Or MEDIA format. -- 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 daniel at monumental-i.com Fri Jul 16 14:40:45 2004 From: daniel at monumental-i.com (Daniel Crowder) Date: Fri Jul 16 13:40:54 2004 Subject: Valentina Xtra Questions from a v12 user Message-ID: Folks, I'm considering switching from v12 to Valentina because I want a more SQL compliant experience. I've been using MySQL for tons of stuff and love it - Valentina sounds WAY closer to MySQL than v12. The Valentina website is pretty out-of-date in parts so I'm a little concerned. What are folks thoughts concerning Valentina running with Director MX 2004 under both OSX and Windows? Problems? Does Valentina still trounce V12? Are their more recent benchmarks than what is on the site? How far away from release is the 2.0 version? _______________________________ Daniel Crowder Partner Monumental Natural Interactive Solutions 828 Ralph McGill Blvd. Ste. W-2 Atlanta, GA 30306 Phone: 404.223.0303 Fax: 404.223.0309 From chuck at mediamacros.com Fri Jul 16 15:11:22 2004 From: chuck at mediamacros.com (Chuck Neal) Date: Fri Jul 16 14:08:36 2004 Subject: Valentina Xtra Questions from a v12 user In-Reply-To: Message-ID: <060001c46b68$af4c4ac0$b900a8c0@batcomputer> Yes, its much faster than V12 and still works fine with all versions of Director from 7 on. Read the docs carefully as it is a bit more complex (due to more features) in what all you can do and how you need to set up DB tables, but if you are used to mySQL this most of this is pretty self explanatory. -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Daniel Crowder Sent: Friday, July 16, 2004 2:41 PM To: valentina@lists.macserve.net Subject: Valentina Xtra Questions from a v12 user Folks, I'm considering switching from v12 to Valentina because I want a more SQL compliant experience. I've been using MySQL for tons of stuff and love it - Valentina sounds WAY closer to MySQL than v12. The Valentina website is pretty out-of-date in parts so I'm a little concerned. What are folks thoughts concerning Valentina running with Director MX 2004 under both OSX and Windows? Problems? Does Valentina still trounce V12? Are their more recent benchmarks than what is on the site? How far away from release is the 2.0 version? _______________________________ Daniel Crowder Partner Monumental Natural Interactive Solutions 828 Ralph McGill Blvd. Ste. W-2 Atlanta, GA 30306 Phone: 404.223.0303 Fax: 404.223.0309 _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From gunnarswan at PracticeToPass.com Fri Jul 16 12:40:45 2004 From: gunnarswan at PracticeToPass.com (Gunnar Swan) Date: Fri Jul 16 14:39:19 2004 Subject: Valentina Xtra Questions from a v12 user Message-ID: <200407161939.i6GJd7tB032054@practicetopass.com> Our application has been deployed to thousands of sites. Not one technical support call has involved Valentina. None. Zero. Zip. Nada. It's been very stable, and very fast out in the field. If I must complain ... it can be a little cranky during development when you do something wrong, especially if you open a database that is already open, things like that. Gunnar Swan 7/16/04 11:40:45 AM, Daniel Crowder wrote: >Folks, > >I'm considering switching from v12 to Valentina because I want a more >SQL compliant experience. I've been using MySQL for tons of stuff and >love it - Valentina sounds WAY closer to MySQL than v12. > >The Valentina website is pretty out-of-date in parts so I'm a little >concerned. > >What are folks thoughts concerning Valentina running with Director MX >2004 under both OSX and Windows? Problems? > >Does Valentina still trounce V12? Are their more recent benchmarks than >what is on the site? > >How far away from release is the 2.0 version? > >_______________________________ >Daniel Crowder >Partner > >Monumental >Natural Interactive Solutions > >828 Ralph McGill Blvd. Ste. W-2 >Atlanta, GA 30306 > >Phone: 404.223.0303 >Fax: 404.223.0309 >_______________________________________________ >Valentina mailing list >Valentina@lists.macserve.net >http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sun Jul 18 09:10:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 18 01:10:25 2004 Subject: Text columns In-Reply-To: <3F86DF7C-D87D-11D8-B0CF-000A95A9544A@shaw.ca> Message-ID: On 7/18/04 8:42 AM, "Norman Palardy" wrote: >>> OK >>> Tried changing the column to text with word indexes. >>> No difference in my application. >> >> No! >> >> You need TEXT with NO word indexes. > > OK. > Which document explain the differences between Valentina's word indexes > and other forms ? > > >> >>> This query >>> select indexEntry from DTab where indexEntry = '45' >> >> You have data as 008.45 >> ^^ >> >> >> If you set IndexByWords then Valentina split this on 2 words >> >> "008" and "45" >> >> So your search find EXACT match >> >> 45 = 45 > > I see. Which document explains Valentina's word indexing > Would the Valentina Kernel have this explanation Yes, Valentina Kernel -- describe kernel features. V4RB Reference -- describe API of V4RB > Obviously it's something that I need to understand but I have missed > reading anuthing that made me see that I should have the word index > off. Well, I think it is quite naturally. RecID TEXT with Index by words. -------------------------------------- 1 "008.45" Valentina for THIS record add into index 2 entries: 008 1 45 1 So when you do search WHERE fldText = '45' You find in index second entry, and therefore record 1 is selected. How Valentina break string on words: again it try do this naturally spaces, punctuations -- all these are breakers. -- 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 Jul 18 08:12:09 2004 From: jda at his.com (jda) Date: Sun Jul 18 07:12:15 2004 Subject: Text columns In-Reply-To: References: Message-ID: >RecID TEXT with Index by words. >-------------------------------------- >1 "008.45" > > > >Valentina for THIS record add into index 2 entries: > > 008 1 > 45 1 > > >So when you do search > WHERE fldText = '45' > > >You find in index second entry, and therefore record 1 is selected. > > >How Valentina break string on words: > again it try do this naturally > spaces, punctuations -- all these are breakers. > > The indexing algorithm could be a bit smarter, though, no? For example, if a punctuation mark is not followed by a space it should be considered as part of the "word". This would be helpful for some names: for instance, O'Shea. Jon From sunshine at public.kherson.ua Mon Jul 19 15:38:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 07:39:55 2004 Subject: server release In-Reply-To: <171E95BC-D97E-11D8-AD11-003065B985AE@pandora.be> Message-ID: On 7/19/04 3:20 PM, "Bram Van Steenlandt" wrote: > However the following is also something I do not understand > > suppose you have a db with some fields > you add or change a field in db with vapp > and you change the class in realbasic in the very same way > -It can happen that the app won't start or starts and then crashes Aha, This is easy ! 1) you will see SUCH problem as you describe IF you have delete before some field in that table. Valentina 1.x will reuse RecID of delete records in sys tables, So your new field go NOT to the end of field list as you expect, But into the same place of deleted field. This is STUPID from Valentina 1.x. We will fix this in 2.0 I think in VAPP you should see that new field was not appended but inserted into middle. 2) now important. Why you us VAPP? A) if you have not yet released version of your app, then you can and should have in YOUR code function which will create new fresh db. Right? So if you want change something during development, just change this function, trash existed test dbs and create new one. In this way you ALWAYS will have db files that correspond to YOUR CODE. B) if you have distribute app, and your clients already have db files, Then again: what sense to use VAPP to modify db structure ? Your clients need to get from you app which in CODE will open old db, add/delete new fields and increment db.SchemaVersion. You see? -- 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 Jul 19 15:43:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 07:43:59 2004 Subject: server release In-Reply-To: <171E95BC-D97E-11D8-AD11-003065B985AE@pandora.be> Message-ID: On 7/19/04 3:20 PM, "Bram Van Steenlandt" wrote: > wgen I do the flush > However the following is also something I do not understand > > suppose you have a db with some fields > you add or change a field in db with vapp > and you change the class in realbasic in the very same way > -It can happen that the app won't start or starts and then crashes > > I have had some problems doing this and then when I re-create the db > the problem is gone > (off-corse then I have to import everything) > > howcome , is this a minor bug or am I doing things all wrong ? Again, you need this only for your office during development of You need this operation on computers of clients? BTW, adding to me prev letter. IF you do development and you have built some db with data, Then yes, to create new fresh db, you need import back data. Bram, note that CLASSES is named also "STATIC DB WAY" in Valentina docs. You should use classes if you do not change structure often. Otherwise you should use "dynamic way" instead of classes. db.CreateTable() db.DropTable tbl.CreateField() tbl.DropField And so on. In this way, you CAN change db structure in VAPP, and YOUR code still will be okay, because now code NOT depend on physical order of fields like CLASSES WAY (in 2.0 we will make CLASS WAY smarter). Your code get access to fields and tables BY NAME. So order is not important. -- 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 Jul 19 16:22:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 08:22:33 2004 Subject: server release In-Reply-To: <171E95BC-D97E-11D8-AD11-003065B985AE@pandora.be> Message-ID: On 7/19/04 3:20 PM, "Bram Van Steenlandt" wrote: >> To repair database ? >> If it is corrupted then it is very hard. > So suppose the power goes down and the database gets corrupted, then I > have no way of saving my data ? IF you use Flushes correctly then chances to get corrupted dbs are close to ZERO. Somebody on Valentina list have point that he have 10,000 installations of his app, and for months they did not have any corruptions. > If so , how good are the backup possibilities of Vserver , can I make > regular backups to different locations automaticly (like FM server for > example) This is special story. We have study this task: HOT BACKUP. As far as we see: 1) you sure you need this ? Assume you have HUGE db files. Say 100MB. If you SIMPLY in FINDER will do COPY you will need just 5 seconds. And if you will try HOT BACKUP from big DBMS this will take minutes. Because inside they must LOCK records, monitor changes, prevent changes for not backuped yet records. 2) Hmm, Igor, what about next idea which we can make in 5 minutes of work. to Vserver we add new admin command Vserver.BackUp( disk_location ) Vserver will wait until all WRITE commands finish, And it will prevent new WRITE commands until finish. As only all WRITE commands gone, then we can simply duplicate db files into specified locations on the HIGHEST POSSIBLE speed. Igor, what you 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 Mon Jul 19 16:42:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 08:42:26 2004 Subject: server release In-Reply-To: <51553388-D988-11D8-BA9B-003065B985AE@pandora.be> Message-ID: On 7/19/04 4:34 PM, "Bram Van Steenlandt" wrote: >> 2) Hmm, Igor, what about next idea which we can make in 5 minutes of >> work. >> to Vserver we add new admin command >> >> Vserver.BackUp( disk_location ) >> >> Vserver will wait until all WRITE commands finish, >> And it will prevent new WRITE commands until finish. >> >> As only all WRITE commands gone, then we can simply duplicate db files >> into >> specified locations on the HIGHEST POSSIBLE speed. > OK cool but why not > Vserver.backup("remote_server",login,password) > this way we can easely backup onto another computer wich is better > because the chances of two computer catching fire at the same time is > very small 1) if "other computer" is computer in the same LOCAL network, Then you can easy mount its HDD to Vserver computer, So command Vserver.backup( "shared_volume" ) Will give you exactly what you want, right? > and also: we now use our filemaker backups when we need to go to a > remote location (no internet because file structure for server is the > same as client) valentina also has same structure so you could say something > like > > Vserver.backup("MyPowerbook","Login","password") > > This would be super 2) you mean here DOWNLOAD db files to your *remote client* computer? ** this will be much slower and take much longer time. -- 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 fb at memedia.de Mon Jul 19 16:15:06 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jul 19 09:15:17 2004 Subject: Change field name Message-ID: Hi ! I am looking for a method to change a field name. I was looking for kind of changeFieldName() but could not find it in the docs. Did I miss it or is it not possible? Best regards, Florian From giv at tlc.kherson.ua Mon Jul 19 17:36:19 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jul 19 09:36:54 2004 Subject: server release References: Message-ID: <003901c46d9d$c15961d0$3b04a8c0@giv> > 2) Hmm, Igor, what about next idea which we can make in 5 minutes of work. > to Vserver we add new admin command > > Vserver.BackUp( disk_location ) > > Vserver will wait until all WRITE commands finish, > And it will prevent new WRITE commands until finish. > > As only all WRITE commands gone, then we can simply duplicate db files into > specified locations on the HIGHEST POSSIBLE speed. > > Igor, what you think? I think we can implement this but maybe this will be more than 5 minutes work. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv@tlc.kherson.ua web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From fb at memedia.de Mon Jul 19 16:39:51 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jul 19 09:39:59 2004 Subject: server release In-Reply-To: <003901c46d9d$c15961d0$3b04a8c0@giv> Message-ID: I would love this. > I think we can implement this but maybe this will be more > than 5 minutes work. > Best regards, Florian From sunshine at public.kherson.ua Mon Jul 19 17:57:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 09:58:00 2004 Subject: server release In-Reply-To: <74AAF941-D98A-11D8-BA9B-003065B985AE@pandora.be> Message-ID: On 7/19/04 4:49 PM, "Bram Van Steenlandt" wrote: >> And MAY BE you should not use classes, >> But use dynamic way. > Maybe but is it not slower ? Slower can be only access by name to fields. Before big loops you can get references fld = table.field("aaa") loop ... fld.value .... This will be not slower. -- 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 Jul 19 18:01:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 10:01:23 2004 Subject: server release In-Reply-To: <74AAF941-D98A-11D8-BA9B-003065B985AE@pandora.be> Message-ID: On 7/19/04 4:49 PM, "Bram Van Steenlandt" wrote: >> Or you ask if it will work on DUAL? > I ask wether valentina will really use the second processor and de 64 > bit power of the G5 G5 power not yet > So I know wether it is worth the extra money, if valentina doesn't use > 64 bit G5 then there is no point in using a G5 as SERVER I will be not so sure!!! On developer have told that his SINGLE USER V4RB application with Valentina DUAL/G4 1.25 did some operation 60 seconds on DUAL/G5 2.0 (it seems) it was 7 seconds. >> My computer is DUAL/G4 >> >> Note, threading model of Vserver will use power of multi-cpu, >> But still not on the best possible way. >> > OK better than nothing -- 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 Jul 19 18:04:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 10:05:02 2004 Subject: Change field name In-Reply-To: Message-ID: On 7/19/04 5:15 PM, "Florian Bogeschdorfer" wrote: > Hi ! > > I am looking for a method to change a field name. I was looking for kind of > changeFieldName() but could not find it in the docs. Did I miss it or is it > not possible? Hi Florian, I am sure you ask about V4MD. YES. Just few days ago other developer also have found that API V4MD Do not have this function. I can add it easy. -- 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 fb at memedia.de Mon Jul 19 17:08:20 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jul 19 10:08:27 2004 Subject: Change field name In-Reply-To: Message-ID: > > Hi Florian, > > I am sure you ask about V4MD. Yes, sorry for not mentioning it > > YES. Just few days ago other developer also have found that > API V4MD Do not have this function. > > I can add it easy. > In this special case I was able to use "RemoveField" and "AddField" but for the future it would be necessary. Of course why would it be necessary to rename a field? That is if you are as stupid as me and create a DB with my__Field instead of my_Field and have already distributed it... Best regards, Florian From aaronbratcher at ontargetreports.com Mon Jul 19 15:00:49 2004 From: aaronbratcher at ontargetreports.com (Aaron Bratcher) Date: Mon Jul 19 14:01:04 2004 Subject: virtual field reference manual? Message-ID: I don't see a reference on available functions available to me in virtual fields on the website. Can someone point me to it? Also, is there an IF function available or a way of doing it? Thanks. -- Aaron Bratcher On-Target Reports, Inc. From sunshine at public.kherson.ua Mon Jul 19 22:21:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 14:21:28 2004 Subject: virtual field reference manual? In-Reply-To: Message-ID: On 7/19/04 10:00 PM, "Aaron Bratcher" wrote: Hi Aaron, > I don't see a reference on available functions available to me in > virtual fields on the website. Can someone point me to it? ValentinaSQL.pdf > Also, is there an IF function available or a way of doing it? Yes, but as function if( expr1, expr, exp3 ) -- 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 Jul 19 22:33:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 14:33:32 2004 Subject: server release In-Reply-To: Message-ID: On 7/19/04 6:18 PM, "Florian Bogeschdorfer" wrote: >> Hi Florian, >> >> There was no big changes. >> >> Only XML dump can be considered as backup. >> >> >> >> -- >> Best regards, >> Ruslan Zasukhin [ I feel the need...the need for speed ] > > > OK. I would love that simple backup command to a file path. At the moment I > have to use an xtra to make a shell command to stop the service, then copy, > then start the service again... Right, And I think this will be quite good. If during these 2-5-10 seconds nobody execute WRITE command then nobody even will not see delay. Postgre during HOT BACKUP execute transaction with FULL ISOLATION LEVEL, this AFAIK, set the same READ LOCK on the whole db. -- 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 xyzabc1010 at yahoo.com Tue Jul 20 12:01:12 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Tue Jul 20 14:01:19 2004 Subject: Possible VServer Bug?? on V4MD Message-ID: <20040720190112.11292.qmail@web21103.mail.yahoo.com> Hi All, I have downloaded the latest version of VServer and have been running into the following situation. Everytime I insert a record the id of the newly inserted record is set to 0 instead of the parameter that I passed. In addition, Updates does not update for integers. Running in a Windows environment, everything works well; however. running in an OSX (where both client & server are OSX) I get the above error. I set the log to verbose and received no errors whatsoever. Here is the output log from the server: 14:51:52.181996 (2684358124): Database kernel inited 14:51:52.228586 (2684358124): Server started at 15432 port 14:52:17.904112 (379600): Connection established with '10.250.8.159:49201' (13) 14:52:17.910929 (381280): (13) Database: ; User: sa: OK 14:52:17.915180 (381280): Closing connection (13) 14:52:23.462202 (379600): Connection established with '10.250.8.159:49202' (13) 14:52:23.587759 (380400): (13) Database: lexiadatamanager; User: sa: OK 14:52:31.157682 (380400): (13) SQL: select group_id from Group WHERE group_name = 'Phonics Based Reading' AND group_tag = 'PBR'; # of records: 0 14:52:38.685274 (380400): (13) SQL: select max_id from TableMaxID where table_name = 'Group'; # of records: 1 14:52:38.687287 (382080): (13) CURSOR(0xC5AF60): FirstRecord : OK 14:52:38.689383 (379600): (13) CURSOR(0xC5AF60): Updating record #1: OK 14:53:10.746429 (379600): (13) SQL: SELECT * FROM Group; # of records: 0 14:53:10.750093 (380400): (13) CURSOR(0xC5AF60): Adding record #1: OK 14:53:10.756437 (382080): (13) Flushing 'lexiadatamanager' database: OK 14:53:17.242184 (380400): (13) SQL: select recId, group_id, group_tag, group_name, serial_no from Group where Group.group_id = 24; # of records: 0 Any help would be much appreciated. Thanks __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From sunshine at public.kherson.ua Tue Jul 20 22:27:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 20 14:27:28 2004 Subject: Possible VServer Bug?? on V4MD In-Reply-To: <20040720190112.11292.qmail@web21103.mail.yahoo.com> Message-ID: On 7/20/04 10:01 PM, "X Y" wrote: Hi, 1) check your UPDATE and INSERT query using viSQL or Valentina Studio again LOCAL database. Btw, using Valentina Studio you can do SQL query and immidiatly check result using table browser. 2) if LOCAL version correctly do that queries then problem really in client/server. I think will be good if you will send simple V4MD project that do this 2 queries and show problem. > Hi All, > I have downloaded the latest version of VServer and > have been running into the following situation. > Everytime I insert a record the id of the newly > inserted record is set to 0 instead of the parameter > that I passed. In addition, Updates does not update > for integers. > > Running in a Windows environment, everything works > well; however. running in an OSX (where both client & > server are OSX) I get the above error. > > I set the log to verbose and received no errors > whatsoever. Here is the output log from the server: > > 14:51:52.181996 (2684358124): Database kernel inited > 14:51:52.228586 (2684358124): Server started at 15432 > port > 14:52:17.904112 (379600): Connection established with > '10.250.8.159:49201' (13) > 14:52:17.910929 (381280): (13) Database: ; > User: sa: OK > 14:52:17.915180 (381280): Closing connection (13) > 14:52:23.462202 (379600): Connection established with > '10.250.8.159:49202' (13) > 14:52:23.587759 (380400): (13) Database: > lexiadatamanager; User: sa: OK > 14:52:31.157682 (380400): (13) SQL: select group_id > from Group WHERE group_name = 'Phonics Based Reading' > AND group_tag = 'PBR'; # of records: 0 > 14:52:38.685274 (380400): (13) SQL: select max_id > from TableMaxID where table_name = 'Group'; # of > records: 1 > 14:52:38.687287 (382080): (13) CURSOR(0xC5AF60): > FirstRecord : OK > 14:52:38.689383 (379600): (13) CURSOR(0xC5AF60): > Updating record #1: OK > 14:53:10.746429 (379600): (13) SQL: SELECT * FROM > Group; # of records: 0 > 14:53:10.750093 (380400): (13) CURSOR(0xC5AF60): > Adding record #1: OK > 14:53:10.756437 (382080): (13) Flushing > 'lexiadatamanager' database: OK > 14:53:17.242184 (380400): (13) SQL: select recId, > group_id, group_tag, group_name, serial_no from Group > where Group.group_id = 24; # of records: 0 > > Any help would be much appreciated. -- 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 xyzabc1010 at yahoo.com Tue Jul 20 12:37:29 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Tue Jul 20 14:37:37 2004 Subject: Possible VServer Bug?? on V4MD In-Reply-To: Message-ID: <20040720193729.53863.qmail@web21122.mail.yahoo.com> Hi Ruslan, I am not using UPDATE/INSERT queries but using cursor updates instead. I have used local version of the program (meaning the non client/server) and everything works fine. I will try to make a mini project of this behavior. --- Ruslan Zasukhin wrote: > On 7/20/04 10:01 PM, "X Y" > wrote: > > Hi, > > 1) check your UPDATE and INSERT query using viSQL or > Valentina Studio again > LOCAL database. > > Btw, using Valentina Studio you can do SQL query and > immidiatly check result > using table browser. > > 2) if LOCAL version correctly do that queries then > problem really in > client/server. I think will be good if you will send > simple V4MD project > that do this 2 queries and show problem. > > > > > Hi All, > > I have downloaded the latest version of VServer > and > > have been running into the following situation. > > Everytime I insert a record the id of the newly > > inserted record is set to 0 instead of the > parameter > > that I passed. In addition, Updates does not > update > > for integers. > > > > Running in a Windows environment, everything works > > well; however. running in an OSX (where both > client & > > server are OSX) I get the above error. > > > > I set the log to verbose and received no errors > > whatsoever. Here is the output log from the > server: > > > > 14:51:52.181996 (2684358124): Database kernel > inited > > 14:51:52.228586 (2684358124): Server started at > 15432 > > port > > 14:52:17.904112 (379600): Connection established > with > > '10.250.8.159:49201' (13) > > 14:52:17.910929 (381280): (13) Database: ; > > User: sa: OK > > 14:52:17.915180 (381280): Closing connection (13) > > 14:52:23.462202 (379600): Connection established > with > > '10.250.8.159:49202' (13) > > 14:52:23.587759 (380400): (13) Database: > > lexiadatamanager; User: sa: OK > > 14:52:31.157682 (380400): (13) SQL: select > group_id > > from Group WHERE group_name = 'Phonics Based > Reading' > > AND group_tag = 'PBR'; # of records: 0 > > 14:52:38.685274 (380400): (13) SQL: select max_id > > from TableMaxID where table_name = 'Group'; # of > > records: 1 > > 14:52:38.687287 (382080): (13) CURSOR(0xC5AF60): > > FirstRecord : OK > > 14:52:38.689383 (379600): (13) CURSOR(0xC5AF60): > > Updating record #1: OK > > 14:53:10.746429 (379600): (13) SQL: SELECT * FROM > > Group; # of records: 0 > > 14:53:10.750093 (380400): (13) CURSOR(0xC5AF60): > > Adding record #1: OK > > 14:53:10.756437 (382080): (13) Flushing > > 'lexiadatamanager' database: OK > > 14:53:17.242184 (380400): (13) SQL: select recId, > > group_id, group_tag, group_name, serial_no from > Group > > where Group.group_id = 24; # of records: 0 > > > > Any help would be much appreciated. > > > -- > 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 mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ From Fred.Stephenson at communication-unltd.com Wed Jul 21 22:57:29 2004 From: Fred.Stephenson at communication-unltd.com (Fred.Stephenson) Date: Wed Jul 21 15:56:47 2004 Subject: VDN Professional edition In-Reply-To: References: <20040720190112.11292.qmail@web21103.mail.yahoo.com> Message-ID: Hi Ruslan, Could you just remind me what is included in a VDN Professional licence. I just want to make sure that I'm purchasing the right thing from Kagi. Thanks Fred From sunshine at public.kherson.ua Thu Jul 22 00:11:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 21 16:11:36 2004 Subject: VDN Professional edition In-Reply-To: Message-ID: On 7/21/04 11:57 PM, "Fred.Stephenson" wrote: > Hi Ruslan, > Could you just remind me what is included in a VDN Professional licence. > I just want to make sure that I'm purchasing the right thing from Kagi. Hi Fred, I will answer off list. -- 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 Thu Jul 22 10:41:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 02:42:04 2004 Subject: Jon, please correct this Message-ID: Hi Jon, When we create new db in your project, You start add some records into misc table. I see in the log file strange order of creation/destruction of cursors. Cursor_Ctor... PARAM: instance = 26792288 PARAM: inDB = 26796632 PARAM: inSQLstr = "select * from misc where RecId=0" PARAM: inCursorLocation = 2 PARAM: inCursorType = 3 PARAM: inDirection = 1 return > Cursor_Destructor... > PARAM: instance = 26690640 > return > > Field_Destructor... > PARAM: inFld = 26984016 > VAR: data->mpField = 0 > return > > Field_Destructor... > PARAM: inFld = 26984108 > VAR: data->mpField = 0 > return > > Field_Destructor... > PARAM: inFld = 26984064 > VAR: data->mpField = 0 > return Cursor_SetRecBlank... PARAM: inCursor = 26792288 return Cursor_GetFieldByName... PARAM: inCursor = 26792288 PARAM: inName = "minimumVersionRequired" return object = 26984064 Field_SetString... PARAM: inFld = 26984064 PARAM: inValue = "800" return Cursor_AddRecord... PARAM: inCursor = 26792288 return (int) res = 1 In the blue color above you see that when you have create one cursor the previous start to die. I am sure that you have code BY LOGIC as next curs = db.SqlSelect() ... curs = db.SqlSelect() This is correct code from point of view of REALbasic, but this is not very good from point of view Valentina, and more correctly say: functions that allocates/lock/eat resources The first cursor LOCK records, so may happens that you simply will not be able create second cursor because it also will want the same records. The CORRECT WAY is to free resources ASAP. curs = db.SqlSelect() ... curs = nil // this will start destructors curs = db.SqlSelect() curs = nil Also I think in your code you keep Cursor variable as Window property or may be application class property. And you have forget to NIL it before you close db. This cause now new crash in 2.0 which I will fix now. Although it still good idea destroy all objects before db.close(). And I will try to add feature that V4RB will write into log WARNING in case it find object destroyed AFTER db.close(). In any case fix above issue with cursors and send me new project. -- 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 wonderfef at noos.fr Thu Jul 22 10:46:36 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Thu Jul 22 03:46:49 2004 Subject: [V4RB] RegEx search and UTF-8 Message-ID: Hello, Thanks to the power of Valentina and RegEx, I was able to add a very cool "find anything" tool to my application, i.e: type "borea" and Valentina will find "Bor?ales" using Select Name from Clients where name like 'b[o???]r[e????][a???]' no_case But now that I'm using RB 5.5, "Bor??ales" is stored in my record instead of "Bor?ales", things are getting tricky... Select Name from Clients where name like 'bor?a' no_case -> OK Select Name from Clients where name like 'b[o???]r[e????]' no_case -> OK Select Name from Clients where name like 'b[o???]r[e????][a???]' no_case -> no result. Is there any work around or shoulf I have to wait for v2.0 ? Thanks for your help Eric Valentina 1.10 RB 5.5.2 MacOS X 10.3.4 Language : French From sunshine at public.kherson.ua Thu Jul 22 12:33:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 04:34:02 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: Message-ID: On 7/22/04 11:46 AM, "Eric Ferrer" wrote: Hi Eric, > Thanks to the power of Valentina and RegEx, I was able to add a very cool > "find anything" tool to my application, i.e: > > type "borea" and Valentina will find "Bor?ales" using > Select Name from Clients where name like 'b[o???]r[e????][a???]' no_case > > But now that I'm using RB 5.5, "Bor??ales" is stored in my record instead of > "Bor?ales", things are getting tricky... I think you should in RB convert from UTF8 to single byte enoding before you store into Valentina. This was mentioned on list few times > Select Name from Clients where name like 'bor?a' no_case -> OK > Select Name from Clients where name like 'b[o???]r[e????]' no_case -> OK > Select Name from Clients where name like 'b[o???]r[e????][a???]' no_case -> > no result. > > Is there any work around or shoulf I have to wait for v2.0 ? -- 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 Thu Jul 22 12:12:35 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Thu Jul 22 05:12:43 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: References: Message-ID: On 22 Jul 2004, at 11:33, Ruslan Zasukhin wrote: > On 7/22/04 11:46 AM, "Eric Ferrer" wrote: > > Hi Eric, > >> Thanks to the power of Valentina and RegEx, I was able to add a very=20= >> cool >> "find anything" tool to my application, i.e: >> >> type "borea" and Valentina will find "Bor=8Eales" using >> Select Name from Clients where name like 'b[o=9A=99=98]r[e=90=91=8E=8F]= [a=89=8A=88]'=20 >> no_case >> >> But now that I'm using RB 5.5, "Bor=C3=A9ales" is stored in my record=20= >> instead of >> "Bor=8Eales", things are getting tricky... > > I think you should in RB convert from UTF8 to single byte enoding=20 > before you > store into Valentina. > > This was mentioned on list few times > Sadly enough, this doesn't work at all. You have to keep it UTF-8, but=20= make sure you use DefineEncoding(string,encodings.UTF8) for every query=20= sent and record retrieved from the database. Best regards Peter De Berdt= From wonderfef at noos.fr Thu Jul 22 13:20:06 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Thu Jul 22 06:20:14 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: Message-ID: > I think you should in RB convert from UTF8 to single byte enoding before you > store into Valentina. You mean that I should store *all* values in the database without a specific encoding, I mean like it was before RB 5.5 and its Unicode support? > Sadly enough, this doesn't work at all. You have to keep it UTF-8, but > make sure you use DefineEncoding(string,encodings.UTF8) for every query > sent and record retrieved from the database. My query is UTF8 encoded... Will Valentina v2 will help me with this problem ? Thanks Eric From sunshine at public.kherson.ua Thu Jul 22 18:44:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 10:44:46 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: Message-ID: On 7/22/04 2:20 PM, "Eric Ferrer" wrote: >> I think you should in RB convert from UTF8 to single byte enoding before you >> store into Valentina. > You mean that I should store *all* values in the database without a specific > encoding, I mean like it was before RB 5.5 and its Unicode support? I think you need follow to Peter advice. >> Sadly enough, this doesn't work at all. You have to keep it UTF-8, but >> make sure you use DefineEncoding(string,encodings.UTF8) for every query >> sent and record retrieved from the database. > My query is UTF8 encoded... > Will Valentina v2 will help me with this problem ? Ys, Valentina itself work in Unicode, and it use new RegEx engine from IBM -- 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 Thu Jul 22 18:50:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 10:50:37 2004 Subject: Jon, please correct this In-Reply-To: Message-ID: On 7/22/04 3:49 PM, "jda" wrote: >> In the blue color above you see that when you have create one cursor the >> previous start to die. >> >> I am sure that you have code BY LOGIC as next >> >> curs = db.SqlSelect() >> ... >> >> curs = db.SqlSelect() >> >> >> This is correct code from point of view of REALbasic, but this is not very >> good from point of view Valentina, and more correctly say: >> functions that allocates/lock/eat resources >> >> The first cursor LOCK records, so may happens that you simply will not be >> able create second cursor because it also will want the same records. > > But the second cursor is a selection from a different table, so it > can't select the same records. I thought it wouldn't matter if I > didn't nil out the first reference and it would be closed by RB. But > I'll nil it out myself, as you suggest. Points are: 1) YES in your case you do not have conflict between record locks. But if you will use the same STYLE in other places you may get into trouble. Better always to use the same good style. 2) in your project you keep cursor as property of window. Yes, REALbasic will SELF kill it, but WHEN? May happens that cursor will live 30 minutes, and all this time it will keep records locked. Cursors must be "good citizens" and they should release their resources AS SOON AS POSSIBLE. 3) btw, this is why I recommend correct and db.VershionSchema access. it is always good idea consider ANY access to db kernel as HARD AND LONG TIME operation. Even if it happens in 0.0001 of second. This may prepare your app for multi-user way. When you have many users your simple call may take longer time because of waiting for other user. Not each call, but again better use good style always and keep self safe. -- 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 Thu Jul 22 18:49:37 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Thu Jul 22 11:49:43 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: References: Message-ID: <1E2E5BD5-DBFF-11D8-AA8B-000393DB2B60@pandora.be> On 22 Jul 2004, at 17:44, Ruslan Zasukhin wrote: > On 7/22/04 2:20 PM, "Eric Ferrer" wrote: > >>> I think you should in RB convert from UTF8 to single byte enoding >>> before you >>> store into Valentina. >> You mean that I should store *all* values in the database without a >> specific >> encoding, I mean like it was before RB 5.5 and its Unicode support? > > I think you need follow to Peter advice. > >>> Sadly enough, this doesn't work at all. You have to keep it UTF-8, >>> but >>> make sure you use DefineEncoding(string,encodings.UTF8) for every >>> query >>> sent and record retrieved from the database. >> My query is UTF8 encoded... > > Please double check that, I've had the same problem in one of my apps and although "I was 100% sure" I defined all my strings as UTF-8, I missed one (even though I assumed I didn't need to since my data was defined as UTF-8 when fetching the record. Especially look for DefineEncodings in your SQLSelect, e.g. "SELECT * FROM Table WHERE MyField='"+defineEncoding(mysearchstring,encodings.UTF8)+"'". It's something you easily miss. > >> Will Valentina v2 will help me with this problem ? > > Ys, Valentina itself work in Unicode, and it use new RegEx engine from > IBM From keatk at comcast.net Thu Jul 22 21:10:10 2004 From: keatk at comcast.net (keatk@comcast.net) Date: Thu Jul 22 16:10:21 2004 Subject: [V4RB] Frustration Message-ID: <072220042110.7682.41002D31000EF95900001E0222007481840B049D0199D30E0E05@comcast.net> I have literally spent days trying to figure out why some code was misbehaving... and it has put mehind on a significant deadline. Well it turns out that deletes were not geting casacaded through VObjectPtr's even though the kV_Casacade flag was set It was because I set the flag parameter to kV_Cascade + kV_Indexed in the constructor... Once I gor rid of the + kV_Indexed the cascade ocurred.... I realized the + kV_Indexed was probabaly not needed, but it it helped me document intent and I never imagine it could cause a problem! valentina (At least < 2) hasa lot of little quirks.... grrrrrrr - karen From sunshine at public.kherson.ua Fri Jul 23 01:24:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 17:24:29 2004 Subject: [V4RB] Frustration In-Reply-To: <072220042110.7682.41002D31000EF95900001E0222007481840B049D0199D30E0E05@comcast.net> Message-ID: On 7/23/04 12:10 AM, "keatk@comcast.net" wrote: Hi Karen, > I have literally spent days trying to figure out why some code was > misbehaving... and it has put mehind on a significant deadline. > > Well it turns out that deletes were not geting casacaded through VObjectPtr's > even though the kV_Casacade flag was set > > It was because I set the flag parameter to kV_Cascade + kV_Indexed in the > constructor... > > Once I gor rid of the + kV_Indexed the cascade ocurred.... > > I realized the + kV_Indexed was probabaly not needed, but it it helped me > document intent and I never imagine it could cause a problem! > > valentina (At least < 2) hasa lot of little quirks.... grrrrrrr I think you simply have read docs not very good. In V4RB Reference you can see VObjectPtr( Name as String, inTarget as VBaseObject, inDeletionControl as Integer ) The last parameter is DELETION CONTROL. Do you see here any mention of FLAGS ? Compare for example to VShort( Name as String, [Flags as Integer] ) So EVERYHTING here as documented. -- 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 wonderfef at noos.fr Fri Jul 23 10:01:05 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Fri Jul 23 03:01:14 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: <1E2E5BD5-DBFF-11D8-AA8B-000393DB2B60@pandora.be> Message-ID: > Especially look for > DefineEncodings in your SQLSelect, e.g. "SELECT * FROM Table WHERE > MyField='"+defineEncoding(mysearchstring,encodings.UTF8)+"'". It's > something you easily miss. Yes, I've done this. By the way: SELECT * FROM table WHERE Name LIKE 'bor?ales' NO_CASE finds the records 'Bor?ales' The trouble is not there. I do need my app to be very permissive considering e?????, etc. This still works with Unicode : SELECT * FROM table WHERE Name LIKE 'bor[e????]' no_case But this not : SELECT * FROM table WHERE Name LIKE 'bor[e????]ales' no_case Why ? Eric From sunshine at public.kherson.ua Fri Jul 23 11:05:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 03:05:23 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: Message-ID: On 7/23/04 11:01 AM, "Eric Ferrer" wrote: >> Especially look for >> DefineEncodings in your SQLSelect, e.g. "SELECT * FROM Table WHERE >> MyField='"+defineEncoding(mysearchstring,encodings.UTF8)+"'". It's >> something you easily miss. > Yes, I've done this. > By the way: > SELECT * FROM table WHERE Name LIKE 'bor?ales' NO_CASE > finds the records 'Bor?ales' > > The trouble is not there. > I do need my app to be very permissive considering e?????, etc. > This still works with Unicode : > SELECT * FROM table WHERE Name LIKE 'bor[e????]' no_case > But this not : > SELECT * FROM table WHERE Name LIKE 'bor[e????]ales' no_case > > Why ? Strange actually. -- 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 Fri Jul 23 11:32:27 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Fri Jul 23 04:32:35 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: References: Message-ID: <363C1C92-DC8B-11D8-853F-000393DB2B60@pandora.be> On 23 Jul 2004, at 10:01, Eric Ferrer wrote: >> Especially look for >> DefineEncodings in your SQLSelect, e.g. "SELECT * FROM Table WHERE >> MyField='"+defineEncoding(mysearchstring,encodings.UTF8)+"'". It's >> something you easily miss. > Yes, I've done this. > By the way: > SELECT * FROM table WHERE Name LIKE 'bor?ales' NO_CASE > finds the records 'Bor?ales' > > The trouble is not there. > I do need my app to be very permissive considering e?????, etc. > This still works with Unicode : > SELECT * FROM table WHERE Name LIKE 'bor[e????]' no_case > But this not : > SELECT * FROM table WHERE Name LIKE 'bor[e????]ales' no_case > Try this: SELECT * FROM table WHERE Name LIKE 'bor[e????]+ales' no_case or SELECT * FROM table WHERE Name LIKE 'bor[e????]{1,2}ales' no_case Because Valentina 1 doesn't use UTF internally, it sees it as 2 characters in case of ?, ?, ..., the "e" will be represented by one character, so you need to make your query "one or more" or "one or two". Let me know if it works, I'm curious :-) Best regards Peter De Berdt From peter.de.berdt at pandora.be Fri Jul 23 11:37:28 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Fri Jul 23 04:37:31 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: References: Message-ID: On 23 Jul 2004, at 10:05, Ruslan Zasukhin wrote: > On 7/23/04 11:01 AM, "Eric Ferrer" wrote: > >>> Especially look for >>> DefineEncodings in your SQLSelect, e.g. "SELECT * FROM Table WHERE >>> MyField=3D'"+defineEncoding(mysearchstring,encodings.UTF8)+"'". It's >>> something you easily miss. >> Yes, I've done this. >> By the way: >> SELECT * FROM table WHERE Name LIKE 'bor=8Eales' NO_CASE >> finds the records 'Bor=8Eales' >> >> The trouble is not there. >> I do need my app to be very permissive considering e=8E=90=91=99=9A, = etc. >> This still works with Unicode : >> SELECT * FROM table WHERE Name LIKE 'bor[e=8E=8F=90=91]' no_case >> But this not : >> SELECT * FROM table WHERE Name LIKE 'bor[e=8E=8F=90=91]ales' no_case >> >> Why ? > > Strange actually. > Once you think it over, it's not that strange actually. Valentina will see the query as follows: SELECT * FROM table WHERE Name LIKE 'bor[e=C3=A9=C3=A8=C3=AA=C3=AB]' = no_case As you can see, the =8E is represented by TWO characters and not ONE, so=20= the query won't have a result, as the regex will only look for one of=20 the characters between the brackets. I'm glad someone brought this=20 matter up, it's one of those things to remember. Best regards Peter De Berdt= From wonderfef at noos.fr Fri Jul 23 11:56:00 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Fri Jul 23 04:56:11 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: <363C1C92-DC8B-11D8-853F-000393DB2B60@pandora.be> Message-ID: > SELECT * FROM table WHERE Name LIKE 'bor[e????]+ales' no_case THANK YOU PETER ! That's *the* solution! Actually, the final statement is: SELECT * FROM table WHERE Name Like 'b[o???]+r+[e????]+[a???]+l+[e????]+s' no_case It works great! Thank you very much Eric From daniel.fleury at free.fr Fri Jul 23 15:15:01 2004 From: daniel.fleury at free.fr (Daniel FLEURY) Date: Fri Jul 23 08:15:21 2004 Subject: [V4RB] RegEx search and UTF-8 Message-ID: Hello, Me too, I have problems using regex with non-englishs characters (accents). It seems it is a bug in the old regex engine used vith valentina 1. I did some tests vith Valentina Studio 2 and no problem with it Please, Ruslan, can you update the regex engine in Valentina 1 ? ;-) Another problem for me: using V4RB 1.10, I encounter encodings problems with VText in XP, so I still use the 1.98 Best regards, Daniel > Message: 11 >Date: Fri, 23 Jul 2004 11:05:15 +0300 >From: Ruslan Zasukhin >Subject: Re: [V4RB] RegEx search and UTF-8 >To: >Message-ID: >Content-Type: text/plain; charset="ISO-8859-1" > >On 7/23/04 11:01 AM, "Eric Ferrer" wrote: > > >> Especially look for > >> DefineEncodings in your SQLSelect, e.g. "SELECT * FROM Table WHERE > >> MyField='"+defineEncoding(mysearchstring,encodings.UTF8)+"'". It's > >> something you easily miss. > > Yes, I've done this. > > By the way: > > SELECT * FROM table WHERE Name LIKE 'bor?ales' NO_CASE > > finds the records 'Bor?ales' > > > > The trouble is not there. > > I do need my app to be very permissive considering e?????, etc. > > This still works with Unicode : > > SELECT * FROM table WHERE Name LIKE 'bor[e????]' no_case > > But this not : > > SELECT * FROM table WHERE Name LIKE 'bor[e????]ales' no_case > > > > Why ? > >Strange actually. > >-- >Best regards, >Ruslan Zasukhin [ I feel the need...the need for speed ] From wonderfef at noos.fr Fri Jul 23 17:20:56 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Fri Jul 23 10:21:06 2004 Subject: [V4RB] Still Unicode troubles Message-ID: Hello all, I still have problem regarding unicode strings... I have a database whose records have been stored in Unicode on a PC. Now I need to open this same database on a Mac. The trouble is that Valentina automatically converts the string from PC to Mac, so that my Unicode encoded strings are corrupted. I thought that there was a mean to force Valentina to open a database with something like 'native OS' command for this purpose, but I can't find this in the documentation... Thanks for your help. Eric From sunshine at public.kherson.ua Fri Jul 23 20:10:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 12:10:41 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: Message-ID: On 7/23/04 6:20 PM, "Eric Ferrer" wrote: > Hello all, > > I still have problem regarding unicode strings... > > I have a database whose records have been stored in Unicode on a PC. Eric, Valentina 1.x cannot work with unicode. You must not store unicode strings into Valentina, This will glitches. > Now I need to open this same database on a Mac. > The trouble is that Valentina automatically converts the string from PC to > Mac, so that my Unicode encoded strings are corrupted. Yes! Valentina 1.x expect from you single-byte Western encoding. And yes it do conversion between mac and win encoding. DO NOT STORE into Valentina 1.x unicode strings. This will not work > I thought that there was a mean to force Valentina to open a database with > something like 'native OS' command for this purpose, but I can't find this > in the documentation... -- 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 Jul 23 20:12:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 12:12:25 2004 Subject: [V4RB] RegEx search and UTF-8 In-Reply-To: Message-ID: On 7/23/04 4:15 PM, "Daniel FLEURY" wrote: > Hello, > > Me too, I have problems using regex with > non-englishs characters (accents). It seems it is > a bug in the old regex engine used vith valentina > 1. > I did some tests vith Valentina Studio 2 and no problem with it > Please, Ruslan, can you update the regex engine in Valentina 1 ? ;-) Hmm, but Valentina Studio 2 which you mention actually is based on Valentina 1.10 > Another problem for me: using V4RB 1.10, I > encounter encodings problems with VText in XP, so > I still use the 1.98 So try 1.10. If you say that Valentina Studio works with RegEx then sounds like 1.10 fix something. Or this means that Jochen correctly send strings to Valentina engine, but you not. -- 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 wonderfef at noos.fr Fri Jul 23 19:29:28 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Fri Jul 23 12:29:36 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: Message-ID: > Valentina 1.x cannot work with unicode. > You must not store unicode strings into Valentina, > This will glitches. OK, but... >> I thought that there was a mean to force Valentina to open a database with >> something like 'native OS' command for this purpose, but I can't find this >> in the documentation... Was I dreaming? Thanks again Ruslan for your help and support. Eric From sunshine at public.kherson.ua Fri Jul 23 21:17:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 13:17:41 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: Message-ID: On 7/23/04 8:29 PM, "Eric Ferrer" wrote: Hi Eric, >> Valentina 1.x cannot work with unicode. >> You must not store unicode strings into Valentina, >> This will glitches. > OK, but... > >>> I thought that there was a mean to force Valentina to open a database with >>> something like 'native OS' command for this purpose, but I can't find this >>> in the documentation... > Was I dreaming? I have not understand question. -- 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 Sat Jul 24 10:01:58 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Sat Jul 24 03:02:05 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: References: Message-ID: On 23 Jul 2004, at 20:17, Ruslan Zasukhin wrote: > On 7/23/04 8:29 PM, "Eric Ferrer" wrote: > > Hi Eric, > >>> Valentina 1.x cannot work with unicode. >>> You must not store unicode strings into Valentina, >>> This will glitches. >> OK, but... >> >>>> I thought that there was a mean to force Valentina to open a >>>> database with >>>> something like 'native OS' command for this purpose, but I can't >>>> find this >>>> in the documentation... >> Was I dreaming? > > I have not understand question. > Eric, you have to make a module containing 2 methods: 1. FOR EACH OPERATION THAT GETS RECORDS FROM VALENTINA INTO RB Function unicode(textstring as string) As string return convertEncoding(defineEncoding(textstring,encodings.systemDefault),encod ings.UTF8) End Function 2. FOR EACH OPERATION THAT INSERTS OR UPDATES RECORDS IN VALENTINA FROM RB Function ascii(tekst as string) As string return convertEncoding(defineEncoding(tekst,encodings.UTF8),encodings.systemDef ault) End Function Then you can just do something like: myCursor=myDB.SQLSelect("SELECT * FROM Table WHERE myField='"+asciicode(myQuery)+"'") and myEditField.text=unicode(mCursor.VarCharField("MyField").value) Best regards Peter De Berdt From wonderfef at noos.fr Sat Jul 24 15:19:38 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Sat Jul 24 08:19:47 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: Message-ID: >>>> I thought that there was a mean to force Valentina to open a database with >>>> something like 'native OS' command for this purpose, but I can't find this >>>> in the documentation... >> Was I dreaming? > > I have not understand question. I meant: I thought that there was somekind of a database property setting Valentina not to 'decode' text from PC to Mac or vice-versa. I remember something like 'InNativeOS', but maybe I'm mixing up. Thanks Eric From wonderfef at noos.fr Sat Jul 24 15:21:24 2004 From: wonderfef at noos.fr (Eric Ferrer) Date: Sat Jul 24 08:21:30 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: Message-ID: > 1. FOR EACH OPERATION THAT GETS RECORDS FROM VALENTINA INTO RB [...] > 2. FOR EACH OPERATION THAT INSERTS OR UPDATES RECORDS IN VALENTINA FROM > RB I previously had method to encode/decode text while dealing with the database. I just would like to take advantage of the Unicode strings that works both on Windows and Mac with no conversion. Thank you, Peter. Eric From peter.de.berdt at pandora.be Sat Jul 24 15:35:50 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Sat Jul 24 08:35:57 2004 Subject: [V4RB] Still Unicode troubles In-Reply-To: References: Message-ID: <60BB02C3-DD76-11D8-9D9E-000393DB2B60@pandora.be> On 24 Jul 2004, at 15:21, Eric Ferrer wrote: > >> 1. FOR EACH OPERATION THAT GETS RECORDS FROM VALENTINA INTO RB > [...] >> 2. FOR EACH OPERATION THAT INSERTS OR UPDATES RECORDS IN VALENTINA >> FROM >> RB > > I previously had method to encode/decode text while dealing with the > database. > I just would like to take advantage of the Unicode strings that works > both > on Windows and Mac with no conversion. > That will be a Valentina 2 feature. I guess we'll have to live with Valentina's current limitations and convert everything (especially since the encoding is changed when transfering DBs across operating systems). Best regards Peter De Berdt From vidal_olivier at yahoo.fr Mon Jul 26 16:51:29 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Mon Jul 26 09:44:31 2004 Subject: accented characters Message-ID: <46D32038-DF13-11D8-8F39-00039310B7DA@yahoo.fr> Hi Ruslan and list, I have a problem with accented characters. How to obtain a BaseObject Method which would be an Upper-Index of field 1 (string), without accents. O? -> OU in the case fld2.setMethod (upper(fld1)), ? becomes ?, while i would like to obtain U (without accent thus) Is there a solution ? (automatic) thank you very much olivier From sunshine at public.kherson.ua Mon Jul 26 18:00:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 10:00:59 2004 Subject: accented characters In-Reply-To: <46D32038-DF13-11D8-8F39-00039310B7DA@yahoo.fr> Message-ID: On 7/26/04 5:51 PM, "olivier" wrote: > Hi Ruslan and list, > > I have a problem with accented characters. > How to obtain a BaseObject Method which would be an Upper-Index of > field 1 (string), without accents. > > O? -> OU > > in the case fld2.setMethod (upper(fld1)), ? becomes ?, while i would > like to obtain U (without accent thus) > Is there a solution ? (automatic) I think there is no such solution automatic. Hmm, and how it can be? Even when we will have unicode? It looks that to be able do this, we need add into upper() function one more parameter. Something as "IgnoreAccents". 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 fci at europa.com Mon Jul 26 08:26:01 2004 From: fci at europa.com (Lynn Fredricks) Date: Mon Jul 26 10:26:50 2004 Subject: Director Users Get Reporting Tool for up to $70 off Regular Price In-Reply-To: <46D32038-DF13-11D8-8F39-00039310B7DA@yahoo.fr> Message-ID: <20040726152610.6F4B47721C@smtp1.pacifier.net> Director Users Get Reporting Tool for up to $70 off Regular Price July 26, 2004. On-Target Reports, Inc is pleased to announce a limited time, special offer to users of Macromedia Director on its flagship product, On-Target Reports Professional 4.0. With On-Target Reports Professional 4.0, you can easily and rapidly generate attractive reports from most popular databases. Users of Macromedia Director can purchase On-Target Reports Professional 4.0 for $149, a $50 savings off of the regular price. In addition, licensed owners of Valentina for Director can get an additional $20 off during the special offer period. Owners of both products can get On-Target Reports Professional 4.0 for $129 during the special offer. On-Target Reports Professional 4.0 can generate reports from most popular databases, including FrontBase, mySQL, OpenBase, Oracle, postgreSQL, PrimeBase, Valentina, SQLite, Sybase ASE and RBDB. There is also support for any ODBC compliant data source. Features include an easy to use Reports Assistant, Graphs, data grouping, inline expressions and variables, export to PDF and display of graphics within a database. Versions are available for Windows and MacOS X. To take advantage of this special offer, visit http://www.ontargetreports.com/offer/director.htm. The special offer expires August 8, 2004. About On-Target Reports, Inc On-Target Reports, Inc makes On-Target Reports 4.0 Professional, the easiest way to extract and display database information from the most popular databases on Windows and Macintosh. On-Target Reports envisions making complex data accessible and meaningful, for business users and developers. For additional information, visit the On-Target Reports website at http://www.ontargetreports.com. From vidal_olivier at yahoo.fr Mon Jul 26 18:02:30 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Mon Jul 26 10:55:33 2004 Subject: accented characters, RegEx, temporary table In-Reply-To: References: Message-ID: <32E6D351-DF1D-11D8-8F39-00039310B7DA@yahoo.fr> > Hmm, and how it can be? Even when we will have unicode? > > It looks that to be able do this, we need add into upper() function > one more > parameter. Something as "IgnoreAccents". Right? Yes, it would be perfect ! and very very useful for languages as French or Spanish. Other questions, please : I have a database, empty. Cache memory 20mo. 2 string fields (38 characters), indexed. I add 100 000 recordings : 1 minute 20 seconds (.dat file : 4 Mo, .ind : 13.2 Mo) if encodings : time +25% ! (realbasic) Clear database I add 150 000 recordings : 2 minutes 20 seconds (.dat : 5.7 Mo, .ind : 19.5 Mo) Clear database I add 200 000 recordings : 9 minutes 2 seconds (.dat : 7.4 Mo, .ind : 25.7 Mo) If only once I begin again with a new empty database. I add 500 000 recordings : several hours ! Why from 200 000 recordings, the time is not proportional ? Is it always necessary to make this type of operations several times (eg 5 X 100 000 additions of recordings) ? - operations with RegEx are they relatively fast ? Are they really practicable that 300 or 500 000 recordings ? (with a string of 40 characters) -last question : I have a database of adresses. This db can reach more than a million adresses. Let us can be a search on a temporary table ? : -the customer type at first the zip code (postcode) We obtain a first list sharply less important than the first one (eg 100 000 adresses) -the customer makes now a search on a street. So that it is fast, the search would have to can be made on group of recordings corresponding to the first search on the zip code (on 100 000 recordings), and not on full database (1 000 000 recordings). it is possible with valentina ? thank you very much Ruslan, olivier From sunshine at public.kherson.ua Mon Jul 26 19:16:01 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 11:16:09 2004 Subject: RTF editfields in Valentina? In-Reply-To: Message-ID: On 7/26/04 6:35 PM, "info@learn.technoculture.net" wrote: > Name: Brian Alleyne > > Question regarding: v4rb > > Hi > > I am building a app in RB 5.5 that will have a a database of large text > objects in RTF format; I will want to do searchs on the text and generate > docments with rich formatting. Can Valentina handle this? Hi Brian, I have CC this to Valentina list for advice of other V4RB developers. I think in the worse case you can split you text on 2 parts: - text itself and store it in TEXT field. - style info and store it in BLOB 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 jda at his.com Mon Jul 26 12:44:35 2004 From: jda at his.com (jda) Date: Mon Jul 26 11:44:41 2004 Subject: RTF editfields in Valentina? In-Reply-To: References: Message-ID: > > > I am building a app in RB 5.5 that will have a a database of large text >> objects in RTF format; I will want to do searchs on the text and generate >> docments with rich formatting. Can Valentina handle this? > >Hi Brian, > >I have CC this to Valentina list for advice of other V4RB developers. > >I think in the worse case you can split you text on 2 parts: > - text itself and store it in TEXT field. > - style info and store it in BLOB field. > I use the method Ruslan outlines. I generate RTF from this info when needed in RB itself. If you store the text as RTF (e.g. in a VText field) your search strings will have to account for the embedded RTF tokens, objects, etc. Note: I rely heavily on raw Mac style info, but RS is deprecating this. Some day it may go away, to be replaced by something (something better than the new style info object, hopefully). Jon From sunshine at public.kherson.ua Mon Jul 26 20:00:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 12:00:33 2004 Subject: accented characters, RegEx, temporary table In-Reply-To: <32E6D351-DF1D-11D8-8F39-00039310B7DA@yahoo.fr> Message-ID: On 7/26/04 7:02 PM, "olivier" wrote: >> Hmm, and how it can be? Even when we will have unicode? >> >> It looks that to be able do this, we need add into upper() function >> one more >> parameter. Something as "IgnoreAccents". Right? > > Yes, it would be perfect ! and very very useful for languages as French > or Spanish. We will try add this for 2.0. > Other questions, please : > > I have a database, empty. Cache memory 20mo. 2 string fields (38 > characters), indexed. > > I add 100 000 recordings : 1 minute 20 seconds (.dat file : 4 Mo, .ind > : 13.2 Mo) > if encodings : time +25% ! (realbasic) > Clear database > I add 150 000 recordings : 2 minutes 20 seconds (.dat : 5.7 Mo, .ind : > 19.5 Mo) > Clear database > I add 200 000 recordings : 9 minutes 2 seconds (.dat : 7.4 Mo, .ind : > 25.7 Mo) > > If only once I begin again with a new empty database. > I add 500 000 recordings : several hours ! > > Why from 200 000 recordings, the time is not proportional ? > Is it always necessary to make this type of operations several times > (eg 5 X 100 000 additions of recordings) ? I think the main reason here -> you get cache full with 200,000 records. I think that if you will set cache in 40MB, then you will see fast work up to 400,000 records. Yes, I also have see that on such huge Add operations can be made improvements. Also you can try: set flag INDEXED = false. add many records set flag = true. This means that you will add records without adding them into index on each Add(). It is much much faster to build index once then change it a lots of times. > - operations with RegEx are they relatively fast ? Yes. Because Valentina keep fields in separate logical files. > Are they really practicable that 300 or 500 000 recordings ? (with a > string of 40 characters) Let's count: 40 bytes * 500,000 recs = 20MB per field. Today HDD can read file with speed 20-30MB. So we need about 1 second to load into RAM. And some time to do Regex itself. In case file already in cache then we can reduce one second. > -last question : > I have a database of adresses. This db can reach more than a million > adresses. > Let us can be a search on a temporary table ? : > > -the customer type at first the zip code (postcode) > We obtain a first list sharply less important than the first one (eg > 100 000 adresses) > > -the customer makes now a search on a street. So that it is fast, the search > would have to can be made on group of recordings corresponding to the first > search on the zip code (on 100 000 recordings), and not on full database (1 > 000 000 recordings). it is possible with valentina ? Guys, for Valentina this have no sense. Okay you say you have found set of records for f1. Now you want search f2. If it is indexed, then set of f1 DO NOT help to search on index. Set can help only in case if f2 is NOT indexed. Then yes, we reduce the number of loaded records (in ideal, here also exists cases). I believe both your fields will be indexed. So no sense using set. BTW, in Valentina/V4RB 2.0 we have introduce new functions Vfield.Find(). They really can help for such tasks. -- 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 Tue Jul 27 05:52:26 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Mon Jul 26 22:45:25 2004 Subject: accented characters, SOUNDEX In-Reply-To: References: Message-ID: <5FD9E068-DF80-11D8-9B15-00039310B7DA@yahoo.fr> Hi Ruslan and list, >>> It looks that to be able do this, we need add into upper() function >>> one more >>> parameter. Something as "IgnoreAccents". Right? > > We will try add this for 2.0. great! > I think that if you will set cache in 40MB, then you will see fast > work up > to 400,000 records. Ah, I indeed thought that it was a problem of cache. But, in another e-mail, you said that it was effective, in Valentina 1, to put the cache in no more than 20 Mb? Valentina supports soundex? It seems really very practical. thank you Ruslan, olivier From sunshine at public.kherson.ua Tue Jul 27 07:06:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 23:06:22 2004 Subject: accented characters, SOUNDEX In-Reply-To: <5FD9E068-DF80-11D8-9B15-00039310B7DA@yahoo.fr> Message-ID: On 7/27/04 6:52 AM, "olivier" wrote: >> I think that if you will set cache in 40MB, then you will see fast >> work up >> to 400,000 records. > > Ah, I indeed thought that it was a problem of cache. > But, in another e-mail, you said that it was effective, in Valentina 1, > to put the cache in no more than 20 Mb? I think for such ONE-TIME operations of batch Adds or Import, You can set cache even 50-100MB if you can. After operation, again do shutdown and init with 20MB. > Valentina supports soundex? > It seems really very practical. What is soundex? -- 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 david.hood at stonebow.otago.ac.nz Tue Jul 27 16:20:29 2004 From: david.hood at stonebow.otago.ac.nz (David Hood) Date: Mon Jul 26 23:20:43 2004 Subject: accented characters, SOUNDEX In-Reply-To: References: Message-ID: <4B381A24-DF84-11D8-BA04-0050E4AEF16D@stonebow.otago.ac.nz> On 27/07/2004, at 4:06 PM, Ruslan Zasukhin wrote: > What is soundex? > Soundex is a set of simple rules for identifying variations in English language names where the name is not spelt in a consistent way. It was developed for the U.S. census in the late 19th Century (well before the modern computer), and is still commonly used by genealogists tracing family histories. Some people also use it for dictionary style look-ups, however I would not rate it as the best tool for this task. Basically it codes the consonants of a word so that you can identify possible variations on that word which share the same code. For more detail I'll refer people to http://caversham.otago.ac.nz/files/working/ctp060902.pdf which is some notes on phonetic matching I wrote for a project I work on. This kind of thing is pretty easy to implement as a function in any kind of database - you just have a field that stores the encoded form of the word. David Hood From vidal_olivier at yahoo.fr Tue Jul 27 06:51:28 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Mon Jul 26 23:44:28 2004 Subject: SOUNDEX In-Reply-To: References: Message-ID: <9F4BCA42-DF88-11D8-9B15-00039310B7DA@yahoo.fr> > What is soundex? It is the (simple) algorithm which allows to examine in a phonetic way. It is useful especially for the family names. it was invented in 1918 for the census of American population. He allows to examine not names themselves but their consonance. Very useful when there are spelling mistakes for example. There are several variants of Soundex but the original algorithm (very simple) is always very used (we find easily this algorithm on internet). it is integrated, for example, into oracle or SQL server. Eg, in French, if we look for the 'GROS' name, for soundex find: - GRAU - GROS - GROSS - GROZ - GRAS - GRASS In Russia, I believe that it was improved by Vladimir Levenshtein. In France, there are variants adapted to our pronunciation (Phonex for example). In fact, we can easily program it there realbasic But maybe that he it would be faster if it was integrated into Valentina? olivier http://www.ibphoenix.com/main.nfs?a=ibphoenix&s=1090024022: 37902&page=ibp_howto4 http://www.developersdomain.com/vb/articles/soundex.htm http://www.merriampark.com/ld.htm http://sqlpro.developpez.com/Soundex/SQL_AZ_soundex.html From sunshine at public.kherson.ua Tue Jul 27 08:14:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 00:14:58 2004 Subject: SOUNDEX In-Reply-To: <9F4BCA42-DF88-11D8-9B15-00039310B7DA@yahoo.fr> Message-ID: On 7/27/04 7:51 AM, "olivier" wrote: >> What is soundex? > > It is the (simple) algorithm which allows to examine in a phonetic way. > It is useful especially for the family names. it was invented in 1918 > for the census of American population. > > He allows to examine not names themselves but their consonance. > Very useful when there are spelling mistakes for example. > > There are several variants of Soundex but the original algorithm (very > simple) is always very used (we find easily this algorithm on > internet). > it is integrated, for example, into oracle or SQL server. > > Eg, in French, if we look for the 'GROS' name, for soundex find: > - GRAU > - GROS > - GROSS > - GROZ > - GRAS > - GRASS > > In Russia, I believe that it was improved by Vladimir Levenshtein. > In France, there are variants adapted to our pronunciation (Phonex for > example). In fact, we can easily program it there realbasic > > But maybe that he it would be faster if it was integrated into > Valentina? I see guys, So this affect searches? We need way to say somehow WHERE name = 'GROS' using soundex Right? What syntax Is used in SQL Server ? Do you have info if this can be indexed search? Or this is always scan like "LIKE" ? -- 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 Tue Jul 27 08:06:35 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Tue Jul 27 00:59:34 2004 Subject: SOUNDEX In-Reply-To: References: Message-ID: <1D923F14-DF93-11D8-9B15-00039310B7DA@yahoo.fr> > So this affect searches? > > We need way to say somehow > > WHERE name = 'GROS' using soundex > Right? > yes, I think. > What syntax Is used in SQL Server ? I don't know. > Do you have info if this can be indexed search? > Or this is always scan like "LIKE" ? > I don't know. Until soundex maybe a day implemented in Valentina, here is how I planned to make : BoNameFamily : - NameField (string, indexed) - NameSoundexField (string, indexed) In every addition or import of Family Name, its soundex code is calculated is recorded in the field NameSoundex. When the customer makes a search, it is enough to calculate the soundex code of the wanted name and to compare it with fields nameSoundex of the table. The field being indexed and as is a criterion of equality, the search for equivalent phonetic names should be very fast. eg Search on "GROS" Calculation of soundex code of "GROS" -> code A456 WHERE name="GROS" --> WHERE nameSoundex="A456" Finally, it is the calculation of the soundex code that is the longest, I think. It is maybe the algorithm of calculation of the soundex that could be optimized in Valentina. At the moment, we have to make it with Realbasic (for example), who is maybe much slower than Valentina. olivier From vidal_olivier at yahoo.fr Tue Jul 27 08:20:39 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Tue Jul 27 01:13:38 2004 Subject: SOUNDEX In-Reply-To: References: Message-ID: <14574FA2-DF95-11D8-9B15-00039310B7DA@yahoo.fr> > > What syntax Is used in SQL Server ? > SQL Server : The function SOUNDEX () return the basic code of Soundex. eg To search persons whose name has the same consonance as a typed name we can, for example, use the following code SQL: Select * from T_PERSONNE? Where SOUNDEX(:The Name) = SOUNDEX(T_PERSONNE.NOM_PERS) olivier From sunshine at public.kherson.ua Tue Jul 27 11:20:03 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 03:20:10 2004 Subject: SOUNDEX In-Reply-To: <1D923F14-DF93-11D8-9B15-00039310B7DA@yahoo.fr> Message-ID: On 7/27/04 9:06 AM, "olivier" wrote: > Until soundex maybe a day implemented in Valentina, here is how I > planned to make : > > BoNameFamily : > > - NameField (string, indexed) > - NameSoundexField (string, indexed) > > In every addition or import of Family Name, its soundex code is > calculated is recorded in the field NameSoundex. > > When the customer makes a search, it is enough to calculate the soundex > code of the wanted name and to compare it with fields nameSoundex of > the table. > > The field being indexed and as is a criterion of equality, the search > for equivalent phonetic names should be very fast. > > eg > Search on "GROS" > Calculation of soundex code of "GROS" -> code A456 > WHERE name="GROS" --> WHERE nameSoundex="A456" > > Finally, it is the calculation of the soundex code that is the longest, > I think. > > It is maybe the algorithm of calculation of the soundex that could be > optimized in Valentina. > At the moment, we have to make it with Realbasic (for example), who is > maybe much slower than Valentina. I think such way has no speed penalty as I see. It will not slow down a lots your INSERTS. And search absolutely will not be slow down. you once calculate code in RB, and then vl use it for search in million of records. -- 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 Jul 27 11:21:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 03:21:19 2004 Subject: SOUNDEX In-Reply-To: <14574FA2-DF95-11D8-9B15-00039310B7DA@yahoo.fr> Message-ID: On 7/27/04 9:20 AM, "olivier" wrote: >> >> What syntax Is used in SQL Server ? >> > SQL Server : > > The function SOUNDEX () return the basic code of Soundex. > > eg > To search persons whose name has the same consonance as a typed name we > can, for example, use the following code SQL: > > Select * from T_PERSONNE? > Where SOUNDEX(:The Name) = SOUNDEX(T_PERSONNE.NOM_PERS) This will be SCAN, Oliver. Your idea to pre-calculate and STORE into table code, Will speed up you. This is general TIP: precalculation. -- 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 Tue Jul 27 11:37:18 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Tue Jul 27 04:37:50 2004 Subject: SOUNDEX In-Reply-To: Message-ID: Hi Ruslan, on 27-07-2004 10:21, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >> The function SOUNDEX () return the basic code of Soundex. >> >> eg >> To search persons whose name has the same consonance as a typed name we >> can, for example, use the following code SQL: >> >> Select * from T_PERSONNE? >> Where SOUNDEX(:The Name) = SOUNDEX(T_PERSONNE.NOM_PERS) > > This will be SCAN, Oliver. > > > Your idea to pre-calculate and STORE into table code, > Will speed up you. > > This is general TIP: precalculation. > please include this Soundex() function in your methods library so we can create indexed method fields like in f.SetMethod('Soundex(namefield)') Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Tue Jul 27 13:04:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 05:04:31 2004 Subject: SOUNDEX In-Reply-To: Message-ID: On 7/27/04 12:37 PM, "erne" wrote: > Hi Ruslan, > > on 27-07-2004 10:21, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > >>> The function SOUNDEX () return the basic code of Soundex. >>> >>> eg >>> To search persons whose name has the same consonance as a typed name we >>> can, for example, use the following code SQL: >>> >>> Select * from T_PERSONNE? >>> Where SOUNDEX(:The Name) = SOUNDEX(T_PERSONNE.NOM_PERS) >> >> This will be SCAN, Oliver. >> >> >> Your idea to pre-calculate and STORE into table code, >> Will speed up you. >> >> This is general TIP: precalculation. >> > > please include this Soundex() function in your methods library > so we can create indexed method fields like in > f.SetMethod('Soundex(namefield)') Yes this is 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 rjb at rz.uni-potsdam.de Tue Jul 27 12:00:55 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Tue Jul 27 05:05:11 2004 Subject: SOUNDEX In-Reply-To: References: Message-ID: >Hi Ruslan, > >on 27-07-2004 10:21, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > >>> The function SOUNDEX () return the basic code of Soundex. >>> >>> eg >>> To search persons whose name has the same consonance as a typed name we >>> can, for example, use the following code SQL: >>> >>> Select * from T_PERSONNE >>> Where SOUNDEX(:The Name) = SOUNDEX(T_PERSONNE.NOM_PERS) >> >> This will be SCAN, Oliver. >> >> >> Your idea to pre-calculate and STORE into table code, >> Will speed up you. >> >> This is general TIP: precalculation. >> > >please include this Soundex() function in your methods library >so we can create indexed method fields like in >f.SetMethod('Soundex(namefield)') > > >Cool Runnings, >Erne. yes. and plan an option to specify language. From vidal_olivier at yahoo.fr Tue Jul 27 12:26:03 2004 From: vidal_olivier at yahoo.fr (olivier) Date: Tue Jul 27 05:19:05 2004 Subject: SOUNDEX In-Reply-To: References: Message-ID: <5CA72A62-DFB7-11D8-9B15-00039310B7DA@yahoo.fr> > > This will be SCAN, Oliver. > > > Your idea to pre-calculate and STORE into table code, > Will speed up you. > > This is general TIP: precalculation. > > yes, true, Ruslan. thank you very much olivier From chuck at mediamacros.com Tue Jul 27 14:25:39 2004 From: chuck at mediamacros.com (Chuck Neal) Date: Tue Jul 27 13:22:42 2004 Subject: GetPicture/Trim Message-ID: <000e01c47407$1e5b0090$b900a8c0@batcomputer> Has there been any solution to the problem of setPicture/getPicture trimming the white space off of an image? I ran a test. I created a 400X400 jpeg with a white background and a small 100X100 image in the middle. I imported into Director and in the code it shows the correct member size of 400X400 before using setPicture. When I use getPicture to immediately retrieve the image, it only brings out the 100X100 image. Its as if it is running or using trimWhiteSpace() on either the saving or loading of the data. Blobs are a bit out of the question as this project has some very large images and the file size is extremely important. Has anyone found any kind of work around for this? Thanks. -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com From chuck at mediamacros.com Tue Jul 27 14:42:12 2004 From: chuck at mediamacros.com (Chuck Neal) Date: Tue Jul 27 13:39:03 2004 Subject: GetPicture/Trim In-Reply-To: <000e01c47407$1e5b0090$b900a8c0@batcomputer> Message-ID: <001901c47409$6e8e3e40$b900a8c0@batcomputer> Still hoping there is a better answer, but if anyone is interested this seems to do the trick. Do this to the image before storing... --vimage is the cast member to save --we have to actually use pixel #2 from the left as Valentina has a habit --of taking row 1 (0 for getPixel/setPixel) and storing it on the right --top corner, if its white make it slightly "off white" c = vImage.image.getPixel(1,0) if c = rgb(255,255,255) then vImage.image.setPixel(1,0, rgb(1,1,1)) end if --bottom corner, if its white, make it slightly "off white" c = vImage.image.getPixel(vImage.width - 1, vImage.height - 1) if c = rgb(255,255,255) then vImage.image.setPixel(vImage.width-1, vImage.height - 1, rgb(1,1,1)) end if Seems to do the job here at least. :) -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Chuck Neal Sent: Tuesday, July 27, 2004 2:26 PM To: valentina@lists.macserve.net Subject: GetPicture/Trim Has there been any solution to the problem of setPicture/getPicture trimming the white space off of an image? I ran a test. I created a 400X400 jpeg with a white background and a small 100X100 image in the middle. I imported into Director and in the code it shows the correct member size of 400X400 before using setPicture. When I use getPicture to immediately retrieve the image, it only brings out the 100X100 image. Its as if it is running or using trimWhiteSpace() on either the saving or loading of the data. Blobs are a bit out of the question as this project has some very large images and the file size is extremely important. Has anyone found any kind of work around for this? Thanks. -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From barney at custombased.com Wed Jul 28 14:40:06 2004 From: barney at custombased.com (Barney) Date: Tue Jul 27 21:42:18 2004 Subject: Err = DeleteAll() problem Message-ID: Hi, V4RB.rbx both Windows and Mac IDE latest plugin downloaded Cur = APP.DB.SQLSelect("Select * from Table1") If Cur.RecordCount > 0 then Err = Cur.DeleteAll() App.DB.Flush End if This works fine but if you narrow your search down... Cur = APP.DB.SQLSelect("Select * from Table1 Where name = 'John' ") If Cur.RecordCount > 0 then Err = Cur.DeleteAll() App.DB.Flush If Cur.RecordCount > 0 then This will only delete the first record of cursor ? Step thru running code in IDE and the cur has deleted all, but upon opening the database again, all the records are there again ? Is this a bug ? Can send project if need be. Thank you. Barney From sunshine at public.kherson.ua Wed Jul 28 07:51:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 23:51:56 2004 Subject: Err = DeleteAll() problem In-Reply-To: Message-ID: On 7/28/04 5:40 AM, "Barney" wrote: > Hi, > > V4RB.rbx both Windows and Mac IDE latest plugin downloaded > > Cur = APP.DB.SQLSelect("Select * from Table1") > If Cur.RecordCount > 0 then > Err = Cur.DeleteAll() > App.DB.Flush > End if > > This works fine but if you narrow your search down... > > Cur = APP.DB.SQLSelect("Select * from Table1 Where name = 'John' ") > If Cur.RecordCount > 0 then > Err = Cur.DeleteAll() > App.DB.Flush > If Cur.RecordCount > 0 then > > This will only delete the first record of cursor ? > > Step thru running code in IDE and the cur has deleted all, but > upon opening the database again, all the records are there again ? > > Is this a bug ? Can send project if need be. Hi Barnet, Try do next. -- Open your db in viSQL. -- do query as DELETE FROM T WHEE name = 'John' Yes of course send me something. Also check db with diagnose. Also try rebuild indexes. -- 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 Jul 28 09:43:45 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Wed Jul 28 02:44:20 2004 Subject: Err = DeleteAll() problem In-Reply-To: Message-ID: Hello, on 28-07-2004 4:40, Barney at barney@custombased.com wrote: > Hi, > > V4RB.rbx both Windows and Mac IDE latest plugin downloaded > > Cur = APP.DB.SQLSelect("Select * from Table1") > If Cur.RecordCount > 0 then > Err = Cur.DeleteAll() > App.DB.Flush > End if > > This works fine but if you narrow your search down... > this seems to be a query for a read only cursor... can we successfully delete all even if cursor is a read only one? this is odd Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From peter.de.berdt at pandora.be Wed Jul 28 09:55:50 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Wed Jul 28 02:55:56 2004 Subject: Err = DeleteAll() problem In-Reply-To: References: Message-ID: <8B426211-E06B-11D8-8F59-000393DB2B60@pandora.be> On 28 Jul 2004, at 09:43, erne wrote: > Hello, > > on 28-07-2004 4:40, Barney at barney@custombased.com wrote: > >> Hi, >> >> V4RB.rbx both Windows and Mac IDE latest plugin downloaded >> >> Cur = APP.DB.SQLSelect("Select * from Table1") >> If Cur.RecordCount > 0 then >> Err = Cur.DeleteAll() >> App.DB.Flush >> End if >> >> This works fine but if you narrow your search down... >> > > this seems to be a query for a read only cursor... > can we successfully delete all even if cursor is a read only one? > > this is odd > This is in fact true, I also had to go through all my SQLSelects in one of my older apps (that used V4RB 1.8) and changed them to: Cur=App.DB.SQLSelect("SELECT blablabla",kv_client,kv_readwrite,kv_random) The strange thing is that some operations (although they normally shouldn't) do work when you're not adding the extra parameters. Best regards Peter De Berdt From sunshine at public.kherson.ua Wed Jul 28 11:44:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 28 03:44:47 2004 Subject: Err = DeleteAll() problem In-Reply-To: Message-ID: On 7/28/04 10:43 AM, "erne" wrote: > Hello, > > on 28-07-2004 4:40, Barney at barney@custombased.com wrote: > >> Hi, >> >> V4RB.rbx both Windows and Mac IDE latest plugin downloaded >> >> Cur = APP.DB.SQLSelect("Select * from Table1") >> If Cur.RecordCount > 0 then >> Err = Cur.DeleteAll() >> App.DB.Flush >> End if >> >> This works fine but if you narrow your search down... >> > > this seems to be a query for a read only cursor... > can we successfully delete all even if cursor is a read only one? > > this is odd Of course we cannot delete -- 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 Jul 28 11:45:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 28 03:45:53 2004 Subject: Err = DeleteAll() problem In-Reply-To: <8B426211-E06B-11D8-8F59-000393DB2B60@pandora.be> Message-ID: On 7/28/04 10:55 AM, "Peter De Berdt" wrote: >>> V4RB.rbx both Windows and Mac IDE latest plugin downloaded >>> >>> Cur = APP.DB.SQLSelect("Select * from Table1") >>> If Cur.RecordCount > 0 then >>> Err = Cur.DeleteAll() >>> App.DB.Flush >>> End if >>> >>> This works fine but if you narrow your search down... >>> >> >> this seems to be a query for a read only cursor... >> can we successfully delete all even if cursor is a read only one? >> >> this is odd >> > This is in fact true, I also had to go through all my SQLSelects in one > of my older apps (that used V4RB 1.8) and changed them to: > > Cur=App.DB.SQLSelect("SELECT > blablabla",kv_client,kv_readwrite,kv_random) > > The strange thing is that some operations (although they normally > shouldn't) do work when you're not adding the extra parameters. For example, Peter? I hear about such problem first time. -- 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 Wed Jul 28 12:02:38 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Wed Jul 28 05:02:42 2004 Subject: Err = DeleteAll() problem In-Reply-To: References: Message-ID: <41F5D0D4-E07D-11D8-86DE-000393DB2B60@pandora.be> On 28 Jul 2004, at 10:45, Ruslan Zasukhin wrote: > On 7/28/04 10:55 AM, "Peter De Berdt" > wrote: > >>>> V4RB.rbx both Windows and Mac IDE latest plugin downloaded >>>> >>>> Cur = APP.DB.SQLSelect("Select * from Table1") >>>> If Cur.RecordCount > 0 then >>>> Err = Cur.DeleteAll() >>>> App.DB.Flush >>>> End if >>>> >>>> This works fine but if you narrow your search down... >>>> >>> >>> this seems to be a query for a read only cursor... >>> can we successfully delete all even if cursor is a read only one? >>> >>> this is odd >>> >> This is in fact true, I also had to go through all my SQLSelects in >> one >> of my older apps (that used V4RB 1.8) and changed them to: >> >> Cur=App.DB.SQLSelect("SELECT >> blablabla",kv_client,kv_readwrite,kv_random) >> >> The strange thing is that some operations (although they normally >> shouldn't) do work when you're not adding the extra parameters. > > For example, Peter? > > I hear about such problem first time. > > Oh my, I'd have to dig deep into my archived projects to find it. I do recall it had to do with updating a cursor and a certain kind of field (VBoolean if my memory doesn't trick me). It was a combination of elements. Anyway, going through all the cursors and changing the sql statement to allow readwrite solved it, so I just let it be (at that time, for some reason, all my e-mails to the list were rejected by SpamCop, seems it's fixed now). I don't have the time for the moment, but if I have a spare moment, I'll try to look it up for you. Best regards Peter De Berdt From bmurf at comcast.net Wed Jul 28 10:57:42 2004 From: bmurf at comcast.net (Brendan Murphy) Date: Wed Jul 28 10:57:50 2004 Subject: Encryption and Win32 Message-ID: Using: RB 5.5.3 Valentina 1.10 I am calling SetStructureEncryption in my program to encrypt my database. Everything works as stated in the manual for OS X but fails for Win32. I can create and open a database made on OS X. I can even open a database created under Win32 on OS X. The problem comes when I try to open the database with Win32 (it doesn't matter under which OS the database was created). Are there any known problems with encryption under windows? From sunshine at public.kherson.ua Wed Jul 28 23:54:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 28 15:54:22 2004 Subject: Encryption and Win32 In-Reply-To: Message-ID: On 7/28/04 6:57 PM, "Brendan Murphy" wrote: > Using: > RB 5.5.3 > Valentina 1.10 > > I am calling SetStructureEncryption in my program to encrypt my > database. Everything works as stated in the manual for OS X but > fails for Win32. I can create and open a database made on OS X. I > can even open a database created under Win32 on OS X. The problem > comes when I try to open the database with Win32 (it doesn't > matter under which OS the database was created). > > Are there any known problems with encryption under windows? Hi Breandan, As far as I know, AT LEAST Jochen have not see any problems on Windows side with Valentina Studio. Jochen? Brendan, please try to play with dbs and encryption using Vstudio. And as I know other developers use encryption quite often. -- 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 gunnarswan at PracticeToPass.com Wed Jul 28 14:31:37 2004 From: gunnarswan at PracticeToPass.com (Gunnar Swan) Date: Wed Jul 28 16:30:20 2004 Subject: Encryption and Win32 Message-ID: <200407282130.i6SLUDZ1032387@practicetopass.com> Set Structure Encryption works for me. I have problems with the return value of the function not displaying that the function was successful or not. I do have problems with SetFieldEncryption, and had to resort to using AES encryption and b64 encoding, then placing encrypted data in the field. Ruslan, Did the encryption functions returning correct values get fixed? Gunnar 7/28/04 1:54:15 PM, Ruslan Zasukhin wrote: >On 7/28/04 6:57 PM, "Brendan Murphy" wrote: > >> Using: >> RB 5.5.3 >> Valentina 1.10 >> >> I am calling SetStructureEncryption in my program to encrypt my >> database. Everything works as stated in the manual for OS X but >> fails for Win32. I can create and open a database made on OS X. I >> can even open a database created under Win32 on OS X. The problem >> comes when I try to open the database with Win32 (it doesn't >> matter under which OS the database was created). >> >> Are there any known problems with encryption under windows? > >Hi Breandan, > >As far as I know, AT LEAST Jochen have not see any problems on Windows side >with Valentina Studio. > >Jochen? > > >Brendan, please try to play with dbs and encryption using Vstudio. > >And as I know other developers use encryption quite often. > > >-- >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 mailing list >Valentina@lists.macserve.net >http://lists.macserve.net/mailman/listinfo/valentina > Best Regards, Gunnar Swan Practice To Pass 1.888.307.2050 http://www.PracticeToPass.Com From sunshine at public.kherson.ua Thu Jul 29 01:00:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 28 17:00:32 2004 Subject: Encryption and Win32 In-Reply-To: <200407282130.i6SLUDZ1032387@practicetopass.com> Message-ID: On 7/29/04 12:31 AM, "Gunnar Swan" wrote: Hi Gunnar, > Set Structure Encryption works for me. ok > I have problems with the return value of the function not displaying that the > function was successful or not. > I do have problems with SetFieldEncryption, and had to resort to using AES > encryption and b64 encoding, then placing encrypted data in the field. > Ruslan, Did the encryption functions returning correct values get fixed? You mean function "encrypt()" which we can use in BaseObject methods? -- 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 j.peters at valentina-db.de Thu Jul 29 07:21:41 2004 From: j.peters at valentina-db.de (Jochen Peters) Date: Thu Jul 29 00:21:51 2004 Subject: Encryption and Win32 In-Reply-To: <20040728220041.19E3A1D2B60@edison.macserve.net> References: <20040728220041.19E3A1D2B60@edison.macserve.net> Message-ID: <15590.62.154.199.179.1091078501.squirrel@webmail3.server-einstellung.de> Hi Breandan, >As far as I know, AT LEAST Jochen have not see any problems on Windows side >with Valentina Studio. > >Jochen? Yes - in vStudio it works. But note: I use exceptions instead of return values here - so - this might be different from the RB approach. >Brendan, please try to play with dbs and encryption using Vstudio. Yes Brendan. Please test your db with vStudio. -- Best regards, Jochen Peters PIIT GmbH -------------------------- http://www.valentina-db.de From gunnarswan at PracticeToPass.com Thu Jul 29 00:01:00 2004 From: gunnarswan at PracticeToPass.com (Gunnar Swan) Date: Thu Jul 29 01:59:44 2004 Subject: Encryption and Win32 Message-ID: <200407290659.i6T6xbJx010368@practicetopass.com> >You mean function "encrypt()" which we can use in BaseObject methods? No. Problem is with SetFieldEncryption From bmurf at comcast.net Thu Jul 29 10:26:41 2004 From: bmurf at comcast.net (Brendan Murphy) Date: Thu Jul 29 10:26:53 2004 Subject: Encryption and Win32 In-Reply-To: <20040728220040.A701D1D2B5E@edison.macserve.net> References: <20040728220040.A701D1D2B5E@edison.macserve.net> Message-ID: I solved the problem. Valentina seems to be very picky and dies in ungracious ways if every little detail isn't just right (in initializing valentina). For example I was getting an error code of 2 after trying to open a database. So encryption wasn't the root problem. From zavpublic at mac.com Thu Jul 29 09:02:29 2004 From: zavpublic at mac.com (Zav - Alex Zavatone) Date: Thu Jul 29 11:02:39 2004 Subject: Encryption and Win32 In-Reply-To: References: <20040728220040.A701D1D2B5E@edison.macserve.net> Message-ID: On Jul 29, 2004, at 8:26 AM, Brendan Murphy wrote: > I solved the problem. Valentina seems to be very picky and dies in > ungracious ways if every little detail isn't just right (in > initializing valentina). For example I was getting an error code > of 2 after trying to open a database. So encryption wasn't the > root problem. This still hasn't been addressed? One would think with all the stink I raised, that the initialization routine would have more error checking and error case handling. Putting some safety on the initialization routines would be very nice for users who like to play around and may easily do things that are not exactly kosher. Put some cushions on those sharp edges please. - Zav Starring in the Tony award winning play, Lingo, the musical. From sunshine at public.kherson.ua Thu Jul 29 19:11:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 29 11:11:57 2004 Subject: Encryption and Win32 In-Reply-To: Message-ID: On 7/29/04 6:26 PM, "Brendan Murphy" wrote: > I solved the problem. Valentina seems to be very picky and dies in > ungracious ways if every little detail isn't just right (in > initializing valentina). > For example I was getting an error code of 2 after trying to open a database. > So encryption wasn't the root problem. Hi Brendan, Can you explain in more details where was problem and how to reproduce? So problem in Init() or in Open() What was your mistake? And what you have change in code to fix it? ------- I do not think that this is the same problem, Zav. Your killer-bug I have fix few months ago after somebody have explain in detailed steps how to reproduce 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 zavpublic at mac.com Thu Jul 29 09:21:33 2004 From: zavpublic at mac.com (Zav - Alex Zavatone) Date: Thu Jul 29 11:21:53 2004 Subject: Encryption and Win32 In-Reply-To: References: Message-ID: <5B6FFD30-E17B-11D8-A29E-000393CFECE6@mac.com> On Jul 29, 2004, at 9:11 AM, Ruslan Zasukhin wrote: > > ------- > I do not think that this is the same problem, Zav. > Your killer-bug I have fix few months ago after somebody have explain > in > detailed steps how to reproduce it. That's great news man. Glad to hear it. - Zav Starring in the Tony award winning play, Lingo, the musical. From sunshine at public.kherson.ua Fri Jul 30 08:48:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 30 00:49:06 2004 Subject: getting started In-Reply-To: <3963183.1091162666001.JavaMail.root@rowlf.psp.pas.earthlink.net> Message-ID: On 7/30/04 7:44 AM, "Anna Kritselis" wrote: > Windows is still not recognizing a vdb - I'm not sure that I actually > 'installed' Valentina. Not understand. Then how you was able run tutorial? > I copied the zip, unzipped it, then copied the files > onto my development machine. I placed the plugin in the plugins folder. V4RB.rbx file into plugin folder, yes? That is all. Now when you run REALbasic, it should see Valentina. You can simply open any project in RB and simply type ValentinaInit() Code completion should give you prompt. When full name is entered and selected then in TIP window you should see declaration of this function. > I'm not sure if it has something to do with the logo graphic being in EPS > format. No no no. > I can get the RealBasic icon, rbd extension with 'REAL Database file' > in Windows explorer, but I get a generic file format for the Valentina files. Ahhh! But V4RB do not have own icons! REALbasic is ready application. Yes it MUST have own icons, but V4RB is just SDK. You will create YOUR application using V4RB. You can assign your own extensions for Valentina db files in YOUR application. So YOUR application will have unique extensions and therefore you can make your own unique icons. Until you assign your own extensions, Valentina db files will not have icons. > I am trying to migrate my access mdb and have somewhat figured out the > ODBC_Valentina utility. Does this utility transfer data only? Do I have to > have a predefined Valentina database with my mdb tables already existing? Yes, it is transfer data only. You need prepare empty database with tables and fields before. Btw, since you work mainly on Windows, I recommend you download and use also Valentina Studio -- GUI browser for Valentina viSQL utility. -- 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 delong at redcort.com Fri Jul 30 14:50:25 2004 From: delong at redcort.com (Keith DeLong) Date: Fri Jul 30 16:50:57 2004 Subject: [V4RB] Semaphores and subclassing vCursor Message-ID: I'm trying to implement a global semaphore to control thread access to Valentina. It occurred to me that since I use cursors exclusively, I could subclass Vcursor putting a semphore.signal in the the constructor and a semphore.release in the destructor. However MySubclassedVCursor = db.SQLSelect(SQLString...) errors telling me the db.SQLSelect returns a vCursor. I'd really like a solution that doesn't require manual adding a signal and release with each of my hundred or so cursor related methods. Such a solution seems both ineloquent and fragile as a single omission now or in the future would cause intermittent errors that could be quite difficult to track. Has anyone else pondered this and/or come up with a solution? TIA, Keith DeLong From delong at redcort.com Fri Jul 30 19:11:04 2004 From: delong at redcort.com (Keith DeLong) Date: Fri Jul 30 21:11:34 2004 Subject: [V4RB] Semaphores and subclassing vCursor - Solved In-Reply-To: Message-ID: Thought I'd answer my own question so it's in the archives for future reference... There's a way to subclass VCursor without using db.SQLSelect. This alternate way to get a populated cursor is described on page 62 of the V4RB reference. So the following methods allow the creation of thread safe vcursors. Methods of Vcursor SubClass... Sub Constructor (InDB as vDatabase, SqlString as string) V4RBSemaphore.Signal VCursor(InDB,SqlString,kV_Server, kV_NoLocks, kV_Random) End Constructor Sub Destructor V4RBSemaphore.Release End Destructor Keith DeLong > I'm trying to implement a global semaphore to control thread access to > Valentina. > > It occurred to me that since I use cursors exclusively, I could subclass > Vcursor putting a semphore.signal in the the constructor and a > semphore.release in the destructor. > > However MySubclassedVCursor = db.SQLSelect(SQLString...) errors telling me > the db.SQLSelect returns a vCursor. > > I'd really like a solution that doesn't require manual adding a signal and > release with each of my hundred or so cursor related methods. Such a > solution seems both ineloquent and fragile as a single omission now or in > the future would cause intermittent errors that could be quite difficult to > track. > > Has anyone else pondered this and/or come up with a solution? > > TIA, > > Keith DeLong > > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Sat Jul 31 07:43:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 30 23:43:35 2004 Subject: [V4RB] Semaphores and subclassing vCursor - Solved In-Reply-To: Message-ID: On 7/31/04 5:11 AM, "Keith DeLong" wrote: > Thought I'd answer my own question so it's in the archives for future > reference... > > There's a way to subclass VCursor without using db.SQLSelect. This > alternate way to get a populated cursor is described on page 62 of the V4RB > reference. > > So the following methods allow the creation of thread safe vcursors. > > Methods of Vcursor SubClass... > > Sub Constructor (InDB as vDatabase, SqlString as string) > V4RBSemaphore.Signal > VCursor(InDB,SqlString,kV_Server, kV_NoLocks, kV_Random) > End Constructor > > Sub Destructor > V4RBSemaphore.Release > End Destructor Good idea, Keith! > Keith DeLong > > > >> I'm trying to implement a global semaphore to control thread access to >> Valentina. >> >> It occurred to me that since I use cursors exclusively, I could subclass >> Vcursor putting a semphore.signal in the the constructor and a >> semphore.release in the destructor. >> >> However MySubclassedVCursor = db.SQLSelect(SQLString...) errors telling me >> the db.SQLSelect returns a vCursor. >> >> I'd really like a solution that doesn't require manual adding a signal and >> release with each of my hundred or so cursor related methods. Such a >> solution seems both ineloquent and fragile as a single omission now or in >> the future would cause intermittent errors that could be quite difficult to >> track. >> >> Has anyone else pondered this and/or come up with a solution? -- 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 -------------------------------------------------------------