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 > > |