:''Note:'' String DATA values do not require quotes unless they have commas, end spaces or Qbasic keywords in them.
''Example:'' Using RESTORE to know the number of elements in the DATA in order to dimension and store the items in a array.
{{CodeStart}}
{{Cl|DO}}
{{Cl|READ}} dummy$ 'we won't actually use this string for anything else than to know when there is no more DATA.
count = count + 1
{{Cl|LOOP}} {{Cl|UNTIL}} dummy$ = "stop" 'when dummy$ = "stop" then we know that it is the last entry so it only does the above loop until then.
count = count - 1 'since the last string is "stop" and we don't want to store it in the array.
{{Cl|PRINT}} "The number of relevant entries are:"; count
{{Cl|DIM}} entry$(count) 'Now we know how many elements we need to make space for (DIM)
{{Cl|RESTORE}} 'We restore it so that it begins reading from the first DATA again.
{{Cl|FOR}} c = 1 {{Cl|TO}} count
{{Cl|READ}} entry$(c) 'read the DATA and store it into the array.