This forum is for eXpress++ general support.
-
Koverhage
- Posts: 151
- Joined: Mon Feb 01, 2010 8:45 am
#1
Post
by Koverhage »
Hello,
why the when condition work ? nZeiger is already 1 and not the current position
Code: Select all
Local nZeiger := 1
@ 2.5,3 DCBROWSE oBrowse DATA aGeDaten SIZE lastcol-16,lastrow-4 ID 'ATGBEARBEITEN' ;
EDIT xbeBRW_ItemSelected MODE DCGUI_BROWSE_EDITACROSSDOWN ;
POINTER nZeiger PRESENTATION aPres COLOR { |o| Zebra(oBrowse) }
// Element 1 = Lfd-Nr Nutzer
DCBROWSECOL ELEMENT 1 HEADER "LFD" ;
PICTURE 'XXX' WIDTH 5 PROTECT {|| .t.} PARENT oBrowse
// Element 2 = Funk-Nummer
DCBROWSECOL ELEMENT 2 HEADER "Funk-Nr." PICTURE 'XXXXXXXXXXXX' WIDTH 12 ;
WHEN {|o|!x_isWahr(aGeDaten,nZeiger,GEDLKZ)} PARENT oBrowse
static function x_isWahr(aGeDaten,nZeiger,nPosition,oBrowse)
local lRetCode := aGedaten[nZeiger,nPosition]
return lRetCode
Klaus
-
Wolfgang Ciriack
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
#2
Post
by Wolfgang Ciriack »
Ich hatte bei diesen Konstrukten auch öfters Probleme mit der Pointer-Variable.
Ich denke, mit DC_GetColArray(...) funktioniert das besser.
_______________________
Best Regards
Wolfgang
-
Koverhage
- Posts: 151
- Joined: Mon Feb 01, 2010 8:45 am
#3
Post
by Koverhage »
Wolfgang,
thank you. I have to use the EDITOR clause to get this working.
Klaus
-
Tom
- Posts: 1234
- Joined: Thu Jan 28, 2010 12:59 am
- Location: Berlin, Germany
#4
Post
by Tom »
DC_BrowseRow(oBrowse)
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
-
Koverhage
- Posts: 151
- Joined: Mon Feb 01, 2010 8:45 am
#5
Post
by Koverhage »
Tom,
i save this info for the future in my memory (Hinterstübchen)

Klaus