Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: promptdialog

promptdialog 3 years 6 months ago #10785

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
hi


proview version 5.5 rpi

I create some test script
but promptdialog is not working:

string title = "title";
string question = "enter string";
string result = "enter";

if ( ! promptdialog(title,question,result)
printf( "Cancel\n");
printf( "result= %s\n, result");
else
printf( "Ok\n");
printf( "result= %s\n, result");
endif


- the first time i run this script I got:
fill in : "123"
conform with OK

Ok
result=123
(Good)


- the 2e time i run this script I got:
fill in : ""
conform with Cancel

Ok
result=123
(Wrong: shout be Cancel and "")



cees
The administrator has disabled public write access.

promptdialog 3 years 6 months ago #10788

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Thanks for the feedback.

It will be fixed to the next release.

/Claes
The administrator has disabled public write access.

promptdialog 3 years 5 months ago #10805

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
Hi claes

thanks for the action....,

if found a work arrond:

I put a ConfirmDialog (dummy) after
promptdialog, is cleans some memory in the system.

here a working example:

File Attachment:

File Name: gen_Set_Object_Attribute_Value.pwr_com
File Size: 2 KB



Cees
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 9.243 seconds