Bill:

The Report Designer does support the use of the PROPERTY command to manipulate objects, but has quite a few less when compared to Forms.

You would not be able to indent an object at runtime, but an object may be made visible, or not by using the PROPERTY command within a report band's EEP.

In your case, where the indentation is variable based, separate objects (e. g. DB Memo) for each possible indentation level would allow for the desired Memo to appear, and others to be invisible. Each object must be assigned their own Component ID (DBMemo5, DBMemo10, and DBMemo15).

The following would work for three different indent levels (5, 10, or 15) for the variable vIndentLevel.

SWITCH (.vIndentLevel)
  CASE 5
    PROPERTY DBMemo5 VISIBLE 'TRUE'
    PROPERTY DBMemo10 VISIBLE 'FALSE'
    PROPERTY DBMemo15 VISIBLE 'FALSE'
    BREAK
  CASE 10
    PROPERTY DBMemo5 VISIBLE 'FALSE'
    PROPERTY DBMemo10 VISIBLE 'TRUE'
    PROPERTY DBMemo15 VISIBLE 'FALSE'
    BREAK
  CASE 15
    PROPERTY DBMemo5 VISIBLE 'FALSE'
    PROPERTY DBMemo10 VISIBLE 'FALSE'
    PROPERTY DBMemo15 VISIBLE 'TRUE'
    BREAK
ENDSW

If there is a large number of objects for each specific indentation, place the objects within a Region, and then make the desired Region visible, with the other Regions hidden.

Very Best R:egards,

Razzak


At 01:40 PM 2/10/2020, bmilyard wrote:

I need to indent the printing in a report based on the value of a variable. This would look much like a bill of material where the child records would be indented from the parent. I know the variable value but have been unable to figure out how to indent the text based on that variable. Anyone done this before?
Thanks, Bill



--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/202002102103.01AL37Mk013294%40atl4mhob10.registeredsite.com.

Reply via email to