Jump to content
Sign in to follow this  
wasikhetmaar

String array, putting values from DT on screen

Recommended Posts

I'm working with getting names from a DT on the screen, and I got the folowing: 

 

read name from dt, row offset in string1

read name from dt, row offset +1 in string2

....

read name from dt, row offset +14 in string15

 

next page = offset + 15 reload.

 

 

This way i can skip through the DT and show all values, but now I got a strung with 15 times almost the same code. The problem is that there isn't a array[string] with which it would be possible to make a loop. 

 

If there would be an array[string] then i could save at position [offset] and next time [offset +1], but now i need another name thereby I't isn't possible to make a loop.

 

Any ideas?

Share this post


Link to post
Share on other sites

In other words, how do you make a loop with strings.

 

You can increment each time and thereby read from the next row in your DT. But if you want to save it in a string how do you increment your string?--> how do you get another string each time you go through your loop. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...