sisko_ds9
15th February 2012, 20:45
Hi, I need to know how my session was called.
At the start.session function we can use the constant variable SINGLE_OCC or MULTI_OCC to set the mode of session.
Is there any function or predefined variable I can use to test this constant?
Thanks for help.
BaanInOhio
15th February 2012, 21:36
You can check predefined variable "fattr.occurnr" = set to one when SINGLE_OCC and > 1 when MULTI_OCC.
v_kewl
16th February 2012, 07:46
Hi,
Or you can also use "fattr.ftype = 1" for single occ session.
Regards,
Gaurav
sisko_ds9
16th February 2012, 13:01
Hi,
Both sugestions works well.
Thanks a lot.
v_kewl
16th February 2012, 13:23
Hi,
I guess fattr.occurnr will fail in case of MULTI_OCC session with 1 record. So in this case fattr.ftype will give correct information
Regards,
Gaurav
BaanInOhio
16th February 2012, 19:37
Hi,
I guess fattr.occurnr will fail in case of MULTI_OCC session with 1 record. So in this case fattr.ftype will give correct information
Regards,
Gaurav
Shouldn't fail. "fattr.occurnr" provides the number of occurrences available on the display, filled or not. If you go into a list session that shows 10 empty lines, fattr.occurnr will provide 10. If you drag the bottom of the window to show more rows (empty or otherwise), fattr.occurnr will follow. "filled.occ" is the variable that provides how many entries have data present. The only situation where the 'fattr.occurnr' check would fail is when a MULTI_OCC session size is reduced to the point where only one row is shown.
v_kewl
20th February 2012, 08:13
Shouldn't fail. "fattr.occurnr" provides the number of occurrences available on the display, filled or not. If you go into a list session that shows 10 empty lines, fattr.occurnr will provide 10. If you drag the bottom of the window to show more rows (empty or otherwise), fattr.occurnr will follow. "filled.occ" is the variable that provides how many entries have data present. The only situation where the 'fattr.occurnr' check would fail is when a MULTI_OCC session size is reduced to the point where only one row is shown.
I appreciate !
Regards,
Gaurav