Jump to content


jcduym

Member Since 27 Dec 2005
Offline Last Active Jun 19 2012 02:30 PM
-----

Posts I've Made

In Topic: Multi Selection in a ListBox

22 May 2007 - 08:55 AM

Hi Ivan,

The trick is to use an array as the variable in the listbox that receives the selected key(s). Best use the maximum size for an arry (250 elements) as you need as many elements as you have records in the listbox.

Hth.


Jan

In Topic: inherited fnkey

07 May 2007 - 12:21 PM

Hi,

Inherited for a functionkey in VIP means that the characteristics of the functionkey are inherited from an outer LS inside the function. If the functionkey is not defined, just the @FNKEY value is set.

Function keys are not inherited by global-functions (which is easily checked because if it would work like that, things like interfaces must be dynamically be copied to the global function or a regen would be required: if you change a function any global it calls stays untouched. Using a global function is also a way to isolate a proces from its calling function.


I'm afraid you will have to copy all that you would like to be called into your global, or change all that is called in your parent function to a global and call it as such

Hth

In Topic: how to control break by char of a field

10 August 2006 - 09:26 AM

Hi Ben

Use the control-break VAR-POS-ST and VAR-POS-END. This allows you to use a substring of the variable to trigger the control break. Remember tha control-breaks are executed from bottom to top, so CB2 will also cause CB1 to be executed. This assumes you have sorted your report correctly.

Thus using your commodity variable (sorted on it):
CB1 commodity VAR-POS-ST = 1, VAR-POS-END = 3
CB2 commodity VAR-POS-ST = 1, VAR-POS-END = 2
CB3 commodity VAR-POS-ST = 1, VAR-POS-END = 1
CB4 &$EOF (optional)

This should give the desired result


Enjoy


Jan

In Topic: ms sql server and spaces in columns

25 July 2006 - 09:19 AM

Hi,

Our site has been running for years on a SQL-sever database with ANSI-padding off. Not noticed any problems


Jan

In Topic: Paging Column Header

03 July 2006 - 10:55 AM

Hi Keith


Things have improved since I last used it years ago, so I need to amend my previous posting. All this was checked on version 5.5 rev 5.1.8, Client 5.6.7.0

You can set an individual column header in a paging screen using, assuming you have a column with the label 'ThirdColumn':
ThirdColumn.ColumnHeader = 'Nice Text'

This will replace the existing header with 'Nice Text' and leave all other headings untouched. Has to be set before the LS is accessed: entry logic is too late.

@LS_TITLE is used to:
  • set the title of a window: the text will appear in the blue bar at the top of the window.
  • set the column headers of a listbox. Needs to be set before the listbox is accessed. Syntax:
    @LS_TITLE = '1st col,2nd col,3rd col'

    If there are less comma delimited fields than listbox columns, the remainder will be blanked
@LS_TITLE is cleared by the kernel as soon as it is used

Hth


Jan