index value greater than array dimension
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-03-19 06:35 AM - edited ‎2023-03-19 06:35 AM
dim WallskinThk[4]
WALL_SKINS_NUMBER = 4
i use WallskinThk[4]
Sometimes the error message doesn't come out, then it comes up again.
Saving is possible, but it doesn't feel good.
Solved! Go to Solution.
- Labels:
-
Library (GDL)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-03-20 12:19 AM
Assuming you always want the last skin,
WallSkinThk[WALL_SKINS_NUMBER]
Seeing the actual code would make it much easier to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-03-19 04:30 PM
The array is defined by the number of skins in the wall. So if at any time it's related to a wall with less than 4 skins you will get this error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-03-19 05:48 PM
So how should I set it up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-03-20 12:19 AM
Assuming you always want the last skin,
WallSkinThk[WALL_SKINS_NUMBER]
Seeing the actual code would make it much easier to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-03-20 05:23 AM
thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-04-05 02:49 PM
if WALL_SKINS_PARAMS[idx][SKIN_CORE_STATUS] > EPS then
cumCoPen = WALL_SKINS_PARAMS[idx][SKIN_CONT_PEN]
endif
PEN cumCoPen
-----------------------------
Error occurs here too.
What should I do?