FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Find out the column selected in a table
Find out the column selected in a table
Débuté par Paul Ashton, 04 mar. 2020 18:26 - 3 réponses
Connectez-vous…
Paul Ashton
#1
Posté le 04 mars 2020 - 18:26
Hi all,
Can anyone help me with this query.
I'm trying to find a value in a column of a table
I use the following code but all it returns is the number of the line i'm on in the table, not the actual value that is in that line in column "COL_Cust_GUID"
s
SitGUID
=
TableSelect
(
TABLE_
QRY_Previous_Addresses
,
CO
L_Cust_GUID
)
Thank you in advance
Paul
Signaler
0
0
Argus
#2
Posté le 05 mars 2020 - 02:47
the value in a column of a table is TableName.ColName[LineNumber]
So if you know the line and the column name, you are golden.
Signaler
0
0
Paul Ashton
#3
Posté le 05 mars 2020 - 10:23
Argus wrote:
the value in a column of a table is TableName.ColName[LineNumber]
So if you know the line and the column name, you are golden.
Hi Argus, thank you for the reply.
I've changed my code to the following but still get no value back from the column. My nLineNumber variable is showing the correct value in debug but sSitGUID is still blank
s
SitGUID
is string
n
LineNumber
is int
n
LineNumber
=
TableSelect
(
TABLE_
QRY_Previous_Addresses
)
s
SitGUID
=
TABLE_
QRY_Previous_Addresses.COL_SIT_GUID
[
n
LineNumber
]
Thank you
Paul
Signaler
0
0
Paul Ashton
#4
Posté le 05 mars 2020 - 11:38
It's ok,
I've got it working now with the following code....
IF
TableSelect
(
TABLE_
QRY_Previous_Addresses
) = -
1
THEN RETURN
s
SitGUID
is string
IF
HReadSeekFirst
(
Site
,
GUID
,
CO
L_SIT_GUID
) =
True
THEN
s
SitGUID
=
CO
L_SIT_GUID
END
Thank you
Paul.
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte