English
Regulars table & Café

Done: GridBOX and Click (getCursel -1)

 
certainly see I time again whom woods not sheer trees
means there's a GridBOX, in which a List of data standing. with Click on a row becomes the zugehörende entry viewed. Klappt perfect.
If I but on a (yet) disengaged Space in the GridBOX click, I get a Error Message and the program exits itself. How can I whom Click into clear space snatch ?
I have:
anzahl&=GETCOUNT(inhalt&)
nr&=GETCURSEL(inhalt&)
cover$=GETSTRING$(inhalt&,nr&)
 
07/01/08  
 




Jörg
Sellmeyer
it would yet interestingly To know, which manner The Error Message is.
exits it itself then immediate, or first, if you what ausweten want. You could checken, whether GetCurSel() > -1 is. I suspect, this is the trouble.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/01/08  
 



here's The Error Message (The variables are something differently)

36 kB
Hochgeladen:07/01/08
Downloadcounter212
Download
 
07/01/08  
 




Jörg
Sellmeyer
Check time before on GetCurSel > -1
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/01/08  
 




CompileMarkSeparation
IF Getfocus(mn_inhalt&)  mn_inhalt& ist die Gridbox

    CHDIR pfad$
    nr%=GETCURSEL(mn_Inhalt&)
    titel$=GETSTRING$(mn_inhalt&,nr%)
    DATEN_ANZEIGEN titel$ hier werden die Daten gezeigt...
    SETFOCUS(mn_Inhalt&)

/a>

this is The request - How should I there checken ???
 
07/01/08  
 




Jac
de
Lad

CompileMarkSeparation
IF Getfocus(mn_inhalt&)mn_inhalt& ist die Gridbox

    CHDIR pfad$
    nr%=GETCURSEL(mn_Inhalt&)

    if n%>-1

        titel$=GETSTRING$(mn_inhalt&,nr%)
        DATEN_ANZEIGEN titel$hier werden die Daten gezeigt...
        SETFOCUS(mn_Inhalt&)

    endif

Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
07/01/08  
 



Have still known ...see whom woods not sheer trees ! - the lying certainly on the disease, The with A starting (How hieß The still again ? ) -
thanks Jac - it works
 
07/01/08  
 



likewise a angry entrapment I The myself already tappte - Roland having the a XProfanversion to others changed the getString$ a Error Message outputs if the 2. Parameter small zero is. Nimm:
CompileMarkSeparation
proc lb.myGetCurSelString

    parameters hLB&
    var curSel&=getCurSel(hLB&)
    case curSel&<0 : return
    return getString$(hLB&,curSel&)

end
a>
 
07/01/08  
 




Dieter
Zornow
the getcursel -1 is a angry entrapment in XProfan, I had the to längerer Time already bemängelt. i think, when calling of Getstring() ought to profanintern screen go whether the worth -1 and then no appeal come off. though I it knows forget I the oftmals and the program smears from, a very unschöne thing in Profan. I have straight even because of the inquire one recent erstelltes Program tested and I naturally forget erts on -1 abzufragen.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/01/08  
 



well the building me still again on, if I read, that too Experten in these entrapment getappt are. i'll it certainly not any more forget.
 
07/01/08  
 




Jörg
Sellmeyer
the might by then help:
CompileMarkSeparation
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/01/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.787 Views

Untitledvor 0 min.
H.Brill02/06/22
kustg05/17/19
ByteAttack12/09/16
Christof Neuß10/15/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie