Search the web
Sign In
New User? Sign Up
s-base · S-Base Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Query problem   Message List  
Reply | Forward Message #636 of 1020 |
Re: Query problem

In article <4ca086ecd3robin@...>,
Robin Hampshire <robin@...> wrote:
> In article <Marcel-1.53-0416120836-0b0tRkF@...>,
> Wim Ekels <wim@...> wrote:
> > Hi all,

> > Someone (IP address 62.254.0.30) fetched the sample...

> > In the meantime Hans-Jürgen has send me the newest version!

> > Please follow the same link once more.

> > regards
> > Wim

> Thanks Wim, I'll have a look. In the meantime, I have cobbled together
> something that Hans-Jurgen can try.

I've had a look at your app Hans-Jurgen, and I've managed to get the query
working properly.

What I've done is as follows:

add an extra field to the froster query card, as the last field, and give
it the expression v_froster_query[@entry][9]. Make it wide enough to be
able to type in a longish expression without scrolling, so widen the
boundaries of the card to suit. Whatever data type you give the field,
make it a maximum input of "Any" so that it can scroll if necessary.

Change proc froster_query_search to be like the one attached, which has
it's changes documented alongside.

Leave the proc age_query_covert which I gave you earlier unchanged.

--
Robin Hampshire
robin@...


Fri Apr 16, 2004 3:33 pm

robinsbase
Offline Offline
Send Email Send Email

def proc froster_query_search

| new value for flags to overide "assume constant expression"
| max_lines will eventually be the number of lines in the query

local active, flags = 64, q, var1, max_lines = 0

active = proc system_compress_query (t_froster_query, fields_froster_query,
v_froster_query)

errmess_froster_query = "Searching..."
card update c_froster_query
delay on
query new q, "froster query"
query load ext q, q_froster_query
query clear q_froster_query
if incdeleted_froster_query then flags |= 8

| set max_lines to be the number of lines in the query
| note that if there is only one line to start with,
| @ext t_froster_query will be unpredictable

if @ext t_froster_query < 50 then max_lines = @ext t_froster_query
for var1 = 0 to max_lines - 1

| note changes in the next line to allow for actual variables used in this
application

v_froster_query[var1][fields_froster_query-1] = proc
age_query_convert(@trim(@ltrim
v_froster_query[var1][fields_froster_query-1]),"froster.g_dat")
next



query load array q_froster_query, v_froster_query, order_froster_query, flags

load froster, 0
error set 2
query select index q_froster_query, @string (incdeleted_froster_query, "*") +
order_froster_query
if !@errnum then query run q_froster_query, active, -1, flags
proc froster_query_checkerr (TRUE)

if !@ext q_froster_query
query load ext q_froster_query, q
if !@ext q_froster_query then query clear ext q_froster_query, 0, @record
froster, 1, step 1
endif
query dispose q

delay off
proc froster_query_update

enddef


Forward
Message #636 of 1020 |
Expand Messages Author Sort by Date

Hello All, In one problem I can not found a solution. The problem is.... In a Query window createt with SAM I can found a Date Value eg. 05/04/2004 that is all...
B21306@...
Send Email
Apr 5, 2004
11:47 am

... Nah,... wenig zu tun hier nicht? Hallo Hans-Juergen, Habe mal gewartet ob einer etwas antworten wollte, scheint nicht so zu sein :-( Aber auf English: I've...
Wim Ekels
wimekels
Offline Send Email
Apr 6, 2004
11:42 am

... Hmmm... Yes I have see this but I think this is not the main problem. SBase SAM use in the Query the data typ from File without subtype or ? Ok I can use...
B21306@...
Send Email
Apr 8, 2004
5:42 pm

In article <a5a4659c4c.B21306@...>, ... It looks to me Hans, that with your formula of (@date - r_froster_card.g_date) you are trying to subtract one...
Robin Hampshire
robinsbase
Offline Send Email
Apr 9, 2004
12:32 pm

In message <Sc9cec05d0robin@...> you wrote: snip Hi Robin, Thanks for your email - I,m sorry for the delay with my reply. Your proc in the attachmend...
B21306@...
Send Email
Apr 14, 2004
4:20 pm

In article <49bf949f4c.B21306@...>, ... OK. I think I was misunderstanding the problem. If I understand correctly (at last), you have a record with a...
Robin Hampshire
robinsbase
Offline Send Email
Apr 15, 2004
11:34 am

In message <4c9ff6eac1robin@...> you wrote: Hello, ... Or my Question was not the best...... :-) ... Yes True. ... So it is. A Example is search for...
B21306@...
Send Email
Apr 15, 2004
7:48 pm

Hello Robin and Hans-Juergen ... [total snip] I followed your discussion and believe it might be the best for Robin to see the app you made. I've received from...
Wim Ekels
wimekels
Offline Send Email
Apr 16, 2004
8:38 am

Hi all, Someone (IP address 62.254.0.30) fetched the sample... In the meantime Hans-Jürgen has send me the newest version! Please follow the same link once...
Wim Ekels
wimekels
Offline Send Email
Apr 16, 2004
12:08 pm

In article <Marcel-1.53-0416120836-0b0tRkF@...>, ... Thanks Wim, I'll have a look. In the meantime, I have cobbled together something that Hans-Jurgen can...
Robin Hampshire
robinsbase
Offline Send Email
Apr 16, 2004
12:28 pm

In article <4ca086ecd3robin@...>, ... I've had a look at your app Hans-Jurgen, and I've managed to get the query working properly. What I've done is...
Robin Hampshire
robinsbase
Offline Send Email
Apr 16, 2004
3:36 pm

In message <Sca0981f1crobin@...> you wrote: Hello Robin, ... You have done big work with all Your proc and I think its a way become the Query for age...
B21306@...
Send Email
Apr 19, 2004
9:16 pm

In article <46622ca24c.B21306@...>, ... Don't mention it Hans-Jurgen, I am glad to be of help. ... I have your application here, which I downloaded...
Robin Hampshire
robinsbase
Offline Send Email
Apr 20, 2004
8:48 am

In message <4ca28216b9robin@...> you wrote: Hello Robin, with many snip... ... That can I understand. Now I have found, I think this is this rtn_str...
B21306@...
Send Email
Apr 20, 2004
12:24 pm

In article <d60796a24c.B21306@...>, ... Sent via email -- Robin Hampshire robin@......
Robin Hampshire
robinsbase
Offline Send Email
Apr 21, 2004
7:56 am

In article <48a52ba04c.B21306@...>, ... OK. I've been having a little think about this and I believe it will be possible, though a bit tricky. First of...
Robin Hampshire
robinsbase
Offline Send Email
Apr 16, 2004
12:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help