Jump to content

seperating lines


Recommended Posts

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?

Link to comment
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)
Link to comment
Share on other sites

  • Developers

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...