[Gambas-user] IDE not updating class members when changed (2.99 Build 1291)

Ron Onstenk ronstk at ...239...
Sat Apr 5 15:25:04 CEST 2008


On Saturday 05 April 2008 04:12, richard terry wrote:
> Then I have another subclass which inherits cDRug,  which again I've simplifed 
> and removed many of its members,  but say:
> 
> cPrescriptionItem:
> =====================================
> Inherits cDrug                       ' the drug and 
> Public start_date As Date            ' date the drug started
> Public directions As String          ' directions as text eg 1 mane  
> etc
> =====================================
  Extend the cDrug with start_date and directions.

> ie the tree on the side bar shows (nothis:
> 
> cDrug
>         cPrescription
> cPack
> cProductDetails
> 

Here I belive you made a mistake.
cPrescriptionItem is here declared as cDrug with additional properties 
as date and etc.

In fact a cPrescriptionItem is a standalone object containing a cDrug 
under patients conditions and should definied as IMHO as:

 cPrescriptionItem:
 =====================================
 Publuc medicine as cDrug             ' wich drug to use
 Public start_date As Date            ' date the drug started
 Public directions As String          ' directions as text eg 1 mane  
 etc
 =====================================
 Use the 'medicine' from '1-april-2008' for '2 weeks, 1 tablet each day'.

  This is a binding of a Drug with usage dates and etc 
  instead of expanding the drug class related information 
  with end-users related information.
 

The above in case the cPrescriptionItem is the item(drug) information 
as recipe given by the doctor is the one for the end user :=)



If the cPrescriptionItem contains the general rules/conditions on how to 
use the drug and other drug related information it would be best to include
it directly in cDrug because it belongs to the cDrug as fixed information
about it (usage/time etc).

Just my 2 euro-cents.

Ron

PS:
With interest and enjoy following your development path and questions.






More information about the User mailing list