fravado
07-04-2008, 18:25
Hi Petr, Eros.
Here a small program i ones wrote in the 90ties on Amiga with AmigaBasic, mayby someone can still use it for i do not have my Amiga anymore (pity)
Now what i want to do with this small program (which is a addressbook) is to use it in Tbasic. My question now is: "Is it possible ?" it still works with "DATA" which you have to fill in when you add a new name/address.... here it comes:
aa=1 (every time you add a new name, change the number)
DIM name$(aa), address$(aa), city$(aa), tel$(aa), remark$(aa)
start: CLS: PRINT
LOCATE 4,35: PRINT " ADDRESSES ": PRINT: PRINT
INPUT " WHO ARE YOU LOOKING FOR "; S$: CLS
FOR X = 1 TO aa
READ name$(x), address$(x), city$(x), tel$(x), remark$(x)
IF LEFT$(remark$(x), LEN(s$)) = s$ OR LEFT$(name$(x), LEN(s$)) = s$ THEN
PRINT (PRINT stands for empty line, but i guess you know that)
PRINT "Name : " ; UCASE$ (name$(x))
PRINT "Address :" ; address$(x)
PRINT "City :" ; city$(x)
PRINT "Tel :" ; tel$(x)
END IF
NEXT x
PRINT
LOCATE 22,2: PRINT "Use any key"
wait: (wait = a variable)
IF INKEY$ = "" THEN GOTO wait
RUN
So this is the program (also works with QBasic)
At the end of the program you write you data like:
DATA "petr","street*number","city or province","tel number"," & remarks if any"
---------------------------------------------------------------------------
so now aa becomes 1
the more DATA, the higher the number at the begin of the program becoms (aa)
you see this is a very old method and you still have to write your own DATA,
because i still donīt know how to programm a "DIRECT INPUT"
but i like this Addressbook and it works the way i want it to work.
Petr, i hope you can covert this into TBasic (?)
Hope that AMIGA / QBasic users have some use for it.
bye,
Frank.
Here a small program i ones wrote in the 90ties on Amiga with AmigaBasic, mayby someone can still use it for i do not have my Amiga anymore (pity)
Now what i want to do with this small program (which is a addressbook) is to use it in Tbasic. My question now is: "Is it possible ?" it still works with "DATA" which you have to fill in when you add a new name/address.... here it comes:
aa=1 (every time you add a new name, change the number)
DIM name$(aa), address$(aa), city$(aa), tel$(aa), remark$(aa)
start: CLS: PRINT
LOCATE 4,35: PRINT " ADDRESSES ": PRINT: PRINT
INPUT " WHO ARE YOU LOOKING FOR "; S$: CLS
FOR X = 1 TO aa
READ name$(x), address$(x), city$(x), tel$(x), remark$(x)
IF LEFT$(remark$(x), LEN(s$)) = s$ OR LEFT$(name$(x), LEN(s$)) = s$ THEN
PRINT (PRINT stands for empty line, but i guess you know that)
PRINT "Name : " ; UCASE$ (name$(x))
PRINT "Address :" ; address$(x)
PRINT "City :" ; city$(x)
PRINT "Tel :" ; tel$(x)
END IF
NEXT x
LOCATE 22,2: PRINT "Use any key"
wait: (wait = a variable)
IF INKEY$ = "" THEN GOTO wait
RUN
So this is the program (also works with QBasic)
At the end of the program you write you data like:
DATA "petr","street*number","city or province","tel number"," & remarks if any"
---------------------------------------------------------------------------
so now aa becomes 1
the more DATA, the higher the number at the begin of the program becoms (aa)
you see this is a very old method and you still have to write your own DATA,
because i still donīt know how to programm a "DIRECT INPUT"
but i like this Addressbook and it works the way i want it to work.
Petr, i hope you can covert this into TBasic (?)
Hope that AMIGA / QBasic users have some use for it.
bye,
Frank.