forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Table eliment not displaying contents of @text after .....

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Thu Dec 18, 2003 5:00 pm    Post subject: Table eliment not displaying contents of @text after ..... Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Dec 18, 2003 6:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Thu Dec 18, 2003 7:12 pm    Post subject: Reply with quote

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 Embarassed
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Dec 18, 2003 8:38 pm    Post subject: Reply with quote

If you don't want the click event, you can clear the event buffer using the
following code:

Code:
while @event()
wend


Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Dec 19, 2003 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Fri Dec 19, 2003 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Fri Dec 19, 2003 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Fri Dec 19, 2003 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Dec 19, 2003 8:04 pm    Post subject: Reply with quote

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. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Tue Dec 23, 2003 11:41 am    Post subject: Reply with quote

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. Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group