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

TOPIC: promptdialog

promptdialog 2 years 1 month ago #10785

  • seec
  • seec's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • 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 2 years 1 month ago #10788

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3041
  • Thank you received: 452
  • Karma: 125
Thanks for the feedback.

It will be fixed to the next release.

/Claes
The administrator has disabled public write access.

promptdialog 2 years 4 weeks ago #10805

  • seec
  • seec's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • 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: 0.534 seconds