View previous topic :: View next topic
|
Author |
Message |
Apurva Ghogale
New User
Joined: 20 Sep 2018 Posts: 9 Location: INDIA
|
|
|
|
Hi Robert,
Can you please suggest how to resolve the above probelm? What needs to be done if after 1st unstring it causes ON OVERFLOW condition. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
First, you need to understand that this is NOT a problem -- it is the way UNSTRING works!
Second, what needs to be done ON OVERFLOW depends upon the application. Sometimes, the application just wants the first (or first few) field(s) so the ON OVERFLOW can be ignored. Sometimes, the application needs all the data fields and hence a loop would be needed to UNSTRING the first field, move the remaining bytes over, and then repeating the UNSTRING until ON OVERFLOW no longer occurs. If there are a variable number of fields to be discovered, UNSTRING is not a great choice -- reference modification would probably be a better choice as it is less restrictive in how it works. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Apurva, Please start a new post next time instead of replying to any older post. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
Back to top |
|
|
|