I have 2 forms in my project that go corrupt after converting from scx to sc2 and backwards.
* sct file size before conversion = 35kb
* sc2 file size after conversion = 26kb
* sct file size after conversion = 1kb
+ error file sc2.err created:
Error 1098, Cannot find end marker [ENDT] that closes start marker [TEXT] on line 523
identificarbloquesdeexclusion, 3440
ERROR (TEXTMERGE(C_END_MARKER_NOT_FOUND_LOC))
Source file: C:\receptenfox6\menuitems.sc2
Any idea what the problem is? The form is easy (not much code) and can't find the possible cause of the problem.
In attachment you can find the form.
Best regards!
btw: sorry, I allready posted in 'discussions', didn't saw this one where I can add attachments (looks like I can't remove the discussion myself :-( )
Comments: ** Comment from web user: fdbozzo **
Oh, you asked about the error in first post, and I've not answered yet.
The error was caused because of a bad detection of TEXT/ENDTEXT of a new case, on which a field named "text" is erroneously detected as a TEXT structure, so the detection algorithm keep looking for the corresponding ENDTEXT that closes it, and that's why the error message.
The case already well detected is when previous line ends with ";" but in this new case the previous line ends with ",", so I've added it to the detection algorithm.
```
TEXT TO cSQL NOSHOW
update menuitems
set parent_menuitem_id = ?iParent_menuitem_id,
text = ?strText,
command = ?strCommand,
message = ?strMessage,
keyname = ?strKeyname,
keylabel = ?strKeylabel,
skipfor = ?strSkipfor,
sequence = ?iSequence
where menuitem_id = ?iMenuitem_id
ENDTEXT
```
Thanks for reporting!
Fernando D. Bozzo