Jump to content

simple string error?


ahha
 Share

Recommended Posts

Okay it's late and I may be getting stupid here.

What am I doing wrong? This is the error I get:

==> String missing closing quote.:

Funny thing is that until I added Oct-Dec it gave me no error.

$calendar2009 = " " & _
"                                 2009                                  "& @CRLF & _
"                         (and Federal Holidays)                          "& @CRLF & _
"                                                                         "& @CRLF & _
"      January                 February                March         "& @CRLF & _
"    (01/xx/2009)             (02/xx/2009)            (03/xx/2009)   "& @CRLF & _
" Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa "& @CRLF & _
"             1  2  3      1  2  3  4  5  6  7     1  2  3  4  5  6  7 "& @CRLF & _
"  4  5  6  7  8  9 10     8  9 10 11 12 13 14     8  9 10 11 12 13 14 "& @CRLF & _
" 11 12 13 14 15 16 17    15 16 17 18 19 20 21    15 16 17 18 19 20 21 "& @CRLF & _
" 18 19 20 21 22 23 24    22 23 24 25 26 27 28    22 23 24 25 26 27 28 "& @CRLF & _
" 25 26 27 28 29 30 31                              29 30 31             "& @CRLF & _
"                                                                         "& @CRLF & _
" 1 - New Years Day     16 - Washingtons Birthday                    "& @CRLF & _
" 19 - Martin Luther King, Jr. Day                                       "& @CRLF & _
"                                                                         "& @CRLF & _
"      April                       May                    June        "& @CRLF & _
"    (04/xx/2009)             (05/xx/2009)            (06/xx/2009)   "& @CRLF & _
" Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa "& @CRLF & _
"          1  2  3  4                     1  2        1  2  3  4  5  6 "& @CRLF & _
"  5  6  7  8  9 10 11     3  4  5  6  7  8  9     7  8  9 10 11 12 13 "& @CRLF & _
" 12 13 14 15 16 17 18    10 11 12 13 14 15 16    14 15 16 17 18 19 20 "& @CRLF & _
" 19 20 21 22 23 24 25    17 18 19 20 21 22 23    21 22 23 24 25 26 27 "& @CRLF & _
" 26 27 28 29 30            24 25 26 27 28 29 30      28 29 30           "& @CRLF & _
"                          31                                            "& @CRLF & _
"                             25 - Memorial Day                        "& @CRLF & _
"                                                                         "& @CRLF & _
"       July                     August                September       "& @CRLF & _
"    (07/xx/2009)            (08/xx/2009)              (09/xx/2009)  "& @CRLF & _
" Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa "& @CRLF & _
"          1  2  3  4                        1           1  2  3  4  5 "& @CRLF & _
"  5  6  7  8  9 10 11     2  3  4  5  6  7  8     6  7  8  9 10 11 12 "& @CRLF & _
" 12 13 14 15 16 17 18     9 10 11 12 13 14 15    13 14 15 16 17 18 19 "& @CRLF & _
" 19 20 21 22 23 24 25    16 17 18 19 20 21 22    20 21 22 23 24 25 26 "& @CRLF & _
" 26 27 28 29 30 31      23 24 25 26 27 28 29     27 28 29 30         "& @CRLF & _
"                          30 31                                          "& @CRLF & _
" 3-4 Independence Day                                                   "& @CRLF & _
"                                                                         "& @CRLF & _
"      October                November                 December    "& @CRLF & _
"    (10/xx/2009)            (11/xx/2009)              (12/xx/2009)  "& @CRLF & _
" Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa "& @CRLF & _
"             1  2  3      1  2  3  4  5  6  7           1  2  3  4  5 "& @CRLF & _
"  4  5  6  7  8  9 10     8  9 10 11 12 13 14     6  7  8  9 10 11 12 "& @CRLF & _
" 11 12 13 14 15 16 17    15 16 17 18 19 20 21    13 14 15 16 17 18 19 "& @CRLF & _
" 18 19 20 21 22 23 24    22 23 24 25 26 27 28    20 21 22 23 24 25 26 "& @CRLF & _
" 25 26 27 28 29 30 31    29 30                  27 28 29 30 31    "& @CRLF & _
"                                                                         "& @CRLF & _
" 12 - Columbus Day      11 - Veterans Day       25 - Christmas Day   "& @CRLF & _
"                          26 - Thanksgiving Day                          "& @CRLF & _
" "
Link to comment
Share on other sites

Hm, it seems to be a strange bug (even two bugs).

Try this (it's cuted out), it's working fine, but as soon as you will add any character right after the last 26, you will get the error (syntax check is ok btw). And the second bug, is that when ytou uncomment the last part, you will get the same StringLen() as without this addition, very strange:

$calendar2009 = " " & _
"                                  2009                                    "& @CRLF & _
"                          (and Federal Holidays)                          "& @CRLF & _
"                                                                          "& @CRLF & _
"       January                   February                   March         "& @CRLF & _
"     (01/xx/2009)              (02/xx/2009)              (03/xx/2009)     "& @CRLF & _
" Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa "& @CRLF & _
"              1  2  3       1  2  3  4  5  6  7       1  2  3  4  5  6  7 "& @CRLF & _
"  4  5  6  7  8  9 10       8  9 10 11 12 13 14       8  9 10 11 12 13 14 "& @CRLF & _
" 11 12 13 14 15 16 17      15 16 17 18 19 20 21      15 16 17 18 19 20 21 "& @CRLF & _
" 18 19 20 21 22 23 24      22 23 24 25 26 27 28      22 23 24 25 26 27 28 "& @CRLF & _
" 25 26 27 28 29 30 31                                29 30 31             "& @CRLF & _
"                                                                          "& @CRLF & _
" 1 - New Year’s Day        16 - Washington’s Birthday                     "& @CRLF & _
" 19 - Martin Luther King, Jr. Day                                         "& @CRLF & _
"                                                                          "& @CRLF & _
"       April                       May                      June          "& @CRLF & _
"     (04/xx/2009)              (05/xx/2009)              (06/xx/2009)     "& @CRLF & _
" Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa "& @CRLF & _
"           1  2  3  4                      1  2          1  2  3  4  5  6 "& @CRLF & _
"  5  6  7  8  9 10 11       3  4  5  6  7  8  9       7  8  9 10 11 12 13 "& @CRLF & _
" 12 13 14 15 16 17 18      10 11 12 13 14 15 16      14 15 16 17 18 19 20 "& @CRLF & _
" 19 20 21 22 23 24 25      17 18 19 20 21 22 23      21 22 23 24 25 26 27 "& @CRLF & _
" 26 27 28 29 30            24 25 26 27 28 29 30      28 29 30             "& @CRLF & _
"                           31                                             "& @CRLF & _
"                              25 - Memorial Day                           "& @CRLF & _
"                                                                          "& @CRLF & _
"        July                     August                   September       "& @CRLF & _
"     (07/xx/2009)             (08/xx/2009)               (09/xx/2009)     "& @CRLF & _
" Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa "& @CRLF & _
"           1  2  3  4                         1             1  2  3  4  5 "& @CRLF & _
"  5  6  7  8  9 10 11       2  3  4  5  6  7  8       6  7  8  9 10 11 12 "& @CRLF & _
" 12 13 14 15 16 17 18       9 10 11 12 13 14 15      13 14 15 16 17 18 19 "& @CRLF & _
" 19 20 21 22 23 24 25      16 17 18 19 20 21 22      20 21 22 23 24 25 26 "& @CRLF & _
" 26 27 28 29 30 31         23 24 25 26 27 28 29      27 28 29 30          "& @CRLF & _
"                           30 31                                          "& @CRLF & _
" 3-4 Independence Day                                                     "& @CRLF & _
"                                                                          "& @CRLF & _
"       October                  November                   December       "& @CRLF & _
"     (10/xx/2009)             (11/xx/2009)               (12/xx/2009)     "& @CRLF & _
" Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa      Su Mo Tu We Th Fr Sa "& @CRLF & _
"              1  2  3       1  2  3  4  5  6  7             1  2  3  4  5 "& @CRLF & _
"  4  5  6  7  8  9 10       8  9 10 11 12 13 14       6  7  8  9 10 11 12 "& @CRLF & _
" 11 12 13 14 15 16 17      15 16 17 18 19 20 21      13 14 15 16 17 18 19 "& @CRLF & _
" 18 19 20 21 22 23 24      22 23 24 25 26 27 28      20 21 22 23 24 25 26 "& @CRLF & _
" 25 26 27 28 29 30 31      29 30                     27 28 29 30 31       "& @CRLF & _
"                                                                          "& @CRLF & _
" 12 - Columbus Day         11 - Veterans Day         25 - Christmas Day   "& @CRLF & _
"                           26" ;& "test"

ConsoleWrite(StringLen($calendar2009) & @CRLF)

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

  • Moderators

Hm, it seems to be a strange bug (even two bugs).

Try this (it's cuted out), it's working fine, but as soon as you will add any character right after the last 26, you will get the error (syntax check is ok btw). And the second bug, is that when ytou uncomment the last part, you will get the same StringLen() as without this addition, very strange:

Curious, I got the expected result when I ran your code. But I stay away from long line continuations because of line limits as Zedna had mentioned. I generally will just do something like:
Local $calendar2009 = "                                2009                                 " & @CRLF
$calendar2009 &= "                        (and Federal Holidays)                          " & @CRLF
$calendar2009 &= "                                                                        " & @CRLF
$calendar2009 &= "     January                 February                March         " & @CRLF
$calendar2009 &= "   (01/xx/2009)             (02/xx/2009)            (03/xx/2009)   " & @CRLF
$calendar2009 &= " Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa " & @CRLF
$calendar2009 &= "            1  2  3      1  2  3  4  5  6  7     1  2  3  4  5  6  7 " & @CRLF
$calendar2009 &= "  4  5  6  7  8  9 10    8  9 10 11 12 13 14     8  9 10 11 12 13 14 " & @CRLF
$calendar2009 &= " 11 12 13 14 15 16 17   15 16 17 18 19 20 21    15 16 17 18 19 20 21 " & @CRLF
$calendar2009 &= " 18 19 20 21 22 23 24   22 23 24 25 26 27 28    22 23 24 25 26 27 28 " & @CRLF
$calendar2009 &= " 25 26 27 28 29 30 31                             29 30 31             " & @CRLF
$calendar2009 &= "                                                                        " & @CRLF
$calendar2009 &= " 1 - New Years Day        16 - Washingtons Birthday                    " & @CRLF
$calendar2009 &= " 19 - Martin Luther King, Jr. Day                                      " & @CRLF
$calendar2009 &= "                                                                        " & @CRLF
$calendar2009 &= "     April                       May                    June        " & @CRLF
$calendar2009 &= "   (04/xx/2009)             (05/xx/2009)            (06/xx/2009)   " & @CRLF
$calendar2009 &= " Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa " & @CRLF
$calendar2009 &= "         1  2  3  4                     1  2        1  2  3  4  5  6 " & @CRLF
$calendar2009 &= "  5  6  7  8  9 10 11    3  4  5  6  7  8  9     7  8  9 10 11 12 13 " & @CRLF
$calendar2009 &= " 12 13 14 15 16 17 18   10 11 12 13 14 15 16    14 15 16 17 18 19 20 " & @CRLF
$calendar2009 &= " 19 20 21 22 23 24 25   17 18 19 20 21 22 23    21 22 23 24 25 26 27 " & @CRLF
$calendar2009 &= " 26 27 28 29 30           24 25 26 27 28 29 30      28 29 30           " & @CRLF
$calendar2009 &= "                         31                                            " & @CRLF
$calendar2009 &= "                            25 - Memorial Day                        " & @CRLF
$calendar2009 &= "                                                                        " & @CRLF
$calendar2009 &= "      July                     August                September       " & @CRLF
$calendar2009 &= "   (07/xx/2009)            (08/xx/2009)              (09/xx/2009)  " & @CRLF
$calendar2009 &= " Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa " & @CRLF
$calendar2009 &= "         1  2  3  4                        1           1  2  3  4  5 " & @CRLF
$calendar2009 &= "  5  6  7  8  9 10 11    2  3  4  5  6  7  8     6  7  8  9 10 11 12 " & @CRLF
$calendar2009 &= " 12 13 14 15 16 17 18    9 10 11 12 13 14 15    13 14 15 16 17 18 19 " & @CRLF
$calendar2009 &= " 19 20 21 22 23 24 25   16 17 18 19 20 21 22    20 21 22 23 24 25 26 " & @CRLF
$calendar2009 &= " 26 27 28 29 30 31         23 24 25 26 27 28 29     27 28 29 30         " & @CRLF
$calendar2009 &= "                         30 31                                          " & @CRLF
$calendar2009 &= " 3-4 Independence Day                                                  " & @CRLF
$calendar2009 &= "                                                                        " & @CRLF
$calendar2009 &= "     October                November                 December    " & @CRLF
$calendar2009 &= "   (10/xx/2009)            (11/xx/2009)              (12/xx/2009)  " & @CRLF
$calendar2009 &= " Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa    Su Mo Tu We Th Fr Sa " & @CRLF
$calendar2009 &= "            1  2  3      1  2  3  4  5  6  7           1  2  3  4  5 " & @CRLF
$calendar2009 &= "  4  5  6  7  8  9 10    8  9 10 11 12 13 14     6  7  8  9 10 11 12 " & @CRLF
$calendar2009 &= " 11 12 13 14 15 16 17   15 16 17 18 19 20 21    13 14 15 16 17 18 19 " & @CRLF
$calendar2009 &= " 18 19 20 21 22 23 24   22 23 24 25 26 27 28    20 21 22 23 24 25 26 " & @CRLF
$calendar2009 &= " 25 26 27 28 29 30 31   29 30                  27 28 29 30 31    " & @CRLF
$calendar2009 &= "                                                                        " & @CRLF
$calendar2009 &= " 12 - Columbus Day         11 - Veterans Day       25 - Christmas Day   " & @CRLF
;~ $calendar2009 &= "                          26" & @CRLF

ConsoleWrite(StringLen($calendar2009) & @CRLF)
ConsoleWrite($calendar2009 & @CRLF)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

But I stay away from long line continuations because of line limits as Zedna had mentioned

Me too, but i don't think here is the issue with long lines, because the limit is on one(?) line lenght, and here we use more than one line (via & _). So, or it is an AutoIt interpretation bug, or it's just an incorrect doc description (of the limitation), and it should actualy say that the limit is not only on one single script line, but also on all lines that truncated with & _.

And if it's really a line lenght limitation, then also Syntax check should alert on such situation, for now it's say that there is no errors at all.

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

  • Moderators

Me too, but i don't think here is the issue with long lines, because the limit is on one(?) line lenght, and here we use more than one line (via & _). So, or it is an AutoIt interpretation bug, or it's just an incorrect doc description (of the limitation), and it should actualy say that the limit is not only on one single script line, but also on all lines that truncated with & _.

And if it's really a line lenght limitation, then also Syntax check should alert on such situation, for now it's say that there is no errors at all.

Well with the continuation line, it's still considered to be 1 line.

So with variables and @CRLFs and quotes you're at 4206 characters.

The line limit is 4095, so I don't really see where that's a bug.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

The line limit is 4095, so I don't really see where that's a bug.

Ok, now i see, it's not a bug. But i think the docs should be updated a little, don't you agree? (to prevent confusing by other users).

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

Not really

Not really a bug, or not really needs a docs update? :mellow:

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

Wow - thank you all so very much for your quick and thorough response.

My confusion was probably caused by the Datatypes and Ranges information that indicated "String Can contain strings of up to 2147483647 characters."

I wrongly assumed for some reason that a page of text could be entered via source and did not realize there was a line length limit MAX_LINESIZE. Zedna had the clue.

MrCrestoR - with the "26" at the end there are from the first $ in $calendar to the ending " in 26" exactly 4143 characters. So subtracting out the 48 line continuations we end up at 4095 the MAX_LINESIZE.

SmOke_N - I will use the concatenation approach.

Thanks again - ahha

Link to comment
Share on other sites

It doesn't need a doc update, if you realise that _ does not start a new line for AutoIt

I am realising, and that's the point, it's me, and it took to me a while to understand it (with your help guys :(). So, then what we can expect from newbies?! :mellow:

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

My confusion was probably caused by the Datatypes and Ranges information that indicated "String Can contain strings of up to 2147483647 characters." I wrongly assumed for some reason that a page of text could be entered via source and did not realize there was a line length limit MAX_LINESIZE. Zedna had the clue.

@MrCreator, this is the confusion that makes sense to me. A different error message saying something about MAX_LINESIZE would make more sense than updating the documentation.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...