Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Résolu][C++] Problème de type de variable

Featured Replies

Posté(e)

Alors voilà, j'explique mon problème.

En gros je fais une requête sur une base de donnée et l'un des paramètres (un entier) doit prendre comme valeur le résultat d'une autre requête.

En gros ca donne ca :

GEPDM->QueryCheckHumanAlloc->ParamByName("IDPERSONNEL")->AsInteger = GEPDM->QT284->FieldByName("IDPERSONNEL")->AsInteger;

Donc je met bien un Integer dans un Integer

Sauf que quand j'exécute le tout il me sort cette erreur là :

Type inadéquate pour le champ 'IDPERSONNEL', attendu : Integer actuel : Float

Je code avec Builder C++ 5

Si quelqu'un a une idée, je prend

Modifié par Rowie

Posté(e)

Qu'est ce que le AsInteger ? Une fonction, un attribut ? readonly ?

Si ca se trouve, c'est uniquement une rh value

En faisant ca :

GEPDM->QueryCheckHumanAlloc->ParamByName("IDPERSONNEL") = GEPDM->QT284->FieldByName("IDPERSONNEL")->AsInteger;

Ca donne quoi ?

Posté(e)
  • Auteur

Problème résolu... c'était la faute à Builder, pour lui un Bigint dans DB2 ben c'est un Float...

Nan mais franchement on n'a pas idée :transpi:

Encore merci :merci:

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.