- Code: Select all
Alloc(Data,2048)
Data:
DB "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb"
In fact, if there are more than 255 bytes following a DB directive, incorrect code will be produced. The solution is to cut the string and use several DB directives instead.
I think it would be better to report the limit instead of generating incorrect code when Next is clicked.
And it seems that I cannot make any functions to appear in the dropdown lists of the Script Search dialog. I used the example from the Help Topics. Hotkeys work fine.
Thanks,
Shing