PDOXWIN5 FORM- NEED TC Method Help 
Author Message
 PDOXWIN5 FORM- NEED TC Method Help

2 Questions:
        1.How to use INT procedure for date calculations?
        2. Method to enter a value into a field on a multi-table form.
 Background: Am designing multitable form, and need to do two different date
calculations and have results entered into field of tables involved. For one,
need to subtract dates and use INT- is it me, or won't INT work because dates
are longint compatible but INT is Smallint?
        Secondly, any simple examples on how to enter variable result into a field
using Onarrive method?

Thanks!
Larry Ward



Wed, 08 Jul 1998 03:00:00 GMT
 PDOXWIN5 FORM- NEED TC Method Help

Quote:

>2 Questions:
>    1.How to use INT procedure for date calculations?
>    2. Method to enter a value into a field on a multi-table form.
> Background: Am designing multitable form, and need to do two different date
>calculations and have results entered into field of tables involved. For one,
>need to subtract dates and use INT- is it me, or won't INT work because dates
>are longint compatible but INT is Smallint?
>    Secondly, any simple examples on how to enter variable result into a field
>using Onarrive method?

>Thanks!
>Larry Ward


1:
..
var
   x smallint
endvar

   ; Assumes difference will be less than 100 years or so.
   x = smallint(longint(date1 - date2)) ; cast result to longint, then to smallint.
                                ; Direct cast to smallint _may_ work.
   x.view()

2:
attached to the field in question:
method arrive(...)
   ; first, check to ensure you're not overwriting existing info
   self.value = SourceVariable ; assumes SourceVariable is a variable of compatible type,
                                ; which is assigned before arriving.
endmethod

You may want to use setFocus, instead of arrive, depending on your needs.

Jim



Fri, 10 Jul 1998 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Need Help with Multiple Forms / Recordset.Bookmark Method /Action Cancelled

2. problem: when one form opens another form[pdoxwin5.0]

3. TC-based LIKE method

4. Informix 7.30 Tc 10/11 or Informix 7.31 TC 5 On Windows NT

5. Help Needed W/Delimited Text Importing PDOXWIN5.0

6. Need Help Creating Graphs with OPAL (PdoxWin5.0)

7. HELP needed - Netware 3.12/PDOXWIN5

8. PdoxWin5, Win95, and TextStream methods

9. 2 forms resync(tc) in reverse ?? PFW50

10. Passing a field value between forms using TC's

11. Need help compiling standard form...Forms Generate?

12. HELP needed with forms/sub forms


 
Powered by phpBB® Forum Software