Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialogbox and variables

Status
Not open for further replies.

bonk33r

Technical User
Sep 22, 2004
7
US
When I try and run the following script, I get the error "Error C155 Line 4: Invalid integer constant".

proc main
integer iTemp = 50
; Define and display the dialog box.
dialogbox 0 0 0 100 iTemp 11 "Dialog Box"
enddialog
pause 5 ; Show off the dialog box.
dlgdestroy 0 CANCEL ; Destroy the dialog.
endproc

When I read the help file it says "Local variables may be used within the dialogbox statement or in any dialog box control statement. However, the dialog box will be automatically destroyed when the procedure that defines the local variables returns."

What am I doing wrong?

Thanks,
Bonk
 
It appears that the coordinates of the dialog box must be specified by an integer constant (i.e. an actual numeric value) and an integer variable cannot be used in the dialog declaration.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top