How to Continue a Long Line on the Next One in C

INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

how to continue command on next line in program

  • Forum
  • Search
  • FAQs
  • Links
  • MVPs

how to continue command on next line in program

how to continue command on next line in program

(OP)

Is there a continuation character in foxpro 2.6 that will allow you to continue the command on the next line so that you dont have a real long command going so far to the right.

RE: how to continue command on next line in program

Yes & No

Within the source code of your PRG, etc. files, Yes.  You can use the semi-colon ( ; ) to continue the command onto the next line.

However, within the Command Window, No (sort-of).
If you are typing directly and interactively into your Command Window, you will need to type the command as a long, single line command.  This is because the Command Window interprets presses of the Enter key as an EXECUTE command.

But if you have copied a multi-line into your PC's clipboard, then you can Paste it into your Command Window and the multi-line command will:
1. Appear as a multi-line command
2. Execute properly

Good Luck,

JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com

RE: how to continue command on next line in program

I think ( at least in FP DOS) in the command window you can type some stuff, then a semi-colon, then ctrl+enter, then some more stuff.  The control enter gives you a new line without executing the first line so you can have long multi line commands.

RE: how to continue command on next line in program

The ctrl+enter "trick" works in ALL FPs from FP 2.0, all the way up to VFP 7.0 SP1. (I don't have FP 1.x installed anymore, so I can't check it!)

Rick

RE: how to continue command on next line in program

If you use ";" as a continuation character in a .PRG to keep the line from getting too long, don't put any "&& comments" on the line after the ";"

RE: how to continue command on next line in program

Jerry,
Actually, you can  - at least since VFP 5.0 - and maybe even before. (Just not in the older FP 2.x variants!)

Rick

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Join | Advertise

Copyright © 1998-2022 engineering.com, Inc. All rights reserved.
Unauthorized reproduction or linking forbidden without expressed written permission. Registration on or use of this site constitutes acceptance of our Privacy Policy.

Engineering.com

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

  • Tek-Tips ForumsTalk To Other Members
  • Notification Of Responses To Questions
  • Favorite Forums One Click Access
  • Keyword Search Of All Posts, And More...

Register now while it's still free!

Already a member? Close this window and log in.

Join Us Close

graysadince93.blogspot.com

Source: https://www.tek-tips.com/viewthread.cfm?qid=365944

0 Response to "How to Continue a Long Line on the Next One in C"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel