vbCrLf

Please report bugs.

vbCrLf

Postby Henning » Sat Jun 16, 2012 1:35 pm

vbCrLf compiles to: Q7B_ID(""\r\n""). This makes \r\n to not be inside a string.
D:\Program\Q7Basic\Projects\TPanel\gcc\frm_UpgradeFW.cpp:598: error: stray '\' in program

/Henning
Henning
 
Posts: 522
Joined: Fri Aug 13, 2010 6:29 pm

Re: vbCrLf

Postby Slowdown » Sat Jun 16, 2012 2:33 pm

Error here,
vbCrLf.png
vbCrLf.png (10.94 KiB) Viewed 674 times

Had the same error (can't find the code at this moment) and made a workaround.
Code: Select all
Const sdCrLf As String = Chr(10) & Chr(13)
or
Const q7bCrLf As String = "\r\n"

But probably you have done something similar 8-)
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: vbCrLf

Postby Henning » Sat Jun 16, 2012 2:53 pm

You guessed it. :lol:

This happened in the latest version! The one prior to that worked. I guess it is a concat problem.
"Some text" & vbCrLf, changed it now but...
Same thing for "Some text" & "\r\n"

/Henning
Henning
 
Posts: 522
Joined: Fri Aug 13, 2010 6:29 pm

Re: vbCrLf

Postby Slowdown » Sat Jun 16, 2012 3:36 pm

hmm, don't know what the problem is but,
Code: Select all
Const q7bCrLf As String = vbCrLf

Resulted in,
Code: Select all
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

   link /LIBPATH:"c:\Q7Basic\Qt\4.8.0\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\Test_1.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\Test_1.exe @D:\Tempory\nm29.tmp

Q7BRuntime.obj : fatal error LNK1183: invalid or corrupt file: extended relocation count 0 less than 65535


:o
(know how to recover from this)
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron