|
| Difference between record and structure |
| Iniciado por guest, 06,oct. 2017 09:22 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 06,octubre 2017 - 09:22 |
Say I have a data file with three items
Name | Caption | Type | Size textlistID | Identifier of textlist | Automatic ID | 8 TextInEnglish | text | Text | 200 TextInNepali | Nepali | Text | 200
Now I want to load the data in Array ********************************** For that I could Define Structure and define array Textlist is structure textlistID is int TextInEnglish is unicode string TextInNepali is unicode string end arrTextlist is associative array of textlist ********************************** Or I could say ArrrecTextlist is associative array of Record of textlist
*************************** Can I go with Anyone ?? Are they Both same ?? What's the Difference ??
Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,octubre 2017 - 12:17 |
Hi Binod,
IMO you can use
ArrrecTextlist is associative array of Record of textlist
then it's not needed to define the structure. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,octubre 2017 - 13:34 |
Hi Binod,
what Stefan said or you can do it the way we do it in alpha360. The following gives you also some "air" to add other things NOT in the data file record.
ST_TextList is Structure r_ is Record of TextList // add other things also ... END
Object_TextListLine is ST_TextList Array_TextListLine is array of 0 ST_TextList
Steven Sitas www.alpha360.biz |
| |
| |
| | | |
|
| | | | |
| | |
|