Hi,
I’m trying to get the ability to edit some files with code (SQL, not that it matters) in a window in Clarion. A fair number of those files are over 4K in size (the largest at the moment is 32K).
If I have a CSTRING declared at its maximum size (4K) and add that to the window, everything is hunkydory (except for I’m missing the end of some files), like:
sqltext cstring(4000)
window
...
text...,use(sqltext)
end
code
open(window)
all works perfectly
But
sqltext &cstring
window
...
text...,use(sqltext)
end
code
sqltext &= new cstring(4000)
open(window)
crashes on opening the window.
I’m doing this in an APP, not a hand-coded exe but I’m pretty sure it is merely the change to the cstring reference that causes the app to just go away on trying to open the window. Is there a way to do what I want? Am I missing something simple? I really don’t want to have to deal with the file as a queue of chunks that I can see only one at a time.