Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
18 crawler(s) on-line.
 140 guest(s) on-line.
 1 member(s) on-line.


 Rob

You are an anonymous user.
Register Now!
 Rob:  3 mins ago
 amigang:  10 mins ago
 OneTimer1:  12 mins ago
 agami:  36 mins ago
 matthey:  42 mins ago
 kolla:  49 mins ago
 amigakit:  1 hr 13 mins ago
 Tuxedo:  1 hr 58 mins ago
 zipper:  2 hrs 2 mins ago
 OlafS25:  2 hrs 5 mins ago

/  Forum Index
   /  Classic Amiga Software
      /  Can TurboCalc 5 use variables in text strings?
Register To Post

PosterThread
Hypex 
Can TurboCalc 5 use variables in text strings?
Posted on 1-May-2016 10:08:54
#1 ]
Elite Member
Joined: 6-May-2007
Posts: 11204
From: Greensborough, Australia

Hi guys.

I've got this spreadsheet I look after for my club. That gets updated once a year. But the thing is that it requires to manually go through each of the text strings where the start and end year is and update them all by hand. As you can see doing that type of thing on a computer is ridiculous. Computers were made to automate those things.

So I was reading up on the variable ability but I cannot get anything to help. I managed to define a year as a name with a numerical value and reference it in a cell but that is it. I only see the value if use the variable alone.

As soon as I try and string together some text and stick a variable in the middle I still end up in text!

Lets's say I have a string like so:
From 2015 to 2016.

If I try and be smart and put it together I get a WYSIWYG result:
"From "+Year+" to "+Year+1

If I put an equals in front I get a #TYPE error.

I need something like the following:
("From %d to %d"; Year; Year+1)

This looks like such an obvious thing to program into a spread sheet. Variable text. But I can't figure it out! Is this another one of those obviously simple yet too complicated for Amiga program operations?

 Status: Offline
Profile     Report this post  
broadblues 
Re: Can TurboCalc 5 use variables in text strings?
Posted on 1-May-2016 10:17:46
#2 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Hypex

I don't think you can do exactly what you describe, in the way you describe it, but it does have REXX support so use a rexx script to update your sheet.



_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: Can TurboCalc 5 use variables in text strings?
Posted on 1-May-2016 10:28:26
#3 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@broadblues

ON the other hand there are a set of string function in TC 3.5 so I'd be supprised if they wwere missing in TC 5


in cell A4 I put

=YEAR(TODAY()) shows as 2016


in cell A10 I put

="the year is " + TEXT($A4) shows as The year is 2016


_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Hypex 
Re: Can TurboCalc 5 use variables in text strings?
Posted on 1-May-2016 10:57:58
#4 ]
Elite Member
Joined: 6-May-2007
Posts: 11204
From: Greensborough, Australia

@broadblues

Thanks Andy! You got it.

Have a banana. :

Yes I was reading all about macros and ARexx and it seemed all the commands were all over the place. Sure they are organised in sections in the guide but it makes references to other sections without a link and I found I had to look at a load of topics to find what commands there are. And after all this still haven't see how to actually call ARexx from a cell or execute an Arexx string rather.

Now just the work of converting all the strings. But now I just have to do it once. Provided they don't mess me up by exporting to Excel again.

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle