From: Maurizio la C. <m.l...@gm...> - 2015-06-25 17:45:12
|
I'm experiencing a problem trying to build a new index for a leto dbf. The error is: LETO/ 1002 Alias inesistente File: c:\\127.0.0.1:2812\cg7\_tmp_fat Please, note the "c:" before the complete path I'm supplying. My code is: dbUseArea(.t., , "\\127.0.0.1:2812\cg7\_tmp_fat", "fat", .f.) fat->( OrdCreate( "\\127.0.0.1:2812\cg7\_tmp_fat", "_tmp_fat1", "fat->contip + fat->codice + fat->aliquo" , {|| fat->contip + fat->codice + fat->aliquo } ) ) but the drive identifier is automagically inserted by LetoDB. Where I'm wrong? TIA Maurizio |
From: Pavel T. <tp...@ma...> - 2015-06-25 19:12:46
|
Hello, Maurizio Please try code below: fat->( OrdCreate( "//127.0.0.1:2812/cg7/_tmp_fat", "_tmp_fat1", "field->contip + field->codice + field->aliquo" , {|| field->contip + field->codice + field->aliquo } ) ) or fat->( OrdCreate( "//127.0.0.1:2812/cg7/_tmp_fat", "_tmp_fat1", "contip + codice + aliquo" , {|| contip + codice + aliquo } ) ) 1. LetoDB server used "/" symbol as directory separator. 2. LetoDB server don't know about client area alias, and can't create an index with aliased fields. Best regards, Pavel Tsarenko ----- Original Message ----- From: Maurizio la Cecilia To: let...@li... Sent: Thursday, June 25, 2015 8:41 PM Subject: [Letodb-developers] OrdCreate() I'm experiencing a problem trying to build a new index for a leto dbf. The error is: LETO/ 1002 Alias inesistente File: c:\\127.0.0.1:2812\cg7\_tmp_fat Please, note the "c:" before the complete path I'm supplying. My code is: dbUseArea(.t., , "\\127.0.0.1:2812\cg7\_tmp_fat", "fat", .f.) fat->( OrdCreate( "\\127.0.0.1:2812\cg7\_tmp_fat", "_tmp_fat1", "fat->contip + fat->codice + fat->aliquo" , {|| fat->contip + fat->codice + fat->aliquo } ) ) but the drive identifier is automagically inserted by LetoDB. Where I'm wrong? TIA Maurizio |
From: Maurizio la C. <m.l...@gm...> - 2015-07-03 15:44:11
|
Hi Pavel, thanks a lot for the reply. After reading your suggestions: 1. I'm unifying the path separators in my code (this should also solve the next step: building for unixes oses) 2. I'm substituting aliases with field-> About the second point: your assertion is true for client<->server processing and not for udf functions running code only on server side, true? TIA. Best regards. Maurizio Il giorno gio 25 giu 2015 alle ore 21:12 Pavel Tsarenko <tp...@ma...> ha scritto: > Hello, Maurizio > > Please try code below: > > fat->( OrdCreate( "//127.0.0.1:2812/cg7/_tmp_fat", "_tmp_fat1", > "field->contip + field->codice + field->aliquo" , {|| field->contip + > field->codice + field->aliquo } ) ) > or > > fat->( OrdCreate( "//127.0.0.1:2812/cg7/_tmp_fat", "_tmp_fat1", "contip > + codice + aliquo" , {|| contip + codice + aliquo } ) ) > > 1. LetoDB server used "/" symbol as directory separator. > 2. LetoDB server don't know about client area alias, and can't create an > index with aliased fields. > > Best regards, Pavel Tsarenko > > > ----- Original Message ----- > *From:* Maurizio la Cecilia <m.l...@gm...> > *To:* let...@li... > *Sent:* Thursday, June 25, 2015 8:41 PM > *Subject:* [Letodb-developers] OrdCreate() > > I'm experiencing a problem trying to build a new index for a leto dbf. > The error is: > > LETO/ 1002 > Alias inesistente > File: c:\\127.0.0.1:2812\cg7\_tmp_fat > > Please, note the "c:" before the complete path I'm supplying. > My code is: > dbUseArea(.t., , "\\127.0.0.1:2812\cg7\_tmp_fat", "fat", .f.) > fat->( OrdCreate( "\\127.0.0.1:2812\cg7\_tmp_fat", "_tmp_fat1", > "fat->contip + fat->codice + fat->aliquo" , {|| fat->contip + fat->codice + > fat->aliquo } ) ) > > but the drive identifier is automagically inserted by LetoDB. > Where I'm wrong? > TIA > Maurizio > > |
From: Maurício V. F. <co...@gm...> - 2015-07-05 00:53:58
|
Calling OrdBagExt() generates a GPF. Sample code: PROCEDURE Main() REQUEST LETO RDDSETDEFAULT( "LETO" ) Leto_Connect("//10.10.10.10:2812") Alert( OrdBagExt() ) Return |
From: Maurício V. F. <co...@gm...> - 2015-07-05 01:02:37
|
When opening a file in a folder under the default folder I use this: SUBFOLDER\FILE.DBF But Leto returns an error. I need to include a prefix in Leto: .\SUBFOLDER\FILE.DBF [[]] Maurício Faria |
From: Pavel T. <tp...@ma...> - 2015-07-05 15:02:24
|
Fixed, thanks for the info best regards, Pavel Tsarenko ----- Original Message ----- From: Maurício Ventura Faria To: let...@li... Sent: Sunday, July 05, 2015 3:53 AM Subject: [Letodb-developers] Calling OrdBagExt() generates a GPF Calling OrdBagExt() generates a GPF. Sample code: PROCEDURE Main() REQUEST LETO RDDSETDEFAULT( "LETO" ) Leto_Connect("//10.10.10.10:2812") Alert( OrdBagExt() ) Return |
From: Maurício V. F. <co...@gm...> - 2015-07-22 19:48:42
|
Hi. This can be a stupid question but I really didn't got it, sorry... Reading the docs I found many references to "nUserStru" when using UDFs, but was unable to figure out what is it... How do I get or define the "nUserStru" value ? [[]] Maurício Ventura Faria |
From: Nenad B. <nba...@wi...> - 2015-07-06 01:58:29
|
It's not clear which path you use? For example, I use something like this: USE ("//192.168.99.1:2807/Test/Subdir/table.dbf") You can use any subdir below the "root" dir, which is defined in letodb.ini. Regards, NB -----Original Message----- From: Maurício Ventura Faria [mailto:co...@gm...] Sent: Sunday, July 05, 2015 3:02 AM To: let...@li... Subject: [Letodb-developers] Compatibility with other RDDs broken when opening a file in a child folder When opening a file in a folder under the default folder I use this: SUBFOLDER\FILE.DBF But Leto returns an error. I need to include a prefix in Leto: .\SUBFOLDER\FILE.DBF [[]] Maurício Faria ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Letodb-developers mailing list Let...@li... https://lists.sourceforge.net/lists/listinfo/letodb-developers |
From: Maurício V. F. <co...@gm...> - 2015-07-06 10:53:18
|
Yes I can, but the syntax is not 100% compatible with other RDDs. In Leto, when the IP and port are omitted, it only works when I prefix the path with a *"./*" like "./Test/Subdir/table.dbf". If I use "Test/Subdir/table.dbf" it doesn't work. And this second syntax is valid in other RDDs. [[]] Maurício Faria On 05/07/2015 22:33, Nenad Batocanin wrote: > It's not clear which path you use? For example, I use something like this: > > USE ("//192.168.99.1:2807/Test/Subdir/table.dbf") > > You can use any subdir below the "root" dir, which is defined in letodb.ini. > > Regards, NB > > > > -----Original Message----- > From: Maurício Ventura Faria [mailto:co...@gm...] > Sent: Sunday, July 05, 2015 3:02 AM > To: let...@li... > Subject: [Letodb-developers] Compatibility with other RDDs broken when opening a file in a child folder > > > When opening a file in a folder under the default folder I use this: > > SUBFOLDER\FILE.DBF > > But Leto returns an error. > I need to include a prefix in Leto: > > .\SUBFOLDER\FILE.DBF > > [[]] Maurício Faria > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Letodb-developers mailing list > Let...@li... > https://lists.sourceforge.net/lists/listinfo/letodb-developers > > |