I have the big doubt with this instruction and others how get the dates from its tables?
So this instruction ret, table = IsPicture(file$[, table]), I don't know how get the information from its table, some example, because I have leave to use some instructions for this reason.
Thanks.
IsPicture and table elements
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: IsPicture and table elements
What do you mean by "dates"? The file date?
- Juan Carlos
- Posts: 891
- Joined: Mon Sep 06, 2010 1:02 pm
Re: IsPicture and table elements
I'm sorry for the dates, is the table contents how pass these a variables to can use them.
Re: IsPicture and table elements
ispicture returns a boolean variable (true or false) and a table with further information. The idex values of the table are provided within the manual. Access the just as every table.
A very simple example, a test whether a picture is a picture and if so, debugprint one of its parameters (in this case the height).
A very simple example, a test whether a picture is a picture and if so, debugprint one of its parameters (in this case the height).
Code: Select all
ispic$, picpara$=ispicture(my_picture.jpg)
if ispic$=true
debugprint("Height: ", picpara$.height) ;
else
debugprint ("Sorry, this is no picture")
endif
- Juan Carlos
- Posts: 891
- Joined: Mon Sep 06, 2010 1:02 pm
Re: IsPicture and table elements
Well, if I understand to get every element in these cases is name of table .element, table.height table.width etc.
- Juan Carlos
- Posts: 891
- Joined: Mon Sep 06, 2010 1:02 pm
Re: IsPicture and table elements
Thank you, zylesea for your explain, some instructions are difficult of understand in the guide and help without a clear example and with the instructions using tables more difficult.