| View previous topic :: View next topic |
| Author |
Message |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu Dec 18, 2003 5:00 pm Post subject: Table eliment not displaying contents of @text after ..... |
|
|
Hi Guys,
As you know I have just started to play with the table eliment which came with Version 5.0 VDS.
I'm useing to show results of a search and get the results of my search into @text and send to the table.
Brilliant I think but when I clear the table and try to put next search into the table I only get data for first column in it rather than the whole row.
When adding a row to table I use "List assign,1 %m" and then
dialog set,table,@text(1)
When user runs another search and press the OKBUTTON
I do this "List Clear,Table
Any clues on what I'm doing wrong ?
Should I clear the Table dialog with a different command ? |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Dec 18, 2003 6:31 pm Post subject: |
|
|
This happens to me all the time. I think you have probably changed the field separator.
Try this:
| Code: | %%fsep = @fsep()
option fieldsep
rem add stuff to table
option fieldsep,%%fsep |
_________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu Dec 18, 2003 7:12 pm Post subject: |
|
|
Ahhhhhh !!! thats it,Thank Jules I remember reading somewhere that the Table eliment uses Tabs as sepaerators is that right ?
So if I change the feild seperator to | the it will only show the first column of data and know others may be.
Funny thing is though thet this only happen after a click event is generate from the the table. i.e script goes off and does something clever then goes to Loop, then when you do you next search it does this thing with only first column of info.
Thanks for your thoughts so far I'll check my scrpt to see if Field sep is changed somewhere.
Regards
Andy Fletcher  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Dec 18, 2003 8:38 pm Post subject: |
|
|
If you don't want the click event, you can clear the event buffer using the
following code:
| Code: | while @event()
wend |
 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Dec 19, 2003 10:03 am Post subject: |
|
|
Yes, unfortunately a click event is generated whenever you add an item to the table and because VDS buffers the events, it's usually a good idea to clear the event buffer after adding data to a table. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Fri Dec 19, 2003 1:04 pm Post subject: |
|
|
Hi Jules and VDS Team,
Your original solution worked fine and the table re poulates fine with the Option Fieldsep, comannd.
Quick question from this...
If the user clicks on a row and the script runs another VDS exe to view all data from a database. does the fact that I changed the field seperator
affect the other exe we are using as a viewer ?
I'm thinking that they are both using the same runtime engine/interpreter..
Regards
Andy Fletcher
| jules wrote: | | Yes, unfortunately a click event is generated whenever you add an item to the table and because VDS buffers the events, it's usually a good idea to clear the event buffer after adding data to a table. |
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Dec 19, 2003 4:16 pm Post subject: |
|
|
| Changes to any field seperators, decimalseperators etc are local to your program only. You will need to modify the decimalsep, filedsep in the other app as well within it's code. |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Fri Dec 19, 2003 6:10 pm Post subject: |
|
|
Thanks for that, I thought that was the case, In fact can't imagine an instance where it could be affected. Guess I must have changed something in the Veiwer exe and forgot about it and the script failure happening after changing the field seperator of the main program at the time the view exe faild must have been a coinsidence then.
Doh!
Cheers now.
Andy Fletcher
| PGWARE wrote: | | Changes to any field seperators, decimalseperators etc are local to your program only. You will need to modify the decimalsep, filedsep in the other app as well within it's code. |
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Dec 19, 2003 8:04 pm Post subject: |
|
|
| Andy_Fletcher wrote: | | Hi Jules and VDS Team |
You can call me FreezingFire or FF, but I'm only on the VDSWORLD Team, that's
not my name.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Tue Dec 23, 2003 11:41 am Post subject: |
|
|
Apologies FF I could only see VDSWorld TEAM on the comment made and was not sure who I was addressing. Many thanks for all your help.
Have made progress in my understanding of these dialogs. and my somewhat basic programming skills.
I wander how long I should keep the tag "newbie" for. I suppose I need to have written some programs incorporating all the new elements and capabilities of VDS 5.0 first.
Regards and have a very merry Christmas to all in the team.
Andy Fletcher
| FreezingFire wrote: | | Andy_Fletcher wrote: | | Hi Jules and VDS Team |
You can call me FreezingFire or FF, but I'm only on the VDSWORLD Team, that's
not my name.  |
|
|
| Back to top |
|
 |
|