May 25, 2022, 01:06:23 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Recent posts

Pages 1 2 3 4 5 ... 10
21
General Questions / Re: Time tables
Last post by billhsln - December 26, 2021, 11:44:50 AM
Need lots more info.  What are the codes across the top?  2J76, 1J09, etc?  What does the D3 stand for?  Are you going to keep the 1/2's (if not then the time can be stored as 18:30, otherwise we need 18:30:30, I doubt that they would be that accurate all the time, just not possible.  1J09 column has a spade symbol, what is that for, does it need to be tracked?

Does the 'Whitehouse West Jn. arr. 8.4, dep. 8.5' need to be some where?

What other SO, SX, MO, MX, etc?

You can use the code at the top and create another for the rows for a single table with the descriptions.

2J76,D M U B2,
2J70,D M U B7 to Manchester Vic,
0K67,7.50 am L E from Lostock Hall C.S.,SX

I am more than happy to help with the DB side of things.  What DB are you thinking of using?

Just a thought too, check boxes across the top for days and the map showing, so you can click on the city on the map to then show the schedule.

Bill
22
General Questions / Re: Time tables
Last post by LarryMc - December 26, 2021, 11:00:15 AM
I would build it as a database
 your record would consist of everything in the columns
 where you need the thext string (2nd row) if it's always lest then 255 characters it can be a string field; if it might be over 255 then make it a memo
where there is that same sort of entry down where the times are suppose to be hust add 2-3 strings/memos on the end of the record to hold those.

Then make you a popup menu with all the city names. Pick a name from the popup and us that as an index to seach the database to see if there is a time enterd in each record at that index +offset. If yes there is a trrain going through that city...pull the record for display.
Pretty straight forward db setup.
23
General Questions / Time tables
Last post by Andy - December 26, 2021, 02:10:19 AM
Well I've had lots of time due to my bad back to read through the two working time tables produced by British Rail dated 1956 & 1963.

These time tables were not for the general public but issued to employees. They show lots more information such as:

Where a train has come from / going to
Where it stops or simply passes by
When a freight train has to stop to put the brakes on (wagons)
If it's a steam loco, where / when it takes on water
Shows empty trains moving from one place to another
It even show movements of engines on their own

Plus a few other goodies e.g. DMU means diesel engine, route code e.g. 1H56, class of train e.g. 1 or A etc.

Under the title "Workdays" meaning Monday to Saturday (Sundays are always shown separately) you will also see things like SO (runs Saturdays only), and an "X" means does not run on that day e.g. MX - everyday except Mondays. 

Now my idea is to write a program that has the time table data in it and you could select a railway station e.g. Accrington, for "Tuesdays" click a button and it would list all train movements at that station going in all directions that day.

What would your approach be regarding storing the time table data - bare in mind I might have to include some text / notes for certain train times e.g. Stops at Accrington and moves to platform 2 to unload parcels.

See attached map and a page of one of the time tables (1963).

Thanks,
Andy.
24
Music and Sound / Re: Playing with BEEP
Last post by Brian - December 13, 2021, 04:33:43 AM
There were some stinkers in there, Bill. Thought I was good on music, but they defeated me. Tidied it up a little for you

Brian
25
Music and Sound / Re: Playing with BEEP
Last post by billhsln - December 12, 2021, 02:43:19 PM
Found a few songs (a few I don't recognize).

Enjoy,
Bill
26
General Questions / Re: Printer Measurements
Last post by Brian - December 10, 2021, 11:34:47 AM
Well, that fixed it, thank you. Now I need to get the thinking cap on

Brian
27
General Questions / Re: Printer Measurements
Last post by ckoehn - December 10, 2021, 11:24:27 AM
It has to be compiled as a windows program, not a console.  I've never figured out why.
28
General Questions / Re: Printer Measurements
Last post by Brian - December 10, 2021, 11:00:50 AM
Clint,

I'm getting this error when compiling:

Compiling Resources...
No Errors

Compiling...
screen dimensions.iwb

Linking...
IWBasic Linker v1.11 Copyright © 2011 Ionic Wind Software
Unresolved external _window_list
Error: C:\IWBDev3\libs\iwbstd.lib\createdialog.o - Unresolved extern _window_list
Error(s) in linking c:\iwbdev3\projects\calendar\screen dimensions.exe
29
General Questions / Re: Printer Measurements
Last post by ckoehn - December 10, 2021, 10:42:15 AM
Try this one.

$INCLUDE "windowssdk.inc"

OpenConsole

UINT dpiX, dpiY

dpiX = GetDeviceCaps(GetWindowDC(0), HORZSIZE)
dpiY = GetDeviceCaps(GetWindowDC(0), VERTSIZE)
print " ",dpiX," mm wide, ",dpiY," mm tall\n"
print (dpiX/25.4)," in wide, ",(dpiY/25.4)," in tall\n"

dpiX = GetDeviceCaps(GetWindowDC(0), LOGPIXELSX)
dpiY = GetDeviceCaps(GetWindowDC(0), LOGPIXELSY)
print " ",dpiX," pixels per inch wide , ",dpiY," pixels per in tall\n"
waituntil inkey$ = chr$(27)

CloseConsole

end

Later,
Clint
30
General Questions / Re: Printer Measurements
Last post by ckoehn - December 10, 2021, 10:10:59 AM
This gives you the screen dimensions if I read right.

$INCLUDE "windowssdk.inc"

OpenConsole

UINT dpiX, dpiY

dpiX = GetDeviceCaps(GetWindowDC(0), HORZSIZE)
dpiY = GetDeviceCaps(GetWindowDC(0), VERTSIZE)
print " ",dpiX," mm wide, ",dpiY," mm tall\n"
print (dpiX/25.4)," in wide, ",(dpiY/25.4)," in tall\n"

waituntil inkey$ = chr$(27)

CloseConsole

end

Later,
Clint
Pages 1 2 3 4 5 ... 10