CodeCrusher Posted July 22, 2018 Posted July 22, 2018 I'm having a little trouble with a struct. GLOBAL $1BD = "struct;CHAR _0_0[94];" _& ";CHAR _341_1[4];endstruct;" This is a multi line code using _& to continue but it comes back as an unknown name and I'm looking at someone else code who explained to me that this style of struct worked before. For whatever reason it's coming up as an unknown name. Originally the string was far too long (9K + chars) but it would come back unterminated string which I believe i figured out now but I'm completely lost on this one.
jchd Posted July 22, 2018 Posted July 22, 2018 Use the correct continuation sequence: GLOBAL $1BD = "struct;CHAR _0_0[94];" & _ ";CHAR _341_1[4];endstruct;" This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
CodeCrusher Posted July 23, 2018 Author Posted July 23, 2018 Thank you that cleared it up. apparently ever time I've used the expression I missed the space.
jchd Posted July 23, 2018 Posted July 23, 2018 You just typed & and _ in the wrong order. The continuation character _ must follow a valid token and be followed by an optional whitespaces + comment and the end of line. Comment and EOL are discarded, concatenating input with the next line. It also requires a leading space to avoid ambiguity: $a = 2 $a_ = 5 $ab = 23 ConsoleWrite($a_) ; works ConsoleWrite($a _ ; works ) ConsoleWrite($a_ ; bad syntax: missing ) ) ConsoleWrite($a _ ; that won't write $ab b) ; bad syntax: b This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now