Author Topic: Multi-Function Commands. Your opinions?  (Read 7913 times)

0 Members and 1 Guest are viewing this topic.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Multi-Function Commands. Your opinions?
« Reply #15 on: October 05, 2018, 06:24:12 pm »
Interesting method. Tell us, do you DIM boobs as DOUBLE or would that result in Steve being SINGLE?

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline codeguy

  • Forum Regular
  • Posts: 174
    • View Profile
Re: Multi-Function Commands. Your opinions?
« Reply #16 on: October 05, 2018, 07:30:17 pm »
IF Amazon% OR Steve% THEN
DIM boob AS SINGLE
ELSE
DIM boob as DOUBLE
END IF
« Last Edit: October 05, 2018, 07:37:34 pm by codeguy »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Multi-Function Commands. Your opinions?
« Reply #17 on: October 06, 2018, 11:12:40 am »
@Steve
nice different way to think about using an UDT array. I find it interesting!

I agree that file as index is a multiversatle method to store data, as this method is like using pointers in RAM.

But to what boobs do these pointers go ?
Programming isn't difficult, only it's  consuming time and coffee

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Multi-Function Commands. Your opinions?
« Reply #18 on: October 06, 2018, 11:19:28 am »
@Steve
nice different way to think about using an UDT array. I find it interesting!

I agree that file as index is a multiversatle method to store data, as this method is like using pointers in RAM.

But to what boobs do these pointers go ?

My pointer usually goes directly towards ANY boobs...  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!