Sign in to follow this  
Followers 0
GodForsakenSoul

seperating lines

5 posts in this topic

newbie-ish question this time.

on my programming courses we're currently using VB6 (shuddap =[) as a form of intro to programming.

in it, our teacher uses _ to seperate lines. for an example

text.text=testarr(1)_
& testarr(2)_

i can't seem to do it in autoit. i use that exact form. well, tried to anyway. told me i have a sytax error because of a seemingly random &.

i know it can cut strings, but i want to cut code. for better reading.

what's the proper way?

Share this post


Link to post
Share on other sites



i.... don't know.... ._.;

the little windows Scite tells me where i did wrong is au3check?

Share this post


Link to post
Share on other sites

Maybe. Just read what the little window says?

Quick example of splitting string and function call:

$lines = "line one" & _
"line two" _
& "line three" & _
"line four"

MsgBox(0, _
"testing", _
$lines)

Share this post


Link to post
Share on other sites

The reason for my remark is that there a many syntax errors in your 2 lines of code and au3check will help you point them out one by one. Its a little more descriptive than the AutoIt3 lexer.

It will run automatically when you have installed SciTE4AutoIt3 full installer whenever you do F5 or F7.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0