Welcome! Log In Create A New Profile

Advanced

Row select preview.... V14 is this a bug

Posted by Hans60 
Hans60
Row select preview.... V14 is this a bug
June 13, 2009 10:07AM
I converted a V12 project in to V14 and have added the bellow line in a table row select and get the following error.

The same code is also on other places and does not give a error. However that code has been there in version 12 already

EDT_Mobile=Table_staff.COL_MOBILE[Table_staff]

Any idea why this happens?



Error at line 1 of Row Selection of Table_staff process.
[] operator called on Table_staff control.
Invalid subscript: [0].
Values must be included between 1 and 8 (inclusive).

**********************************************

Technical Information

Dump error of module <WPOBJ.DLL> <14.00Opj>.

- WL Call:
Processing <WIN_Table_staff3.Table_staff>, line <1>, thread <0>

- Level: fatal error (EL_FATAL)

- Error Code: 10038

- WD55 Error Code: 0

- No system error code

- No system error message

- What happened?
[] operator called on Table_staff control.
Invalid subscript: [0].
Values must be included between 1 and 8 (inclusive).

- No debug information

- Attached Information:
EIT_PILEWL :
Row Selection of Table_staff (WIN_Table_staff3.Table_staff), line 1
EIT_COMPOSANT :

EIT_DATEHEURE : 13/06/2009 10:04:55

- Identifier in .err: 10038


Piet van Zanten
Re: Row select preview.... V14 is this a bug
June 13, 2009 11:21AM
Hi Hans,

Normally, if no row is selected the table value is -1. I have not seen 0 yet, perhaps this is new in v14?
However, it's best practice to always test the subscript:
if Table_Staff>0 then 
   EDT_Mobile=Table_staff.COL_MOBILE[Table_staff]
else
   EDT_Mobile=""
end
Regards,
Piet
Hans60
Re: Row select preview.... V14 is this a bug
June 13, 2009 01:03PM
Hi Piet
thanks for your info. The problem is still there, I wil check if it is due to some other reason...
Thanks and have a good weekend!
Hans
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: