General information
Title:
Class for transforming paires into dozens & vice versa
Hi everyone,
I am trying my best to learn VFP . But I have a problem that I dont seem to be able to solve. I would need guidlines on this if possible .
I am writing an application where quantities for a Unit of Measure = "DZS" are kept on disk in pairs , but when one look at them on the screen or on a report , these quantities are shown in dozens and pairs. Example a field containing 138 on disk as a quantity would show 11.06 on a screen or a report . That is read by the user as 11 dzs and 6 pairs.(int(138/12) = 11 and mod(138,12) = 6 wich is formatted to show 06). This is typical of the hosiery industry. So , I would need 2 class's . One to go from the disk to the screen and on to go from to screen (after user change or not) to the disk. I know how to write the code , wich is very simple . But what I seem to be missing is Where to create the class , wich property do I need to create and where , in the form or in the class. No matter what I have tried so far do not work .
Can someone give general guidelines on this please ?
Thanks in advance.
Pierre Sauve
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only