[V4RB] table classes syntax

Ivan Smahin IvanSmahin at public.kherson.ua
Tue Aug 9 23:58:31 CDT 2005



Peter Salomon wrote:
> Hi Ruslan and all,
> 
> i have a "classes way" project in rb, what imlements that i have all  
> valentina classes (VDatabase and VTable) in the "Project"  environment. 
> Now i want to work with my tables anf fields of course  by accessing 
> them from windowscripts.
> The usual way seems to be - thats the way the examples  work - to get  
> access to fields by:
> 
> str = myDatabase.MyTable.Field("myfield").getString
> 

myDatabase.MyTable.Field("myfield") gets you VField object.
But you've got it already using "classes way".

So you should use it in such a way:
str = myField.getString


-- 
Best regards,
Ivan Smahin


More information about the Valentina mailing list