forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 20 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Tab separated fields
Notquitenewton

Replies: 15
Views: 13921

PostForum: General   Posted: Sun Jan 29, 2023 10:36 am   Subject: Tab separated fields
JohnCampbell
This does work and it even lets the user add spaces in each subtitle...something I've been struggling with for some time now!
Thank you very much for this code...it will certainly make ...
  Topic: Tab separated fields
Notquitenewton

Replies: 15
Views: 13921

PostForum: General   Posted: Sat Jan 28, 2023 3:45 pm   Subject: Tab separated fields
It seems that FTN95 does not recognize CHAR(9) as a character if searched for in a string.
When I run the debugger it shows tab (defined as CHAR(9)) as a ?.

This is the problem methinks.

I'm us ...
  Topic: Tab separated fields
Notquitenewton

Replies: 15
Views: 13921

PostForum: General   Posted: Sat Jan 28, 2023 1:10 pm   Subject: Tab separated fields
mecej4
To avoid scrambled text with the program, as you commented, the links are below but you'll have to change the file location to suit you. I've also added a space in the 2nd title to see what wo ...
  Topic: Tab separated fields
Notquitenewton

Replies: 15
Views: 13921

PostForum: General   Posted: Sat Jan 28, 2023 12:11 pm   Subject: Tab separated fields
mercej4,
A quick follow up...reading the string from a txt file didn't work but if I replace the line
j = index(numstr(jj:),tab)
with
j = index(numstr(jj:),' ')
it is showing signs of working but ...
  Topic: Tab separated fields
Notquitenewton

Replies: 15
Views: 13921

PostForum: General   Posted: Sat Jan 28, 2023 11:25 am   Subject: Tab separated fields
To mecej4,
Many thanks for your reply and for taking the time. The one you wrote works perfectly. The problem I've encountered, it's not FTN95 or you but probably me, is when I try to read the string ...
  Topic: Tab separated fields
Notquitenewton

Replies: 15
Views: 13921

PostForum: General   Posted: Fri Jan 27, 2023 5:52 pm   Subject: Tab separated fields
I have a row of text. In this row there are subtitles containing a space and each subtitle is tab separated from another subtitle. I've roughly coded this (below) as an example and it is getting mixed ...
  Topic: Fortran equation parser
Notquitenewton

Replies: 1
Views: 5484

PostForum: Suggestions   Posted: Mon Apr 04, 2022 10:12 am   Subject: Fortran equation parser
The idea of an equation parser is intended for applications where a set of mathematical Fortran-style expressions is specified at runtime and is then simply evaluated for a large number of variable va ...
  Topic: Calling 64-bit Fortran routine from Excel problem
Notquitenewton

Replies: 1
Views: 2633

PostForum: 64-bit   Posted: Mon Feb 21, 2022 3:38 pm   Subject: Calling 64-bit Fortran routine from Excel problem
Interesting update...changing the zero to 1 appears to work ok for the 64-bit version!

Changed
WshShell.Run Chr(34) & mydir & "\superposition64.exe" & Chr(34), 0, _
waitOnRe ...
  Topic: Calling 64-bit Fortran routine from Excel problem
Notquitenewton

Replies: 1
Views: 2633

PostForum: 64-bit   Posted: Mon Feb 21, 2022 2:33 pm   Subject: Calling 64-bit Fortran routine from Excel problem
Tried looking in the Forum...but no luck!
I'm using FTN95 V8.8 with 64-bit Excel and 32bit Excel on another machine.
I have Fortran routines called 'superposition.exe' which is a 32-bit version and ...
  Topic: Permutations and combinations with a trolley!
Notquitenewton

Replies: 5
Views: 3085

PostForum: General   Posted: Mon Jan 03, 2022 4:49 pm   Subject:
Hi mecej4,
Thanks for the comments...
I only use screen output for debugging (forgot to comment out).
Tried your suggested little bit of code and bingo...goes much more like a rocket. With small nu ...
  Topic: Permutations and combinations with a trolley!
Notquitenewton

Replies: 5
Views: 3085

PostForum: General   Posted: Sun Jan 02, 2022 4:14 pm   Subject: Permutations and combinations with a trolley!
A bit late but seasons greetings...the blurb under the line Selection.for hopefully explains what I've been trying to do! This problem has no doubt been looked at by better folk than I and with much f ...
  Topic: Code to test for 32 or 64-bit compiler in Fortran
Notquitenewton

Replies: 8
Views: 5463

PostForum: General   Posted: Mon Jul 19, 2021 2:32 pm   Subject:
Thanks everyone...now I understand a bit more (excuse pun!) about my original confusion. Tried it and it works on my computer nicely.

In my VBA code I can simply check the CPU as 32 or 64-bit and t ...
  Topic: Code to test for 32 or 64-bit compiler in Fortran
Notquitenewton

Replies: 8
Views: 5463

PostForum: General   Posted: Mon Jul 19, 2021 12:45 pm   Subject:
I understand this but I'm wondering if a user had a 64-bit CPU, why would they install a 32-bit version of Windows? You are highly likely correct but I don't get this.
Scenario...
I'm using an Intel ...
  Topic: Code to test for 32 or 64-bit compiler in Fortran
Notquitenewton

Replies: 8
Views: 5463

PostForum: General   Posted: Mon Jul 19, 2021 11:19 am   Subject:
Hi mecej4,
Thanks for your reply. I think, as usual, I didn't explain properly...I need to test for a 32 or 64-bit computer before generating millions of numbers. If 64-bit then I can generate more n ...
  Topic: Code to test for 32 or 64-bit compiler in Fortran
Notquitenewton

Replies: 8
Views: 5463

PostForum: General   Posted: Mon Jul 19, 2021 9:32 am   Subject: Code to test for 32 or 64-bit compiler in Fortran
I'm using the latest FTN95 version. Is there anyone who can help...I've written a huge number cruncher in Fortran and compiled it for both 32 and 64-bit processors but I need to test the user's proces ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group