fields language

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Sep 10 19:38:39 CDT 2003


on 9/10/03 6:28 PM, Carlo Rubini at osb at bttb.net.bd wrote:

Hi Carlo,

> Hello Ruslan,
> I'd like to have your judgemnt about a procedura of mine  in V4RB:
> 
> 1. Suppose I have a database 'MyLibraryDB' (super = vDatabase) with
> one table 'boNames' (super=vBaseObject) by the name of 'myNames'
> containing a field 'NamesFld' that in the constructor is initialized
> as NamesFld = new vVarChar("vNames", 30, "ASCII") and other fields
> (all vVarchar with Language "ASCII")
> 
> Now, I'd like to be able to change the nameFld.language: selecting in
> a popupMenu another language I run this code:
> 
> MyLibraryDB.myNames.NamesFld.Language = "German"
> //same procedure for the other fields
> 
> then I make a cursor and a sql call as usual: select * from myNames
> order by NamesFld
> 
> Am I right to assume that my sorting will be done according to the
> new language (german) ?

Yes, Carlo,

When you chase any parameter that can affect current index,
Valentina trash it and build new one.

 
> 2. While keeping this database & cursor open, suppose I open
> anothervalentina-file with the same structure/interface but with
> different records, then I change the fields language to English, I
> run again the above line (MyLibraryDB.myNames...... = "English"; then
> I make a cursor and a sql call: select * from myNames order by
> NamesFld.
> 
> 3. the different database-files created by the same application are
> NOT related; so I'll never query/compare one file to another file.
> They are supposed to be completely independent.

ok
 
> Toggling between the two db.files (I mean, keeping them both open to
> work on one and then on the other and so on), will the two languages
> keep their language-property for each file, or will I create a mess
> of it? will the indexed be affected/re-indexed?

Yes of course. Dbs are independent and each know own settings.

> I know that such situation is very very very improbable, yet I'd
> appreciate if you tell me if the procedure in itself is correct and
> supported.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list