Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION field holder text length declaration????
Message
De
02/11/1999 20:19:28
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
À
02/11/1999 20:06:22
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00285860
Message ID:
00285864
Vues:
18
>I have a UNION statement I am working with and need to place hold fields that are used in the second SQL statement in the first.
>
>I was adding assignment lines in #1 to the SQL such as....
>
>Select ;
>0 as holdint, ;
>'' as holdtext, ; actually this is two double quotes
>{//} as holddate, ;
>0.00 as holdnum, ;
>
>etc
>
>Is the assignment of 0 in holdint set that field/variable to an integer or a numeric?
>
>The holdtext apparently the #2 SQL is a field that is 30 characters long. I think this may be giving me a INCOMPATIBLE UNION error. I think I need to specify a length for this holder in #1 but not sure how. I thought about adding a LOCAL variable but again, not sure how to declare the length (other than typing 30 spaces which I don't like.)
>
>Suggestions - help !!!!!!
>
>Thanks

HoldInt is N(1, 0).

For HoldText you can use

SPACE(nLengthYouNeed) AS HoldText

For an empty date you can use simply {}.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform