English
Bugs and vermeintliche

Error Message WHILE, WHILELOOP or WHILENOT missing! - 2

 
- Page 1 -



Detlef
Jagolski
Hello!

have the following trouble, I Starte over the Button1 a dialog and terminate whom Dialogue with Button2.

thereafter sustain I The Error Message WHILE, WHILELOOP or WHILENOT missing!
CompileMarkSeparation
 $P+
Set("ErrorLevel",0)
 $H WINDOWS.PH
 $H MESSAGES.PH
 $H STRUCTS.PH
 $H SHELLAPI.PH
 $H COMMCTRL.PH
 $I LOHNGRUPPEN4.INC

Proc OnApplicationExit

    DeleteObject hToolBmp&

EndProc

Proc OnApplicationInit

EndProc

OnApplicationInit
Def CalcLeft(1) (%MaxX - %(1)) / 2
Def CalcTop(1) (%MaxY - %(1)) / 2
Declare appexit%
Declare Button1&
Declare LG_DesignForm&
Declare LG_PageControl1_Sheet1&, LG_PageControl1_Sheet2&, LG_PageControl1_Sheet3&, LG_PageControl1_Sheet4&, LG_PageControl1_Sheet5&, LG_PageControl1_Sheet6&
Declare LG_PageControl1&
var TextFont1&        = Create("Font","MS Sans Serif",13,0,0,0,0)
var TooltipFont1&      = Create("FONT","MS Sans Serif",10,0,0,0,0)
Class TabControl = Handle&,            \
TabControl@,        \
GetHandel@,         \
InsertTab@,         \
CreateTabSheet@,    \
SetActiveSheet@,    \
GetActiveTab@,      \
SetActiveTab@,      \
TabChanged@,        \
TBFont@,            \
SetStyle@,          \
GetStyle@

Proc TabControl.TabControl

    Parameters ParentHandle&, x%, y%, dx%, dy%, hImagelist&, TooltipText$
    .Handle& = Create("TabCtrl", ParentHandle&, hImagelist&, x%, y%, dx%, dy%)
    var Tooltip& = Create("Tooltip",ParentHandle&,.Handle&,TooltipText$)
    SetFont Tooltip&,TooltipFont1&
    Return .Handle&

EndProc

Proc TabControl.GetHandel

    Return .Handle&

EndProc

Proc TabControl.InsertTab

    Parameters ColumnTab&, Reiter$,Icon&
    var Tab& = InsertTab(.Handle&,ColumnTab&,Reiter$,Icon&)
    Return Tab&

EndProc

Proc TabControl.CreateTabSheet

    Parameters x%, y%, dx%, dy%, Id&, Set%
    Declare TabSheet&
    TabSheet& = Control("DIALOG","",$54000000,x%,y%,dx%,dy%,.Handle&,Id&,%hinstance)
    ShowWindow(TabSheet&,Set%)
    EnableWindow TabSheet&,Set%
    Return TabSheet&

EndProc

Proc TabControl.SetActiveSheet

    Parameters TabSheets&, Set%
    EnableWindow TabSheets&,Set%
    ShowWindow(TabSheets&,Set%)
    SetFocus(.Handle&)

EndProc

Proc TabControl.GetActiveTab

    Declare ActiveTab&
    ActiveTab& = GetActiveTab(.Handle&)
    Return ActiveTab&

EndProc

Proc TabControl.SetActiveTab

    Parameters Set%
    SendMessage(.Handle&,~TCM_SETCURFOCUS,Set%,0)

EndProc

Proc TabControl.TabChanged

    Declare TabChanged&
    TabChanged& = TabChanged(.Handle&)
    Return TabChanged&

EndProc

Proc TabControl.TBFont

    Parameters Font&
    SendMessage(.Handle&,~WM_SETFONT,Font&,0)

EndProc

Proc TabControl.SetStyle

    Parameters SetStyle&
    Declare Style&
    Style& = ~SetWindowLong(.Handle&,~GWL_STYLE,Or(~GetWindowLong(.Handle&,~GWL_STYLE),SetStyle&))
    Return Style&

EndProc

Proc TabControl.GetStyle

    Declare Style&
    Style& = ~GetWindowLong(.Handle&,~GWL_STYLE)
    Return Style&

EndProc

Set("TrueColor",1)
WindowStyle $003F
WindowTitle "DesignForm"
Window %maxX + 5,114 - 498,415
Cls ~GetSysColor(15)
UseFont "MS Sans Serif",13,0,0,0,0
SetDialogFont 1
'SetFormIcon "",0
var hToolBmp& = Create("hPic", 0, "TOOLBAR")
var hImageList1& = Create("ImageList", 16, 16, hToolBmp&, rgb(192, 192, 192))
Button1&=Create("Button",%hwnd,"Button1",116,130,75,25)
SetWindowPos %hwnd = 207,114 - 498,415;0

WhileNot appexit%

    WaitInput

    If %key = 2

        appexit%=1

    ElseIf Clicked(Button1&)

        LG_DesignForm

    ElseIf %key = 4

        ' Fenstergröße

    ElseIf %key = 5

        ' Hilfe

    EndIf

4 href='./../../function-references/XProfan/endwhile/'>EndWhile

OnApplicationExit

and the LOHNGRUPPEN4.INC
CompileMarkSeparation
Proc LG_DesignForm

    Declare LG_DesignForm&
    Declare dlgexit%
    Declare Button1&
    Set("TrueColor",1)
    LG_DesignForm&=Create("Dialog",%hwnd,"Arbeitskostenstammdaten",%maxX + 5,114,732,547)
    UseFont "MS Sans Serif",13,0,0,0,0
    SetDialogFont 1
    var LG_TBC1# = New (TabControl,LG_DesignForm&,0,110,722,362,hImageList1&,"Arbeitskostenstammdaten")
    LG_PageControl1& = LG_TBC1#.GetHandel()
    LG_TBC1#.TBFont(TextFont1&)
    LG_PageControl1_Sheet1& = LG_TBC1#.CreateTabSheet(4,25,714,333,2000,1)
    LG_TBC1#.InsertTab(1,"Grunddaten",9)
    LG_PageControl1_Sheet2& = LG_TBC1#.CreateTabSheet(4,25,714,333,2001,0)
    LG_TBC1#.InsertTab(2,"Lohnfortzahlungskosten",9)
    LG_PageControl1_Sheet3& = LG_TBC1#.CreateTabSheet(4,25,714,333,2002,0)
    LG_TBC1#.InsertTab(3,"Basiskosten",9)
    LG_PageControl1_Sheet4& = LG_TBC1#.CreateTabSheet(4,25,714,333,2003,0)
    LG_TBC1#.InsertTab(4,"Sozialversicherungskosten",9)
    LG_PageControl1_Sheet5& = LG_TBC1#.CreateTabSheet(4,25,714,333,2004,0)
    LG_TBC1#.InsertTab(5,"Ergebnis",9)
    LG_PageControl1_Sheet6& = LG_TBC1#.CreateTabSheet(4,25,714,333,2005,0)
    LG_TBC1#.InsertTab(6,"Kalender",9)
    Button1&=Create("Button",LG_DesignForm&,"Button2",8,8,75,25)
    SetWindowPos LG_DesignForm& = CalcLeft(732),CalcTop(547) - 732,547;0

    WhileNot dlgexit%

        WaitInput

        If %key = 2

            dlgexit%=1

        ElseIf Clicked(LG_PageControl1&)

            dlgexit%=1

        ElseIf Clicked(Button1&)

            dlgexit%=1

        ElseIf %key = 5

            ' Help

        EndIf

    EndWhile

    DestroyWindow(LG_DesignForm&)
    Dispose LG_TBC1#

ENDPROC


I find whom Error not, has of/ one of you a idea?

Greeting

Detlef
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
12/07/11  
 



« this Posting watts as Solution marked. »


RGH
in the next Bugfix is it fixed!

an innovation at Prozeduraufruf, the a Error bring, if is a procedure in a Whlieschleife To terminate attempts, I had well at Konstruktor with NEW() forget. SORRY!

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/08/12  
 




Nico
Madysa
I have the example time substantial minimizes.
CompileMarkSeparation
Class objekt = objekt@

Proc objekt.objekt

    print "Test"

EndProc

cls
var nocrash&=Create("Button",%hwnd,"No Crash!",100,5,100,25)
var crash&=Create("Button",%hwnd,"Crash!",100,45,100,25)
declare b#

While 1

    WaitInput

    If Clicked(nocrash&)

        dim b#,objekt
        b#.objekt()
        Dispose b#

    ElseIf Clicked(crash&)

        b# = New(objekt)
        Dispose b#

    EndIf

EndWhile

end

The Error depends somehow with New() together.
clicking one on "Crash!" comes it to that Error. clicking one first on "No Crash!"And then on "Crash!", so happens nothing.

More can I neither say.
 
12/07/11  
 




Detlef
Jagolski
Hello Nico,

thanks for Info, this is woll one Bug in XProfan.

Perhaps can Roland yet what moreover say?

Greeting

Detlef
 
XProfan X2
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
12/08/11  
 




Nico
Madysa
Gibt's to any News?
 
01/08/12  
 




RGH
in the next Bugfix is it fixed!

an innovation at Prozeduraufruf, the a Error bring, if is a procedure in a Whlieschleife To terminate attempts, I had well at Konstruktor with NEW() forget. SORRY!

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/08/12  
 




Nico
Madysa
Ah, means is it already clarified. thanks, Roland.
 
01/08/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.209 Views

Untitledvor 0 min.
RudiB.02/16/22
iF12/21/20
p.specht01/09/20
W.L.07/13/17
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